diff -r af826b390123 -r 8ad7ff7b8cfb src/arch/arm/ArmSystem.py --- a/src/arch/arm/ArmSystem.py Wed Feb 13 11:51:34 2013 -0500 +++ b/src/arch/arm/ArmSystem.py Wed Feb 13 11:52:40 2013 -0500 @@ -68,3 +68,8 @@ early_kernel_symbols = Param.Bool(False, "enable early kernel symbol tables before MMU") enable_context_switch_stats_dump = Param.Bool(False, "enable stats/task info dumping at context switch boundaries") + + panic_on_panic = Param.Bool(False, "Trigger a gem5 panic if the " \ + "guest kernel panics") + panic_on_oops = Param.Bool(False, "Trigger a gem5 panic if the " \ + "guest kernel oopses") diff -r af826b390123 -r 8ad7ff7b8cfb src/arch/arm/linux/system.hh --- a/src/arch/arm/linux/system.hh Wed Feb 13 11:51:34 2013 -0500 +++ b/src/arch/arm/linux/system.hh Wed Feb 13 11:52:40 2013 -0500 @@ -98,10 +98,12 @@ 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(