Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kde8B-0002Ys-Cf for qemu-devel@nongnu.org; Thu, 11 Sep 2008 00:50:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kde89-0002Yc-MC for qemu-devel@nongnu.org; Thu, 11 Sep 2008 00:50:11 -0400 Received: from [199.232.76.173] (port=37539 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kde89-0002YZ-H5 for qemu-devel@nongnu.org; Thu, 11 Sep 2008 00:50:09 -0400 Received: from n5a.bullet.mail.tp2.yahoo.com ([203.188.202.99]:48966) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Kde88-0007E1-J9 for qemu-devel@nongnu.org; Thu, 11 Sep 2008 00:50:09 -0400 Date: Thu, 11 Sep 2008 10:20:04 +0530 (IST) From: sathish kumar MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-273327581-1221108604=:20260" Message-ID: <934810.20260.qm@web94809.mail.in2.yahoo.com> Subject: [Qemu-devel] QEMU ARM linux user mode addressing Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --0-273327581-1221108604=:20260 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable hi,=0Ai have been trying to understanding the addressing in qemu linux user= mode for for platform.=0Ait would be very much helpful i someone can provi= de me some help.=0Ai want to know how exactly the addressing is done is QEM= U ARM user mode.=0A=0Ai have a sample program where i try to print the addr= ess of fun() in main.=0Awhich prints the address as 0x8380. =0Abut 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)).=0A=0A=0A #i= nclude =0A void fun()=0A {=0A while(1) printf("hello\= n");=0A }=0A =0A main()=0A {=0A =0A printf("In main fun ad= dr %x\n", &fun);=0A while(1);=0A } =0A=0A=0A Connect wit= h friends all over the world. Get Yahoo! India Messenger at http://in.messe= nger.yahoo.com/?wm=3Dn/ --0-273327581-1221108604=:20260 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
hi,
i have been trying to understanding the addressing i= n 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 addres= sing 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 addres= s as 0x8380.
but in env structure on qemu where registers(r0-r15 are av= ailable i can't find a value anywhere closer to this value. i.e,. in r12 (I= R) or r14 (PC)).


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

=0A=0A=0A
= Bring your gang together. Do your thing. Find your favou= rite Yahoo! Group. --0-273327581-1221108604=:20260--