This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS570LC4357: Initialize CPU Registers

Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN

Hello,

in the example source code from TI, generated with HalCoGen, the function _coreInitRegisters_ do the following:

; Switch to System Mode ( Shares User Mode registers ) (M = 11111)
cps #31
mov lr, r0
mrs r1,cpsr
msr spsr_cxsf, r1

but the documentation (ARM DDI 0460C) say, that  in Systemand User Mode no SPSR Register exist.
Is there any special reason, why it is implemented in the TI Example Code?
What happens if the SPSR Register doesn't exist?

Best Regards