Skip to contentSkip to conversation

QEMU ARM linux user mode addressing

Qemu-devel sathish kumar 1 participant 1 message Sep 11, 2008

lore
Share & tools
lore
#0 lore raw

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);
    }   


      Connect with friends all over the world. Get Yahoo! India Messenger at http://in.messenger.yahoo.com/?wm=n/