Thumb state to ARM sate

Hello,

When starting debug in all Rensas demos, I need to write 0 to the T bit of the CPSR register via the debug interface.
How do I switch the RZ/T2M processor from Thumb mode to arm mode software?