[gem5-users] gem5 terminated earlier

2017-07-08 Thread Rashid Gholipour
Hi all
I run gem5 X86 in FS mode.But in some application of PARSEC 2 gem5
terminate earlier. In system.pc.com file for the ferret application show
this error:
[HOOKS] PARSEC Hooks Version 1.2
[HOOKS] Entering ROI
(4,1)
ferret[2093]: segfault at 0 ip 004089ba sp 7f33ebf4c380 error 4
in ferret[40+5b4000]
Segmentation fault
Done :D
Or in the swaptions application shows:
[HOOKS] Entering ROI
swaptions[1932]: segfault at 56ec30 ip 00477dd7 sp 7fe0737f5270
error 4 in swaptions[40+157000]
Segmentation fault
Done :D
But also in some application terminate correctly.
Do you have any suggestion what I should do to solve this problem?

Here is the command line that I've used for the simulation.

./build/X86/gem5.fast configs/example/fs.py --cpu-type=timing
--script=run_scripts/ferret_64c_simsmall.rcS --ruby --network=garnet2.0
--mesh-rows=8 --topology=Mesh_XY --routing-algorithm=1 --num-cpus=64
--num-dirs=64 --num-l2caches=64 --l1d_size=32kB --l1i_size=32kB
--l1d_assoc=4 --l1i_assoc=4 --l2_size=128kB --l2_assoc=8
--kernel=/home/rashid/Desktop/gem5/X86_DISC_BINARY/m5_
system_2.0b3/binaries/x86_64-vmlinux-2.6.28.4-smp --disk-image=/home/rashid/
Desktop/gem5/X86_DISC_BINARY/m5_system_2.0b3/disks/x86root-parsec.img
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

[gem5-users] RISCV tool-chain commit point used for Gem5+RISCV

2017-07-08 Thread Nitish Srivastava
Hi Gem5 users,

Can someone tell which commit point and branch in the riscv-tools repo (
https://github.com/riscv/riscv-tools ) was used for the development of
RISCV in gem5? I was trying to run a simple hello world program compiled
with the latest version of the compiler ( commit point 7b1680 in
riscv-tools trepo ):

  1 #include 
  2
  3 int main( int argc, char* argv[] )
  4 {
  5   std::cout << "Hello World, RISC-V!" << std::endl;
  6   return 0;
  7 }

and compiling it and running it on gem5 gives error:

% riscv64-unknown-elf-g++ hello.c -o hello
% spike pk hello
Hello World, RISC-V!
% cd gem5
% ./build/RISCV/gem5.opt ./configs/example/se.py -c hello

gives the following error:

warn: DRAM device capacity (8192 Mbytes) does not match the address
range assigned (512 Mbytes)
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...*panic: Unknown
instruction 0x41975985 at pc 0x0001036e*
Memory Usage: 757624 KBytes
Program aborted at tick 0

Seeing the object-dump for hello at pc 1036e shows:

*0001036e <_start>:*
  * 1036e:   000a4197auipc   gp,0xa4*
   10372:   73a18193addigp,gp,1850 # b4aa8
<__global_pointer$>
   10376:   000a4517auipc   a0,0xa4
   1037a:   19250513addia0,a0,402 # b4508 <_edata>

Thanks,

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