Closed qqli579 closed 8 months ago
能否提供log.txt?
+ set -x
+ cpt=102000000
+ dw_len=10102000000
+ total_detail_len=an-example-to-run-gem5-with-composite-prefetcher/coremark
+ [[ -n 0 ]]
+ work_dir=0
+ arch_db=0
+ cd 0
environment: line 10: cd: 0: No such file or directory
+ test -f completed
+ rm -f abort
+ rm -f completed
++ basename -- 102000000
+ cpt_name=102000000
+ extension=102000000
+ cpt_option='--generic-rv-cpt=102000000 --gcpt-restorer=/xiangshang/NEMU-gem5-ref-main/resource/gcpt_restore/build/gcpt.bin'
+ '[' 102000000 '!=' gz ']'
+ cpt_option='--generic-rv-cpt=/xiangshang/benchmark/image/coremark.bare.1timesriscv --raw-cpt'
+ [[ 0 -eq 0 ]]
+ arch_db_args=
+ [[ -z '' ]]
+ crash_tick=-1
+ [[ -z '' ]]
+ capture_cycles=30000
+ start=-15000001
+ start=0
+ end=14999999
+ start_end=' --debug-start=0 --debug-end=14999999 '
+ [[ -n '' ]]
+ echo 'No debug flag set'
No debug flag set
+ debug_flag_args=
+ start_end=
+ [[ -1 = -1 ]]
+ start_end=
+ debug_flag_args=
+ echo 'total_detail_len: an-example-to-run-gem5-with-composite-prefetcher/coremark'
total_detail_len: an-example-to-run-gem5-with-composite-prefetcher/coremark
+ /xiangshang/gem5/GEM5-xs-dev/build/RISCV/gem5.fast /xiangshang/gem5/GEM5-xs-dev/configs/example/fs.py --xiangshan-system --cpu-type=DerivO3CPU --mem-size=8GB --caches --cacheline_size=64 --l1i_size=64kB --l1i_assoc=8 --l1d_size=64kB --l1d_assoc=8 --l1d-hwp-type=XSCompositePrefetcher --short-stride-thres=0 --l2cache --l2_size=1MB --l2_assoc=8 --l3cache --l3_size=16MB --l3_assoc=16 --l1-to-l2-pf-hint --l2-hwp-type=WorkerPrefetcher --l2-to-l3-pf-hint --l3-hwp-type=WorkerPrefetcher --mem-type=DRAMsim3 --dramsim3-ini=/xiangshang/gem5/GEM5-xs-dev/ext/dramsim3/xiangshan_configs/xiangshan_DDR4_8Gb_x8_3200_2ch.ini --bp-type=DecoupledBPUWithFTB --enable-loop-predictor --enable-difftest --generic-rv-cpt=/xiangshang/benchmark/image/coremark.bare.1timesriscv --raw-cpt --maxinsts=3849417830
Global frequency set at 1000000000000 ticks per second
WARNING: Output directory ext/dramsim3/DRAMsim3/ not exists! Using current directory for output!
build/RISCV/arch/riscv/bare_metal/fs_workload.cc:60: info: No bootload provided, because using XS GCPT, reset to 0x80000000
build/RISCV/cpu/base.cc:223: warn: Difftest is disabled
build/RISCV/base/statistics.hh:280: warn: One of the stats is a legacy stat. Legacy stat is a stat that does not belong to any statistics::Group. Legacy stat is deprecated.
111
build/RISCV/base/remote_gdb.cc:381: warn: Sockets disabled, not accepting gdb connections
build/RISCV/mem/physical.cc:526: info: copying /xiangshang/benchmark/image/coremark.bare.1timesriscv to pmem 0x7fb8ff800000
build/RISCV/mem/physical.cc:544: info: First 4 bytes are 0x7f 0x45 0x4c 0x46
build/RISCV/sim/system.cc:556: info: Restoring from Xiangshan RISC-V Checkpoint
gem5 Simulator System. https://www.gem5.org
gem5 is copyrighted software; use the --copyright option for details.
gem5 version [DEVELOP-FOR-22.1]
gem5 compiled Jan 25 2024 10:35:49
gem5 started Jan 30 2024 16:14:48
gem5 executing on n168-020-004, pid 3272475
command line: /xiangshang/gem5/GEM5-xs-dev/build/RISCV/gem5.fast /xiangshang/gem5/GEM5-xs-dev/configs/example/fs.py --xiangshan-system --cpu-type=DerivO3CPU --mem-size=8GB --caches --cacheline_size=64 --l1i_size=64kB --l1i_assoc=8 --l1d_size=64kB --l1d_assoc=8 --l1d-hwp-type=XSCompositePrefetcher --short-stride-thres=0 --l2cache --l2_size=1MB --l2_assoc=8 --l3cache --l3_size=16MB --l3_assoc=16 --l1-to-l2-pf-hint --l2-hwp-type=WorkerPrefetcher --l2-to-l3-pf-hint --l3-hwp-type=WorkerPrefetcher --mem-type=DRAMsim3 --dramsim3-ini=/xiangshang/gem5/GEM5-xs-dev/ext/dramsim3/xiangshan_configs/xiangshan_DDR4_8Gb_x8_3200_2ch.ini --bp-type=DecoupledBPUWithFTB --enable-loop-predictor --enable-difftest --generic-rv-cpt=/xiangshang/benchmark/image/coremark.bare.1timesriscv --raw-cpt --maxinsts=3849417830
info: Standard input is not a terminal, disabling listeners.
[<m5.params.AddrRange object at 0x7fbaffdf4130>]
Using raw bbl None
['basic']
db_switches: []
Attach 1 decoders to thread with addr: <orphan System>.cpu.decoder
Create threads for test sys cpu (RiscvO3CPU)
Add dtb for L1D prefetcher
Add L2 prefetcher as downstream of L1D prefetcher
Add L3 prefetcher as downstream of L2 prefetcher
Add dtb for L2 prefetcher
Finish memory system configuration
No cpu_class provided
Registering probe listeners for Prefetcher system.cpu.dcache.prefetcher
Registering probe listeners for Prefetcher system.cpu.dcache.prefetcher.bop_large
Registering probe listeners for Prefetcher system.cpu.dcache.prefetcher.bop_small
Registering probe listeners for Prefetcher system.cpu.dcache.prefetcher.ipcp
Registering probe listeners for Prefetcher system.cpu.dcache.prefetcher.spp
Registering probe listeners for Prefetcher system.l2.prefetcher
Registering probe listeners for Prefetcher system.l3.prefetcher
**** REAL SIMULATION ****
build/RISCV/sim/simulate.cc:194: info: Entering event queue @ 0. Starting simulation...
gem5 has encountered a segmentation fault!
+ check 139
+ '[' 139 -ne 0 ']'
+ echo FAIL
FAIL
+ touch abort
+ exit
对脚本进行如下修改,然后重新运行
加上gdb: ++ gdb -ex run --args \ $gem5 $debug_flag_args $start_end \ $gem5_home/configs/example/fs.py \ ...
修改single_run 函数: function single_run() { ...
-- run $debug_gz $warmup_inst $max_inst $work_dir 1 > $work_dir/$log_file 2>&1 ++ run $debug_gz $warmup_inst $max_inst $work_dir 1 } 记得在single_run 函数中传入coremark.bin
...
改为调用single_run: ++ # parallel_run ++ single_run
在single_run 函数中怎么传入coremark.bin
在single_run 函数中怎么传入coremark.bin
debug_gz=/nfs-nvme/home/share/checkpoints_profiles/spec06_rv64gcb_o2_20m/take_cpt/libquantum_1006500000000_0.149838/0/1006500000000.gz 改为
debug_gz=./xiangshang/benchmark/image/coremark.bare.1timesriscv
coremark.bin 后面跟的参数‘0x0 0x0 0x66 20000 7 1 2000’ 怎么传入进去
coremark.bin 后面跟的参数‘0x0 0x0 0x66 20000 7 1 2000’ 怎么传入进去
不支持传参
又报这个错误
Global frequency set at 1000000000000 ticks per second
build/RISCV/sim/arch_db.cc:37: info: Table created: CREATE TABLE L1MissTrace(ID INTEGER PRIMARY KEY AUTOINCREMENT,PC INT NOT NULL,SOURCE INT NOT NULL,PADDR INT NOT NULL,VADDR INT NOT NULL,STAMP INT NOT NULL,SITE TEXT);
build/RISCV/sim/arch_db.cc:37: info: Table created: CREATE TABLE L1EvictTrace(ID INTEGER PRIMARY KEY AUTOINCREMENT,PADDR INT NOT NULL,STAMP INT NOT NULL,SITE TEXT);
build/RISCV/sim/arch_db.cc:37: info: Table created: CREATE TABLE MemTrace(ID INTEGER PRIMARY KEY AUTOINCREMENT,Tick INT NOT NULL,IsLoad BOOL NOT NULL,PC INT NOT NULL,VADDR INT NOT NULL,PADDR INT NOT NULL,Issued INT NOT NULL,Translated INT NOT NULL,Completed INT NOT NULL,Committed INT NOT NULL,Writenback INT NOT NULL,PFSrc INT NOT NULL);
WARNING: Output directory ext/dramsim3/DRAMsim3/ not exists! Using current directory for output!
build/RISCV/arch/riscv/bare_metal/fs_workload.cc:60: info: No bootload provided, because using XS GCPT, reset to 0x80000000
build/RISCV/cpu/base.cc:223: warn: Difftest is disabled
build/RISCV/base/statistics.hh:280: warn: One of the stats is a legacy stat. Legacy stat is a stat that does not belong to any statistics::Group. Legacy stat is deprecated.
111
0: system.remote_gdb: listening for remote gdb on port 7000
build/RISCV/mem/physical.cc:526: info: copying /xiangshang/benchmark/image/coremark.1timesriscv to pmem 0x7f45db200000
build/RISCV/mem/physical.cc:544: info: First 4 bytes are 0x7f 0x45 0x4c 0x46
build/RISCV/sim/system.cc:556: info: Restoring from Xiangshan RISC-V Checkpoint
gem5 Simulator System. https://www.gem5.org
gem5 is copyrighted software; use the --copyright option for details.
gem5 version [DEVELOP-FOR-22.1]
gem5 compiled Jan 30 2024 16:33:48
gem5 started Jan 30 2024 17:12:34
gem5 executing on n168-020-004, pid 88390
command line: /xiangshang/gem5/GEM5-xs-dev/build/RISCV/gem5.opt /xiangshang/gem5/GEM5-xs-dev/configs/example/fs.py --xiangshan-system --cpu-type=DerivO3CPU --mem-size=8GB --caches --cacheline_size=64 --l1i_size=64kB --l1i_assoc=8 --l1d_size=64kB --l1d_assoc=8 --l1d-hwp-type=XSCompositePrefetcher --short-stride-thres=0 --l2cache --l2_size=1MB --l2_assoc=8 --l3cache --l3_size=16MB --l3_assoc=16 --l1-to-l2-pf-hint --l2-hwp-type=WorkerPrefetcher --l2-to-l3-pf-hint --l3-hwp-type=WorkerPrefetcher --mem-type=DRAMsim3 --dramsim3-ini=/xiangshang/gem5/GEM5-xs-dev/ext/dramsim3/xiangshan_configs/xiangshan_DDR4_8Gb_x8_3200_2ch.ini --bp-type=DecoupledBPUWithFTB --enable-loop-predictor --enable-difftest --enable-arch-db --arch-db-file=mem_trace.db --arch-db-fromstart=True --generic-rv-cpt=/xiangshang/benchmark/image/coremark.1timesriscv --raw-cpt --warmup-insts-no-switch=20000000 --maxinsts=40000000
[<m5.params.AddrRange object at 0x7f47db60a350>]
Using raw bbl None
['basic']
db_switches: []
Attach 1 decoders to thread with addr: <orphan System>.cpu.decoder
Create threads for test sys cpu (RiscvO3CPU)
Add dtb for L1D prefetcher
Add L2 prefetcher as downstream of L1D prefetcher
Add L3 prefetcher as downstream of L2 prefetcher
Add dtb for L2 prefetcher
Finish memory system configuration
No cpu_class provided
Registering probe listeners for Prefetcher system.cpu.dcache.prefetcher
Registering probe listeners for Prefetcher system.cpu.dcache.prefetcher.bop_large
Registering probe listeners for Prefetcher system.cpu.dcache.prefetcher.bop_small
Registering probe listeners for Prefetcher system.cpu.dcache.prefetcher.ipcp
Registering probe listeners for Prefetcher system.cpu.dcache.prefetcher.spp
Registering probe listeners for Prefetcher system.l2.prefetcher
Registering probe listeners for Prefetcher system.l3.prefetcher
**** REAL SIMULATION ****
build/RISCV/sim/simulate.cc:194: info: Entering event queue @ 0. Starting simulation...
gem5.opt: build/RISCV/cpu/pred/ftb/decoupled_bpred.cc:1194: void gem5::branch_prediction::ftb_pred::DecoupledBPUWithFTB::trapSquash(unsigned int, unsigned int, gem5::Addr, const gem5::PCStateBase&, gem5::ThreadID, const unsigned int&): Assertion `it != fetchStreamQueue.end()' failed.
Program aborted at tick 69930
完整log如下:
export gem5_home=/mnt/project/xiaom/xiangshang/gem5/GEM5-xs-dev
+ gem5_home=/mnt/project/xiaom/xiangshang/gem5/GEM5-xs-dev
+ export gem5=/mnt/project/xiaom/xiangshang/gem5/GEM5-xs-dev/build/RISCV/gem5.opt
+ gem5=/mnt/project/xiaom/xiangshang/gem5/GEM5-xs-dev/build/RISCV/gem5.opt
+ export desc_dir=/projects/BatchTaskTemplate/resources/simpoint_cpt_desc
+ desc_dir=/projects/BatchTaskTemplate/resources/simpoint_cpt_desc
+ export workload_list=/projects/BatchTaskTemplate/resources/simpoint_cpt_desc/spec06_rv64gcb_o2_20m__cover1.00_top100-normal-0-0-20-20.lst
+ workload_list=/projects/BatchTaskTemplate/resources/simpoint_cpt_desc/spec06_rv64gcb_o2_20m__cover1.00_top100-normal-0-0-20-20.lst
+ export cpt_dir=/nfs-nvme/home/share/checkpoints_profiles/spec06_rv64gcb_o3_20m_gcc12-fpcontr-off/take_cpt
+ cpt_dir=/nfs-nvme/home/share/checkpoints_profiles/spec06_rv64gcb_o3_20m_gcc12-fpcontr-off/take_cpt
+ export tag=an-example-to-run-gem5-with-composite-prefetcher
+ tag=an-example-to-run-gem5-with-composite-prefetcher
+ export log_file=log.txt
+ log_file=log.txt
++ pwd
+ export ds=/mnt/project/xiaom/xiangshang/benchmark/stream/fs
+ ds=/mnt/project/xiaom/xiangshang/benchmark/stream/fs
+ export top_work_dir=an-example-to-run-gem5-with-composite-prefetcher
+ top_work_dir=an-example-to-run-gem5-with-composite-prefetcher
+ export full_work_dir=/mnt/project/xiaom/xiangshang/benchmark/stream/fs/exec-storage/an-example-to-run-gem5-with-composite-prefetcher
+ full_work_dir=/mnt/project/xiaom/xiangshang/benchmark/stream/fs/exec-storage/an-example-to-run-gem5-with-composite-prefetcher
+ mkdir -p/xiangshang/benchmark/stream/fs/exec-storage/an-example-to-run-gem5-with-composite-prefetcher
+ ln -sf/xiangshang/benchmark/stream/fs/exec-storage/an-example-to-run-gem5-with-composite-prefetcher .
+ export -f check
+ export -f run
+ export -f single_run
+ export -f arg_wrapper
+ export -f prepare_env
+ single_run
+ task=an-example-to-run-gem5-with-composite-prefetcher
+ work_dir=/mnt/project/xiaom/xiangshang/benchmark/stream/fs/exec-storage/an-example-to-run-gem5-with-composite-prefetcher
+ mkdir -p/xiangshang/benchmark/stream/fs/exec-storage/an-example-to-run-gem5-with-composite-prefetcher
+ warmup_inst=20000000
+ max_inst=40000000
+ debug_gz=/mnt/project/xiaom/xiangshang/benchmark/image/coremark.1timesriscv
+ rm -f/xiangshang/benchmark/stream/fs/exec-storage/an-example-to-run-gem5-with-composite-prefetcher/completed
+ rm -f/xiangshang/benchmark/stream/fs/exec-storage/an-example-to-run-gem5-with-composite-prefetcher/abort
+ run/xiangshang/benchmark/image/coremark.1timesriscv 20000000 40000000/xiangshang/benchmark/stream/fs/exec-storage/an-example-to-run-gem5-with-composite-prefetcher 1
+ set -x
+ cpt=/mnt/project/xiaom/xiangshang/benchmark/image/coremark.1timesriscv
+ dw_len=20000000
+ total_detail_len=40000000
+ [[ -n/xiangshang/benchmark/stream/fs/exec-storage/an-example-to-run-gem5-with-composite-prefetcher ]]
+ work_dir=/mnt/project/xiaom/xiangshang/benchmark/stream/fs/exec-storage/an-example-to-run-gem5-with-composite-prefetcher
+ arch_db=1
+ cd/xiangshang/benchmark/stream/fs/exec-storage/an-example-to-run-gem5-with-composite-prefetcher
+ test -f completed
+ rm -f abort
+ rm -f completed
++ basename --/xiangshang/benchmark/image/coremark.1timesriscv
+ cpt_name=coremark.1timesriscv
+ extension=1timesriscv
+ cpt_option='--generic-rv-cpt=/mnt/project/xiaom/xiangshang/benchmark/image/coremark.1timesriscv --gcpt-restorer=/mnt/project/xiaom/xiangshang/NEMU-gem5-ref-main/resource/gcpt_restore/build/gcpt.bin '
+ '[' 1timesriscv '!=' gz ']'
+ cpt_option='--generic-rv-cpt=/mnt/project/xiaom/xiangshang/benchmark/image/coremark.1timesriscv --raw-cpt'
+ [[ 1 -eq 0 ]]
+ arch_db_args='--enable-arch-db --arch-db-file=mem_trace.db --arch-db-fromstart=True'
+ [[ -z '' ]]
+ crash_tick=-1
+ [[ -z '' ]]
+ capture_cycles=30000
+ start=-15000001
+ start=0
+ end=14999999
+ start_end=' --debug-start=0 --debug-end=14999999 '
+ [[ -n '' ]]
+ echo 'No debug flag set'
No debug flag set
+ debug_flag_args=
+ start_end=
+ [[ -1 = -1 ]]
+ start_end=
+ debug_flag_args=
+ gdb -ex run --args
gdb: `--args' specified but no program specified
+/xiangshang/gem5/GEM5-xs-dev/build/RISCV/gem5.opt/xiangshang/gem5/GEM5-xs-dev/configs/example/fs.py --xiangshan-system --cpu-type=DerivO3CPU --mem-size=8GB --caches --cacheline_size=64 --l1i_size=64kB --l1i_assoc=8 --l1d_size=64kB --l1d_assoc=8 --l1d-hwp-type=XSCompositePrefetcher --short-stride-thres=0 --l2cache --l2_size=1MB --l2_assoc=8 --l3cache --l3_size=16MB --l3_assoc=16 --l1-to-l2-pf-hint --l2-hwp-type=WorkerPrefetcher --l2-to-l3-pf-hint --l3-hwp-type=WorkerPrefetcher --mem-type=DRAMsim3 --dramsim3-ini=/mnt/project/xiaom/xiangshang/gem5/GEM5-xs-dev/ext/dramsim3/xiangshan_configs/xiangshan_DDR4_8Gb_x8_3200_2ch.ini --bp-type=DecoupledBPUWithFTB --enable-loop-predictor --enable-difftest --enable-arch-db --arch-db-file=mem_trace.db --arch-db-fromstart=True --generic-rv-cpt=/mnt/project/xiaom/xiangshang/benchmark/image/coremark.1timesriscv --raw-cpt --warmup-insts-no-switch=20000000 --maxinsts=40000000
+ tee run.log
Global frequency set at 1000000000000 ticks per second
build/RISCV/sim/arch_db.cc:37: info: Table created: CREATE TABLE L1MissTrace(ID INTEGER PRIMARY KEY AUTOINCREMENT,PC INT NOT NULL,SOURCE INT NOT NULL,PADDR INT NOT NULL,VADDR INT NOT NULL,STAMP INT NOT NULL,SITE TEXT);
build/RISCV/sim/arch_db.cc:37: info: Table created: CREATE TABLE L1EvictTrace(ID INTEGER PRIMARY KEY AUTOINCREMENT,PADDR INT NOT NULL,STAMP INT NOT NULL,SITE TEXT);
build/RISCV/sim/arch_db.cc:37: info: Table created: CREATE TABLE MemTrace(ID INTEGER PRIMARY KEY AUTOINCREMENT,Tick INT NOT NULL,IsLoad BOOL NOT NULL,PC INT NOT NULL,VADDR INT NOT NULL,PADDR INT NOT NULL,Issued INT NOT NULL,Translated INT NOT NULL,Completed INT NOT NULL,Committed INT NOT NULL,Writenback INT NOT NULL,PFSrc INT NOT NULL);
WARNING: Output directory ext/dramsim3/DRAMsim3/ not exists! Using current directory for output!
build/RISCV/arch/riscv/bare_metal/fs_workload.cc:60: info: No bootload provided, because using XS GCPT, reset to 0x80000000
build/RISCV/cpu/base.cc:223: warn: Difftest is disabled
build/RISCV/base/statistics.hh:280: warn: One of the stats is a legacy stat. Legacy stat is a stat that does not belong to any statistics::Group. Legacy stat is deprecated.
111
0: system.remote_gdb: listening for remote gdb on port 7000
build/RISCV/mem/physical.cc:526: info: copying/xiangshang/benchmark/image/coremark.1timesriscv to pmem 0x7f45db200000
build/RISCV/mem/physical.cc:544: info: First 4 bytes are 0x7f 0x45 0x4c 0x46
build/RISCV/sim/system.cc:556: info: Restoring from Xiangshan RISC-V Checkpoint
gem5 Simulator System. https://www.gem5.org
gem5 is copyrighted software; use the --copyright option for details.
gem5 version [DEVELOP-FOR-22.1]
gem5 compiled Jan 30 2024 16:33:48
gem5 started Jan 30 2024 17:12:34
gem5 executing on n168-020-004, pid 88390
command line:/xiangshang/gem5/GEM5-xs-dev/build/RISCV/gem5.opt/xiangshang/gem5/GEM5-xs-dev/configs/example/fs.py --xiangshan-system --cpu-type=DerivO3CPU --mem-size=8GB --caches --cacheline_size=64 --l1i_size=64kB --l1i_assoc=8 --l1d_size=64kB --l1d_assoc=8 --l1d-hwp-type=XSCompositePrefetcher --short-stride-thres=0 --l2cache --l2_size=1MB --l2_assoc=8 --l3cache --l3_size=16MB --l3_assoc=16 --l1-to-l2-pf-hint --l2-hwp-type=WorkerPrefetcher --l2-to-l3-pf-hint --l3-hwp-type=WorkerPrefetcher --mem-type=DRAMsim3 --dramsim3-ini=/mnt/project/xiaom/xiangshang/gem5/GEM5-xs-dev/ext/dramsim3/xiangshan_configs/xiangshan_DDR4_8Gb_x8_3200_2ch.ini --bp-type=DecoupledBPUWithFTB --enable-loop-predictor --enable-difftest --enable-arch-db --arch-db-file=mem_trace.db --arch-db-fromstart=True --generic-rv-cpt=/mnt/project/xiaom/xiangshang/benchmark/image/coremark.1timesriscv --raw-cpt --warmup-insts-no-switch=20000000 --maxinsts=40000000
[<m5.params.AddrRange object at 0x7f47db60a350>]
Using raw bbl None
['basic']
db_switches: []
Attach 1 decoders to thread with addr: <orphan System>.cpu.decoder
Create threads for test sys cpu (RiscvO3CPU)
Add dtb for L1D prefetcher
Add L2 prefetcher as downstream of L1D prefetcher
Add L3 prefetcher as downstream of L2 prefetcher
Add dtb for L2 prefetcher
Finish memory system configuration
No cpu_class provided
Registering probe listeners for Prefetcher system.cpu.dcache.prefetcher
Registering probe listeners for Prefetcher system.cpu.dcache.prefetcher.bop_large
Registering probe listeners for Prefetcher system.cpu.dcache.prefetcher.bop_small
Registering probe listeners for Prefetcher system.cpu.dcache.prefetcher.ipcp
Registering probe listeners for Prefetcher system.cpu.dcache.prefetcher.spp
Registering probe listeners for Prefetcher system.l2.prefetcher
Registering probe listeners for Prefetcher system.l3.prefetcher
**** REAL SIMULATION ****
build/RISCV/sim/simulate.cc:194: info: Entering event queue @ 0. Starting simulation...
gem5.opt: build/RISCV/cpu/pred/ftb/decoupled_bpred.cc:1194: void gem5::branch_prediction::ftb_pred::DecoupledBPUWithFTB::trapSquash(unsigned int, unsigned int, gem5::Addr, const gem5::PCStateBase&, gem5::ThreadID, const unsigned int&): Assertion `it != fetchStreamQueue.end()' failed.
Program aborted at tick 69930
+ check 0
+ '[' 0 -ne 0 ']'
+ touch completed
请问你可以介绍一下你的coremark.1timesriscv是如何生成的吗?
XS-GEM5只支持香山的workload,比如香山的GCPT或者AM裸机应用。你如果用的是boom的,或者别的,我们就不支持
怎么构建香山的GCPT或者AM裸机应用 可以参考 https://xiangshan-doc.readthedocs.io/zh-cn/latest/tutorials/rvsc23/
https://github.com/OpenXiangShan/nexus-am 请参考这个项目进行构建支持香山的AM裸机应用
https://github.com/riscv-boom/riscv-coremark/blob/master/riscv64/core_portme.mak 用这个编译的
你为什么觉得boom的裸机应用可以在XS-GEM5上运行起来?
simple_gem5.sh 跑baremetal bin 的时候报这个错误
重复步骤: 按照simple_gem5.sh 修改脚本如下: 修改--generic-rv-cpt=./xiangshang/benchmark/image/coremark.bare.1timesriscv。 完整脚本如下
然后执行:./simple_gem5.sh