diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2008-10-12 23:00:28 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2008-10-12 23:00:28 -0700 |
commit | 349a155b6e38c128f155b1c83d9f11e73f6e8673 (patch) | |
tree | 928987ed7b694d9b6cdcd44602c7924d1f80a8da /src/arch/x86/faults.hh | |
parent | 564eda827bc9ebe3bacfb9a44838e4abc1deb61b (diff) | |
download | gem5-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.hh | 6 |
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 |