qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] QEMU ARM linux user mode addressing


From: sathish kumar
Subject: [Qemu-devel] QEMU ARM linux user mode addressing
Date: Thu, 11 Sep 2008 10:20:04 +0530 (IST)

hi,
i have been trying to understanding the addressing in qemu linux user mode for for platform.
it would be very much helpful i someone can provide me some help.
i want to know how exactly the addressing is done is QEMU ARM user mode.

i have a sample program where i try to print the address of fun() in  main.
which prints the address as 0x8380.
but in env structure on qemu where registers(r0-r15 are available i can't find a value anywhere closer to this value. i.e,. in r12 (IR) or r14 (PC)).


 #include <stdio.h>
   void fun()
   {
          while(1) printf("hello\n");
   }
 
   main()
   {
 
          printf("In main fun addr %x\n", &fun);
          while(1);
    }  
        


Bring your gang together. Do your thing. Find your favourite Yahoo! Group.
reply via email to

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