summaryrefslogtreecommitdiff
path: root/src/arch/arm/linux/system.hh
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 /src/arch/arm/linux/system.hh
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 'src/arch/arm/linux/system.hh')
-rw-r--r--src/arch/arm/linux/system.hh8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/arch/arm/linux/system.hh b/src/arch/arm/linux/system.hh
index feed8cfaa..008c64429 100644
--- a/src/arch/arm/linux/system.hh
+++ b/src/arch/arm/linux/system.hh
@@ -98,10 +98,12 @@ class LinuxArmSystem : public ArmSystem
void mapPid(ThreadContext* tc, uint32_t pid);
private:
-#ifndef NDEBUG
/** Event to halt the simulator if the kernel calls panic() */
- BreakPCEvent *kernelPanicEvent;
-#endif
+ PCEvent *kernelPanicEvent;
+
+ /** Event to halt the simulator if the kernel calls oopses */
+ PCEvent *kernelOopsEvent;
+
/**
* PC based event to skip udelay(<time>) calls and quiesce the
* processor for the appropriate amount of time. This is not functionally