Re: [gem5-users] link m5op with PARSEC hook library for ARM ISA
Have you tried include/gem5/m5ops.h ? Found with "git ls-files | grep m5ops.h", and it is included by m5.c. Alternatively, this other ARM PARSEC tutorial just defines the functions directly: https://github.com/arm-university/arm-gem5-rsk/blob/aa3b51b175a0f3b6e75c9c856092ae0c8f2a7cdc/parsec_patches/xcompile-patch.diff#L189 I haven't tested those yet unfortunately. On Sat, Apr 28, 2018 at 10:40 PM, Xin Zhanwrote: > Hi all, > > I am trying to cross-compiled the PARSEC3.0 benchmark for ARM ISA, and I > follow the manual in previous thread > https://drive.google.com/file/d/0B1UBY1kHCnn3RGZ5NFNGa1RVMk0/view. I try to > insert some gem5 pseudo instructions into PARSEC code to dump, reset stats > files and write checkpoint at the begining of the ROI. As described in the > manual, after I build m5op_arm.o, I need to copy m5op files to parsec hooks > src folder: > sudo cp ~/gem5/util/m5/m5op.h ~/gem5/util/m5/m5ops.h > ~/gem5/util/m5/m5op_arm.o /mnt/parsec3.0/pkgs/libs/hooks/src > > However, seems that in the directory gem5/util/m5/ for the lates gem5, there > is no m5op.h and m5ops.h anymore. There is only a header file m5_mmap.h but > I don't think it is the correct one. > > Anyone knows which headers should I use? > > Appreciate your help! > Xin > > ___ > gem5-users mailing list > gem5-users@gem5.org > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users ___ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
[gem5-users] link m5op with PARSEC hook library for ARM ISA
Hi all, I am trying to cross-compiled the PARSEC3.0 benchmark for ARM ISA, and I follow the manual in previous thread https://drive.google.com/file/d/0B1UBY1kHCnn3RGZ5NFNGa1RVMk0/view. I try to insert some gem5 pseudo instructions into PARSEC code to dump, reset stats files and write checkpoint at the begining of the ROI. As described in the manual, after I build m5op_arm.o, I need to copy m5op files to parsec hooks src folder: sudo cp ~/gem5/util/m5/m5op.h ~/gem5/util/m5/m5ops.h ~/gem5/util/m5/m5op_arm.o /mnt/parsec3.0/pkgs/libs/hooks/src However, seems that in the directory gem5/util/m5/ for the lates gem5, there is no m5op.h and m5ops.h anymore. There is only a header file m5_mmap.h but I don't think it is the correct one. Anyone knows which headers should I use? Appreciate your help! Xin ___ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
[gem5-users] ARM cpu-type
Hi all, I need to run multicore ARM processor in FS with detailed cpu mode. However in the current GEM5 version, there is a lot of options for --cpu-type: 'O3_ARM_v7a_3', 'AtomicSimpleCPU', 'ex5_big', 'DerivO3CPU', 'MinorCPU', 'HPI', 'ex5_LITTLE', 'TraceCPU', 'TimingSimpleCPU' So for my purpose, which is the detailed mode for arm? Thanks, Xin ___ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Re: [gem5-users] ARM 4-core FS fatal error:
Hi Ciro, Thanks a lot for your help. I will try your setup. Thanks, Xin On Sat, Apr 28, 2018 at 3:15 PM, Ciro Santilliwrote: > I don't know what causes that problem, but here is a working setup: > https://github.com/cirosantilli/linux-kernel-module-cheat/tree/ > 0b9157c91912685b0c59773126e1c1fefc7eea84#gem5 > > After build, run: > > ./run -a aarch64 -g -c 4 > > and it boots correctly, and cat /proc/cpuinfo shows 4 cpus. > > The scripts there end up running the following gem5 command: > > M5_PATH='/home/ciro/bak/git/linux-kernel-module-cheat/out/ > aarch64/buildroot/build/gem5-1.0/system' > \ > '/home/ciro/bak/git/linux-kernel-module-cheat/out/ > aarch64/buildroot/build/gem5-1.0/gem5/build/ARM/gem5.opt' > \ > --debug-file=trace.txt \ > -d '/home/ciro/bak/git/linux-kernel-module-cheat/out/aarch64/gem5/m5out' > \ > '/home/ciro/bak/git/linux-kernel-module-cheat/out/ > aarch64/buildroot/build/gem5-1.0/gem5/configs/example/fs.py' > \ > --disk-image='/home/ciro/bak/git/linux-kernel-module-cheat/ > out/aarch64/buildroot/images/rootfs.ext2' > \ > --kernel='/home/ciro/bak/git/linux-kernel-module-cheat/out/ > aarch64/buildroot/build/linux-custom/vmlinux' > \ > --mem-size='256MB' \ > --num-cpus='4' \ > --script='/home/ciro/bak/git/linux-kernel-module-cheat/data/readfile' \ > --command-line='earlyprintk=pl011,0x1c09 console=ttyAMA0 > lpj=19988480 rw loglevel=8 mem=256MB root=/dev/sda > console_msg_format=syslog nokaslr norandmaps printk.devkmsg=on > printk.time=y' \ > --dtb-file='/home/ciro/bak/git/linux-kernel-module-cheat/ > out/aarch64/buildroot/build/gem5-1.0/gem5/system/arm/dt/ > armv8_gem5_v1_4cpu.dtb' > \ > --machine-type=VExpress_GEM5_V1 \ > > > On Sat, Apr 28, 2018 at 8:59 PM, Xin Zhan wrote: > > Hi all, > > > > I try to simulate 4-core ARM processor in FS mode. The kernel and disk I > am > > using is from the repository > > http://www.gem5.org/dist/current/arm/aarchsystem201410. > > tar.xz. And the run command I am using is: > > > > ./build/ARM/gem5.opt configs/example/fs.py > > --kernel=/home/grads/z/zhanxin/ARM/gem5/full_system_ > images/binaries/vmlinux.aarch64.20140821 > > --disk-image=/home/grads/z/zhanxin/ARM/gem5/full_system_ > images/disks/aarch64-ubuntu-trusty-headless.img > > --dtb-filename=/home/grads/z/zhanxin/ARM/gem5/full_system_ > images/binaries/vexpress.aarch64.20140821.dtb > > -n 4 > > > > However, a fatal happens at the very beginning of the simulation: > > info: kernel located at: > > /home/grads/z/zhanxin/ARM/gem5/full_system_images/ > binaries/vmlinux.aarch64.20140821 > > fatal: Can't find a matching boot loader / kernel combination! > > > > Is there anyone knowing the reason behind? I really appreciate your help! > > Xin > > > > > > ___ > > gem5-users mailing list > > gem5-users@gem5.org > > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > ___ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Re: [gem5-users] ARM 4-core FS fatal error:
I don't know what causes that problem, but here is a working setup: https://github.com/cirosantilli/linux-kernel-module-cheat/tree/0b9157c91912685b0c59773126e1c1fefc7eea84#gem5 After build, run: ./run -a aarch64 -g -c 4 and it boots correctly, and cat /proc/cpuinfo shows 4 cpus. The scripts there end up running the following gem5 command: M5_PATH='/home/ciro/bak/git/linux-kernel-module-cheat/out/aarch64/buildroot/build/gem5-1.0/system' \ '/home/ciro/bak/git/linux-kernel-module-cheat/out/aarch64/buildroot/build/gem5-1.0/gem5/build/ARM/gem5.opt' \ --debug-file=trace.txt \ -d '/home/ciro/bak/git/linux-kernel-module-cheat/out/aarch64/gem5/m5out' \ '/home/ciro/bak/git/linux-kernel-module-cheat/out/aarch64/buildroot/build/gem5-1.0/gem5/configs/example/fs.py' \ --disk-image='/home/ciro/bak/git/linux-kernel-module-cheat/out/aarch64/buildroot/images/rootfs.ext2' \ --kernel='/home/ciro/bak/git/linux-kernel-module-cheat/out/aarch64/buildroot/build/linux-custom/vmlinux' \ --mem-size='256MB' \ --num-cpus='4' \ --script='/home/ciro/bak/git/linux-kernel-module-cheat/data/readfile' \ --command-line='earlyprintk=pl011,0x1c09 console=ttyAMA0 lpj=19988480 rw loglevel=8 mem=256MB root=/dev/sda console_msg_format=syslog nokaslr norandmaps printk.devkmsg=on printk.time=y' \ --dtb-file='/home/ciro/bak/git/linux-kernel-module-cheat/out/aarch64/buildroot/build/gem5-1.0/gem5/system/arm/dt/armv8_gem5_v1_4cpu.dtb' \ --machine-type=VExpress_GEM5_V1 \ On Sat, Apr 28, 2018 at 8:59 PM, Xin Zhanwrote: > Hi all, > > I try to simulate 4-core ARM processor in FS mode. The kernel and disk I am > using is from the repository > http://www.gem5.org/dist/current/arm/aarchsystem201410. > tar.xz. And the run command I am using is: > > ./build/ARM/gem5.opt configs/example/fs.py > --kernel=/home/grads/z/zhanxin/ARM/gem5/full_system_images/binaries/vmlinux.aarch64.20140821 > --disk-image=/home/grads/z/zhanxin/ARM/gem5/full_system_images/disks/aarch64-ubuntu-trusty-headless.img > --dtb-filename=/home/grads/z/zhanxin/ARM/gem5/full_system_images/binaries/vexpress.aarch64.20140821.dtb > -n 4 > > However, a fatal happens at the very beginning of the simulation: > info: kernel located at: > /home/grads/z/zhanxin/ARM/gem5/full_system_images/binaries/vmlinux.aarch64.20140821 > fatal: Can't find a matching boot loader / kernel combination! > > Is there anyone knowing the reason behind? I really appreciate your help! > Xin > > > ___ > gem5-users mailing list > gem5-users@gem5.org > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users ___ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
[gem5-users] ARM 4-core FS fatal error:
Hi all, I try to simulate 4-core ARM processor in FS mode. The kernel and disk I am using is from the repository http://www.gem5.org/dist/current/arm/aarchsystem201410. tar.xz. And the run command I am using is: ./build/ARM/gem5.opt configs/example/fs.py --kernel=/home/grads/z/zhanxin/ARM/gem5/full_system_images/binaries/vmlinux.aarch64.20140821 --disk-image=/home/grads/z/zhanxin/ARM/gem5/full_system_images/disks/aarch64-ubuntu-trusty-headless.img --dtb-filename=/home/grads/z/zhanxin/ARM/gem5/full_system_images/binaries/vexpress.aarch64.20140821.dtb -n 4 However, a fatal happens at the very beginning of the simulation: info: kernel located at: /home/grads/z/zhanxin/ARM/gem5/full_system_images/binaries/vmlinux.aarch64.20140821 fatal: Can't find a matching boot loader / kernel combination! Is there anyone knowing the reason behind? I really appreciate your help! Xin ___ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users