resources: print a statement to std when booting Linux is done

This is useful for checking the status of booting Linux with KVM.
Occasionally, booting Linux kernel with KVM gets stuck and there
is no mechanism to detect this. By expecting the simulation
to print out a statement indicating the booting process is done
after a reasonable amount of time, one can detect this issue
automatically.

In other words, this is useful to implement timeout specifically
for booting Linux kernel with KVM.

Signed-off-by: Hoa Nguyen <hoanguyen@ucdavis.edu>
Change-Id: Ieddd28a946857528f73e58636ff1de184ff73702
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5-resources/+/44125
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: Jason Lowe-Power <power.jg@gmail.com>
diff --git a/src/gapbs/configs/run_gapbs.py b/src/gapbs/configs/run_gapbs.py
index 230e40b..2e9848c 100644
--- a/src/gapbs/configs/run_gapbs.py
+++ b/src/gapbs/configs/run_gapbs.py
@@ -134,7 +134,9 @@
 
     print("Running the simulation")
     exit_event = m5.simulate()
+
     if exit_event.getCause() == "work started count reach":
+        print("Done booting Linux")
         m5.stats.reset()
         start_tick = m5.curTick()
         start_insts = system.totalInsts()
diff --git a/src/npb/configs/run_npb.py b/src/npb/configs/run_npb.py
index 2bbe838..12b43de 100755
--- a/src/npb/configs/run_npb.py
+++ b/src/npb/configs/run_npb.py
@@ -115,6 +115,7 @@
     exit_event = m5.simulate()
 
     if exit_event.getCause() == "workbegin":
+        print("Done booting Linux")
         # Reached the start of ROI
         # start of ROI is marked by an
         # m5_work_begin() call
diff --git a/src/parsec/configs-mesi-two-level/run_parsec_mesi_two_level.py b/src/parsec/configs-mesi-two-level/run_parsec_mesi_two_level.py
index ebee1b0..e95c8e1 100755
--- a/src/parsec/configs-mesi-two-level/run_parsec_mesi_two_level.py
+++ b/src/parsec/configs-mesi-two-level/run_parsec_mesi_two_level.py
@@ -117,6 +117,7 @@
     exit_event = m5.simulate()
 
     if exit_event.getCause() == "workbegin":
+        print("Done booting Linux")
         # Reached the start of ROI
         # start of ROI is marked by an
         # m5_work_begin() call
diff --git a/src/parsec/configs/run_parsec.py b/src/parsec/configs/run_parsec.py
index 65ccb63..bab584e 100644
--- a/src/parsec/configs/run_parsec.py
+++ b/src/parsec/configs/run_parsec.py
@@ -115,6 +115,7 @@
     exit_event = m5.simulate()
 
     if exit_event.getCause() == "workbegin":
+        print("Done booting Linux")
         # Reached the start of ROI
         # start of ROI is marked by an
         # m5_work_begin() call
diff --git a/src/spec-2006/configs/run_spec.py b/src/spec-2006/configs/run_spec.py
index 0a54e44..461e956 100644
--- a/src/spec-2006/configs/run_spec.py
+++ b/src/spec-2006/configs/run_spec.py
@@ -185,7 +185,7 @@
     if not success:
         print("Error while booting linux: {}".format(exit_cause))
         exit(1)
-    print("Booting done")
+    print("Done booting Linux")
     return success, exit_cause
 
 def run_spec_benchmark():
diff --git a/src/spec-2017/configs/run_spec.py b/src/spec-2017/configs/run_spec.py
index 742614a..f00913c 100644
--- a/src/spec-2017/configs/run_spec.py
+++ b/src/spec-2017/configs/run_spec.py
@@ -185,7 +185,7 @@
     if not success:
         print("Error while booting linux: {}".format(exit_cause))
         exit(1)
-    print("Booting done")
+    print("Done booting Linux")
     return success, exit_cause
 
 def run_spec_benchmark():