I'm trying to use example "boot-loader-ethmac".
In start.S file
/* Switch to IRQ Mode */
mov r0, #0x00000002
teqp pc, r0
/* Set IRQ Mode stack pointer */
ldr sp, AdrIRQStack
There is teqp opcode.
But I compile this start.S file, I get different disassemble result.
78: e3a00002 mov r0, #2 7c: e13ff000 teq pc, r0 80: e59fd26c ldr sp, pc, #620 ; 2f4 <AdrIRQStack>
I traced that operation in simulation. teqp operation has to do Exclusive OR operation. But it does operates like only teq in simulation.
I'm really confused about those issues.
Please let me know if you have any knowledge about this. Thanks.
I solved this issue. It was because of initial states of registers I add for reset.