gcc compile
Richard Earnshaw
rearnsha@arm.com
Mon Jan 22 03:22:00 GMT 2001
lache@tu-harburg.de said:
> Unfortunately the ARM simulator does not support the several CPU
> modes, that the ARM7TDMI has. I made a software trap using "swi", and
> the pc was set correctly to 0x8. It did also execute the jump
> instruction from this place leading to my own swi handler. But when
> leaving it, returning to the code containing the swi, the mode was
> still 0x10, which is not supervisor mode.
It sounds like you were already in supervisor mode when you executed the
SWI; that would corrupt your link register so the return would not happen
correctly.
However, more details would be needed to be sure.
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
More information about the crossgcc
mailing list