summaryrefslogtreecommitdiff
path: root/src/arch/x86/faults.hh
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2008-10-12 23:00:28 -0700
committerGabe Black <gblack@eecs.umich.edu>2008-10-12 23:00:28 -0700
commit349a155b6e38c128f155b1c83d9f11e73f6e8673 (patch)
tree928987ed7b694d9b6cdcd44602c7924d1f80a8da /src/arch/x86/faults.hh
parent564eda827bc9ebe3bacfb9a44838e4abc1deb61b (diff)
downloadgem5-349a155b6e38c128f155b1c83d9f11e73f6e8673.tar.xz
X86: Panic when an unimplemented fault is invoked, rather than spinning forever
Diffstat (limited to 'src/arch/x86/faults.hh')
-rw-r--r--src/arch/x86/faults.hh6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/arch/x86/faults.hh b/src/arch/x86/faults.hh
index b7948a638..3bcacffe2 100644
--- a/src/arch/x86/faults.hh
+++ b/src/arch/x86/faults.hh
@@ -91,6 +91,12 @@ namespace X86ISA
{
return mnem;
}
+
+ void
+ invoke(ThreadContext * tc)
+ {
+ panic("Unimplemented fault %s.\n", name());
+ }
};
// Base class for x86 faults which behave as if the underlying instruction