Hi Dave,

The PMU isn't currently implemented. It's something we've been working on at 
ARM, but it's not complete yet.

Thanks,
Ali


From: Dave <dave...@gmail.com<mailto:dave...@gmail.com>>
Reply-To: gem5 users mailing list 
<gem5-users@gem5.org<mailto:gem5-users@gem5.org>>
Date: Mon, 28 May 2012 20:43:44 -0700
To: gem5 users mailing list <gem5-users@gem5.org<mailto:gem5-users@gem5.org>>
Subject: Re: [gem5-users] Got page fault when executing binary which is 
compiled by gcc

Thanks Gabe and Ali,

Everything works fine after I changed to use the static linux executable.

One more question, does GEM5 also simulate PMU(performance monitor unit)?

regards,
Dave



On Tue, May 29, 2012 at 10:37 AM, Ali Saidi 
<ali.sa...@arm.com<mailto:ali.sa...@arm.com>> wrote:
This looks like you're trying to run a semi-hosted binary (the svc with #22 as 
the call number being heap info), not a syscall emulation binary. gem5 doesn't 
currently support executing semi-hosted code, but if you compile a static linux 
executable you can run that. As another option, if you have a bare metal tool 
flow, you can run that too.

Thanks,
Ali




From: Dave 
<dave...@gmail.com<mailto:dave...@gmail.com><mailto:dave...@gmail.com<mailto:dave...@gmail.com>>>
Reply-To: gem5 users mailing list 
<gem5-users@gem5.org<mailto:gem5-users@gem5.org><mailto:gem5-users@gem5.org<mailto:gem5-users@gem5.org>>>
Date: Mon, 28 May 2012 19:07:48 -0700
To: 
"gem5-users@gem5.org<mailto:gem5-users@gem5.org><mailto:gem5-users@gem5.org<mailto:gem5-users@gem5.org>>"
 
<gem5-users@gem5.org<mailto:gem5-users@gem5.org><mailto:gem5-users@gem5.org<mailto:gem5-users@gem5.org>>>
Subject: [gem5-users] Got page fault when executing binary which is compiled by 
gcc

Hi all,

I'm using the up-to-stream gem5 from HG. And I'm trying to run the binaries 
which are compile by arm-gcc-eabi-4.4.5 in system emulation(SE) mode.
But I always got a page fault panic as following attached.


command line: ./build/ARM/gem5.debug --debug-flag=ExecAll 
gem5/configs/example/se.py --cpu-type=arm_detailed --caches -n1 -c a.axf
Global frequency set at 1000000000000 ticks per second
warn: Unknown operating system; assuming Linux.
0: system.remote_gdb.listener: listening for remote gdb #0 on port 7000
**** REAL SIMULATION ****
info: Entering event queue @ 0.  Starting simulation...
 35000: system.cpu + A0 T0 : 0x8000    :   mov   r0, #22            : IntAlu :  
D=0x0000000000000016  FetchSeq=2  CPSeq=0
 35000: system.cpu + A0 T0 : 0x8004    :   adr   r1, r1, #236       : IntAlu :  
D=0x00000000000080f8  FetchSeq=3  CPSeq=1
 35000: system.cpu + A0 T0 : 0x8008    :   svc                      : IntAlu :  
 FetchSeq=4  CPSeq=2
 51500: system.cpu + A0 T0 : 0x800c    :   ldr   r0, [pc, #228]     : MemRead : 
 D=0x00000000000143c4 A=0x80f8  FetchSeq=18  CPSeq=2
 51500: system.cpu + A0 T0 : 0x8010    :   ldr   sp, [r0, #8]       : MemRead : 
 D=0x0000000000000000 A=0x143cc  FetchSeq=19  CPSeq=3
 51500: system.cpu + A0 T0 : 0x8014    :   ldr   r10, [r0, #12]     : MemRead : 
 D=0x0000000000000000 A=0x143d0  FetchSeq=20  CPSeq=4
 52000: system.cpu + A0 T0 : 0x8018    :   add   r10, r10, #256     : IntAlu :  
D=0x0000000000000100  FetchSeq=21  CPSeq=5
 52000: system.cpu + A0 T0 : 0x801c    :   mov   r1, #0             : IntAlu :  
D=0x0000000000000000  FetchSeq=22  CPSeq=6
 52000: system.cpu + A0 T0 : 0x8020    :   mov   fp, r1             : IntAlu :  
D=0x0000000000000000  FetchSeq=23  CPSeq=7
 52500: system.cpu + A0 T0 : 0x8024    :   mov   r7, r1             : IntAlu :  
D=0x0000000000000000  FetchSeq=24  CPSeq=8
 52500: system.cpu + A0 T0 : 0x8028    :   ldr   r0, [pc, #204]     : MemRead : 
 D=0x0000000000014d60 A=0x80fc  FetchSeq=25  CPSeq=9
 52500: system.cpu + A0 T0 : 0x802c    :   ldr   r2, [pc, #204]     : MemRead : 
 D=0x0000000000017698 A=0x8100  FetchSeq=26  CPSeq=10
 53000: system.cpu + A0 T0 : 0x8030    :   sub   r2, r2, r0         : IntAlu :  
D=0x0000000000002938  FetchSeq=27  CPSeq=11
 53000: system.cpu + A0 T0 : 0x8034    :   bl                       : IntAlu :  
D=0x0000000000008038  FetchSeq=28  CPSeq=12
panic: Page table fault when accessing virtual address 0xfffffffc
 @ cycle 132500
[invoke:/home/davetw/work/MODELS/MARVELL5/build/ARM/sim/faults.cc, line 70]
Memory Usage: 575316 KBytes
Program aborted at cycle 132500
Aborted

No matter what binary I changed, I always got the same panic message,"panic: 
Page table fault when accessing virtual address 0xfffffffc"
any idea?


regards,
Dave

-- IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium. Thank you.

_______________________________________________
gem5-users mailing list
gem5-users@gem5.org<mailto:gem5-users@gem5.org>
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users


-- IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium. Thank you.

_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to