summaryrefslogtreecommitdiff
path: root/src/arch/x86/faults.cc
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2010-09-14 12:27:30 -0700
committerGabe Black <gblack@eecs.umich.edu>2010-09-14 12:27:30 -0700
commit0bbd88eb40e553deaabd6fbc935a596125701a86 (patch)
tree32bf7a74c88ad4340111b12cf34cf1203eebd6eb /src/arch/x86/faults.cc
parent0dd1f7f01a8a744811aede5814111b8681271a6b (diff)
downloadgem5-0bbd88eb40e553deaabd6fbc935a596125701a86.tar.xz
X86: Make unrecognized instructions behave better in x86.
Diffstat (limited to 'src/arch/x86/faults.cc')
-rw-r--r--src/arch/x86/faults.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/arch/x86/faults.cc b/src/arch/x86/faults.cc
index 4c8fb33c2..4f2d97f90 100644
--- a/src/arch/x86/faults.cc
+++ b/src/arch/x86/faults.cc
@@ -270,6 +270,13 @@ namespace X86ISA
#else
void
+ InvalidOpcode::invoke(ThreadContext * tc, StaticInstPtr inst)
+ {
+ panic("Unrecognized/invalid instruction executed:\n %s",
+ inst->machInst);
+ }
+
+ void
PageFault::invoke(ThreadContext * tc, StaticInstPtr inst)
{
PageFaultErrorCode code = errorCode;