arch/armv8-m: Merge ite instruction to the previous one

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2021-04-02 16:00:19 +08:00 committed by Brennan Ashton
parent d62ae03bf8
commit 3cf070e173

View File

@ -320,11 +320,12 @@ exception_common:
#else
tst r14, #EXC_RETURN_PROCESS_STACK /* nonzero if context on process stack */
#ifdef CONFIG_ARMV8M_STACKCHECK_HARDWARE
ite eq
itete eq
msreq msplim, r0
msrne psplim, r0
#endif
#else
ite eq /* Next two instructions conditional */
#endif
msreq msp, r1 /* R1=The main stack pointer */
msrne psp, r1 /* R1=The process stack pointer */
#endif