summaryrefslogtreecommitdiff
path: root/src/arch/x86/interrupts.hh
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2007-09-24 17:39:56 -0700
committerGabe Black <gblack@eecs.umich.edu>2007-09-24 17:39:56 -0700
commit418ddf43e645133b3693ab8bf2e56656efcf1ebf (patch)
treec88d688929d2f957e174248db793565ce8b3fc6b /src/arch/x86/interrupts.hh
parentdd277e0d8f1e0303a74a29bd729864a4766e6f73 (diff)
downloadgem5-418ddf43e645133b3693ab8bf2e56656efcf1ebf.tar.xz
X86: Get X86_FS to compile.
--HG-- extra : convert_revision : fb973bcf13648876d5691231845dd47a2be50f01
Diffstat (limited to 'src/arch/x86/interrupts.hh')
-rw-r--r--src/arch/x86/interrupts.hh67
1 files changed, 66 insertions, 1 deletions
diff --git a/src/arch/x86/interrupts.hh b/src/arch/x86/interrupts.hh
index 3f33b8d85..614909f73 100644
--- a/src/arch/x86/interrupts.hh
+++ b/src/arch/x86/interrupts.hh
@@ -58,10 +58,75 @@
#ifndef __ARCH_X86_INTERRUPTS_HH__
#define __ARCH_X86_INTERRUPTS_HH__
-#error X86 is not yet supported!
+#include "arch/x86/faults.hh"
+#include "cpu/thread_context.hh"
namespace X86ISA
{
+
+class Interrupts
+{
+ public:
+ Interrupts()
+ {
+ clear_all();
+ }
+
+ int InterruptLevel(uint64_t softint)
+ {
+ panic("Interrupts don't work on x86!\n");
+ return 0;
+ }
+
+ void post(int int_num, int index)
+ {
+ panic("Interrupts don't work on x86!\n");
+ }
+
+ void clear(int int_num, int index)
+ {
+ panic("Interrupts don't work on x86!\n");
+ }
+
+ void clear_all()
+ {
+ panic("Interrupts don't work on x86!\n");
+ }
+
+ bool check_interrupts(ThreadContext * tc) const
+ {
+ panic("Interrupts don't work on x86!\n");
+ return false;
+ }
+
+ Fault getInterrupt(ThreadContext * tc)
+ {
+ panic("Interrupts don't work on x86!\n");
+ return NoFault;
+ }
+
+ void updateIntrInfo(ThreadContext * tc)
+ {
+ panic("Interrupts don't work on x86!\n");
+ }
+
+ uint64_t get_vec(int int_num)
+ {
+ panic("Interrupts don't work on x86!\n");
+ return 0;
+ }
+
+ void serialize(std::ostream & os)
+ {
+ panic("Interrupts don't work on x86!\n");
+ }
+
+ void unserialize(Checkpoint * cp, const std::string & section)
+ {
+ panic("Interrupts don't work on x86!\n");
+ }
+};
+
};
#endif // __ARCH_X86_INTERRUPTS_HH__