summaryrefslogtreecommitdiff
path: root/src/arch/x86/faults.hh
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2009-02-25 10:17:59 -0800
committerGabe Black <gblack@eecs.umich.edu>2009-02-25 10:17:59 -0800
commit1cedc748d413513c1bb98a454cc035f35b30f0f9 (patch)
tree7d03b1f784d5332327821e5d11a024b7a03b44eb /src/arch/x86/faults.hh
parenteec3f49a57aca83e492e72b9cf55a8c6c6ebae73 (diff)
downloadgem5-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.hh8
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()