summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndreas Sandberg <Andreas.Sandberg@ARM.com>2013-04-22 13:20:31 -0400
committerAndreas Sandberg <Andreas.Sandberg@ARM.com>2013-04-22 13:20:31 -0400
commit5f2361f3afb5c8d15e0a5f262a0f8a7942084563 (patch)
tree7f8fc4f091569baeb0de62e3f081c28534aa6110 /tests
parente8381142b061fbdf2f22d958f1c7559e9ffb3bd8 (diff)
downloadgem5-5f2361f3afb5c8d15e0a5f262a0f8a7942084563.tar.xz
arm: Enable support for triggering a sim panic on kernel panics
Add the options 'panic_on_panic' and 'panic_on_oops' to the LinuxArmSystem SimObject. When these option are enabled, the simulator panics when the guest kernel panics or oopses. Enable panic on panic and panic on oops in ARM-based test cases.
Diffstat (limited to 'tests')
-rw-r--r--tests/configs/arm_generic.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/configs/arm_generic.py b/tests/configs/arm_generic.py
index 95f9b8bd1..1b0e8ee8b 100644
--- a/tests/configs/arm_generic.py
+++ b/tests/configs/arm_generic.py
@@ -62,6 +62,13 @@ class LinuxArmSystemBuilder(object):
system = FSConfig.makeArmSystem(self.mem_mode,
self.machine_type,
None, False)
+
+ # We typically want the simulator to panic if the kernel
+ # panics or oopses. This prevents the simulator from running
+ # an obviously failed test case until the end of time.
+ system.panic_on_panic = True
+ system.panic_on_oops = True
+
self.init_system(system)
return system