From 349a155b6e38c128f155b1c83d9f11e73f6e8673 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sun, 12 Oct 2008 23:00:28 -0700 Subject: X86: Panic when an unimplemented fault is invoked, rather than spinning forever --- src/arch/x86/faults.hh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/arch/x86/faults.hh') 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 -- cgit v1.2.3