diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2009-02-25 10:17:59 -0800 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2009-02-25 10:17:59 -0800 |
commit | 1cedc748d413513c1bb98a454cc035f35b30f0f9 (patch) | |
tree | 7d03b1f784d5332327821e5d11a024b7a03b44eb /src/arch/x86/faults.hh | |
parent | eec3f49a57aca83e492e72b9cf55a8c6c6ebae73 (diff) | |
download | gem5-1cedc748d413513c1bb98a454cc035f35b30f0f9.tar.xz |
X86: Add a trace flag for tracing faults.
Diffstat (limited to 'src/arch/x86/faults.hh')
-rw-r--r-- | src/arch/x86/faults.hh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/arch/x86/faults.hh b/src/arch/x86/faults.hh index 3753e60e5..cb1a3f18a 100644 --- a/src/arch/x86/faults.hh +++ b/src/arch/x86/faults.hh @@ -62,6 +62,8 @@ #include "base/misc.hh" #include "sim/faults.hh" +#include <string> + namespace X86ISA { // Base class for all x86 "faults" where faults is in the m5 sense @@ -102,6 +104,8 @@ namespace X86ISA #if FULL_SYSTEM void invoke(ThreadContext * tc); + + virtual std::string describe() const; #endif }; @@ -342,6 +346,8 @@ namespace X86ISA #if FULL_SYSTEM void invoke(ThreadContext * tc); + + virtual std::string describe() const; #endif }; @@ -414,7 +420,7 @@ namespace X86ISA { public: SoftwareInterrupt(uint8_t _vector) : - X86Interrupt("Software Interrupt", "INTn", _vector) + X86Interrupt("Software Interrupt", "#INTR", _vector) {} bool isSoft() |