[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [ARM] add with PC in argument

From: claude vittoria
Subject: [Qemu-devel] [ARM] add with PC in argument
Date: Sun, 24 Feb 2008 13:57:04 +0100
User-agent: Thunderbird (Windows/20071031)


I got a problem in an IRQ handler of mutek OS (https://www-asim.lip6.fr/trac/mutekh), target ARM Integrator/CM 922T-XA10. I try to port it on Qemu. A porting has been done for Skyeyes

So in qemu I don't get the same comportement. The add of lr = pc + 4 gives lr = pc + 8 into qemu.
I think that s->pc += 4 at start of disas_arm_insn alters the result.
Could you confirm ?

0x7c    add    lr, pc, #4
0x80    ldr    pc, =SystemInterrupt

0x84    ldr    r3, [sp, #PSR_OFF]  <= never executed in Qemu
0x88    msr    spsr_cxsf, r3        @ put cpsr in SPSR
0x8c    ldmia    sp, {r0-r15}^        @ restore Context


reply via email to

[Prev in Thread] Current Thread [Next in Thread]