qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] Problem with translating on ARM and Qemu beginner question


From: Gauresh Rane
Subject: [Qemu-devel] Problem with translating on ARM and Qemu beginner question
Date: Fri, 25 Nov 2011 02:27:29 -0800 (PST)

Hi,

I am working on developing a simulator on qemu. I am faced with a bug and I 
have tried solving it for three days now with no success:
Here is my problem:
I trying to simulate LPC 1768 cortex m3 based processor on qemu. But I am 
unable to get beyond the libc_init_array in the newlib. 
My qemu cpu jumps to program counter 0 when on jump inside init function of 
__libc_init_array of newlib.

Here is the disassembly code for init:

Called from libc_init_array

0000042c <_init>:
291  42c:   b5f8        push    {r3, r4, r5, r6, r7, lr}
292  42e:   bf00        nop
293  430:   bcf8        pop {r3, r4, r5, r6, r7}
294  432:   bc08        pop {r3}
295  434:   469e        mov lr, r3
296  436:   4770        bx  lr

I stepped through the intermediate code generation in qemu which looks fine to 
me.

Also, I am not able to figure one part in qemu that is how is the cpu 
environment like registers for a processor updated.

Any help would be highly appreciated.

Thanks,

Regards,


Gauresh Rane
Grad Student
CS Department
UCLA




reply via email to

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