I have a program bin.riscv that is running on 4 prcoessors simulatenously.
Inside riscv.bin:
// some code
m5_checkpoint(0,0);
m5_reset_stats(0,0);  
// some code
I'm running GEM5 using the following commands:
  1. First
    gem5.opt ./configs/example/se.py -n 4 --caches --max-checkpoints 1  --cpu-type AtomicSimpleCPU --cmd 'a.riscv;a.riscv;a.riscv;a.riscv'

  2. Then
    gem5.opt ./configs/example/se.py -n 4 --caches --checkpoint-restore=1 --restore-with-cpu DerivO3CPU --cmd 'a.riscv;a.riscv;a.riscv;a.riscv'
The statistics are different than if I run the same code (including writing checkpints and reset stats) but with the following gem5 command:
  1. gem5.opt ./configs/example/se.py -n 4 --caches --cpu-type DerivO3CPU --cmd 'a.riscv;a.riscv;a.riscv;a.riscv'

It is worth mentioning that also the different CPUs don't have the same number of instructions instsIssued or numInsts (i.e committed instructions) (from GEM5 generated stats file) .

Do you have explanations or any useful suggestions?
Thanks.



_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org

Reply via email to