Discussion:
[gem5-users] Restore a checkpoint with DerivO3CPU in FS mode
Abbas Fairouz
2018-08-24 15:38:13 UTC
Permalink
Hi there,

I'm trying to restore a checkpoint (created using "
configs/boot/hack_back_ckpt.rcS" script). The simulation hangs up after
restoring the simulation from the checkpoint.

Here are the details:

*creating a checkpoint command:*

gem5~> ./build/X86/gem5.opt -d m5out/cpt_general configs/example/fs.py
--script=configs/boot/hack_back_ckpt.rcS



*restoring a checkpoint command:*

gem5~> ./build/X86/gem5.opt -d m5out/test_restore_cpu
./configs/example/fs.py --checkpoint-dir=m5out/cpt_general -r 1
--cpu-clock=1GHz --caches --l2cache --l1d_size=64kB
--script=myscripts/test.rcS --mem-type=DDR4_2400_8x8
--restore-with-cpu=DerivO3CPU --cpu-type=DerivO3CPU

*terminal output:*

gem5~> telnet localhost 3457

Trying ::1...

telnet: connect to address ::1: Connection refused

Trying 127.0.0.1...

Connected to localhost.

Escape character is '^]'.

==== m5 slave terminal: Terminal 0 ====

Loading new script...

Start

Bye


*test.rcS script:*

#!/bin/sh

echo "Start"

echo "Bye"

/sbin/m5 exit


Why the simulation is hanging and not exiting?


Best regards,
Abbas Fairouz
Ciro Santilli
2018-08-24 18:30:59 UTC
Permalink
I don't reproduce with:
https://github.com/cirosantilli/linux-kernel-module-cheat/tree/155357f0e27129f7a4da151aae17189d4715eaf0#gem5-restore-checkpoint-with-a-different-cpu
I can restore DerivO3CPU and m5 exit exits normally, commands similar to
yours.

I recommend that you first get rid of all rc scripts, and just start a
regular shell with m5term, manually type in m5 checkpoint, and then restore
that shell afterwards. This way you will understand everything better and
decide if it is a bug in the rc scripts or in gem5 itself.
Post by Abbas Fairouz
Hi there,
I'm trying to restore a checkpoint (created using "
configs/boot/hack_back_ckpt.rcS" script). The simulation hangs up after
restoring the simulation from the checkpoint.
*creating a checkpoint command:*
gem5~> ./build/X86/gem5.opt -d m5out/cpt_general configs/example/fs.py
--script=configs/boot/hack_back_ckpt.rcS
*restoring a checkpoint command:*
gem5~> ./build/X86/gem5.opt -d m5out/test_restore_cpu
./configs/example/fs.py --checkpoint-dir=m5out/cpt_general -r 1
--cpu-clock=1GHz --caches --l2cache --l1d_size=64kB
--script=myscripts/test.rcS --mem-type=DDR4_2400_8x8
--restore-with-cpu=DerivO3CPU --cpu-type=DerivO3CPU
*terminal output:*
gem5~> telnet localhost 3457
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
==== m5 slave terminal: Terminal 0 ====
Loading new script...
Start
Bye
*test.rcS script:*
#!/bin/sh
echo "Start"
echo "Bye"
/sbin/m5 exit
Why the simulation is hanging and not exiting?
Best regards,
Abbas Fairouz
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Loading...