From 58d30df67607d896c64689a27780729062c6d302 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Mon, 5 Mar 2007 16:07:01 +0000 Subject: Added fault generation functions. I would still like to see these go away. The page table fault should be moved into sim/faults.hh because it's a "fake" m5 fault for se mode and shouldn't vary between architectures. --HG-- extra : convert_revision : cafe25befd64f83a424c1a09f5e62a16df5408ad --- src/arch/x86/faults.hh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/arch') diff --git a/src/arch/x86/faults.hh b/src/arch/x86/faults.hh index 384b4b352..6d89c273a 100644 --- a/src/arch/x86/faults.hh +++ b/src/arch/x86/faults.hh @@ -70,6 +70,21 @@ namespace X86ISA panic("X86 faults are not implemented!"); } }; + + static inline Fault genPageTableFault(Addr va) + { + panic("Page table fault not implemented in x86!\n"); + } + + static inline Fault genMachineCheckFault() + { + panic("Machine check fault not implemented in x86!\n"); + } + + static inline Fault genAlignmentFault() + { + panic("Alignment fault not implemented (or for the most part existant) in x86!\n"); + } }; #endif // __ARCH_X86_FAULTS_HH__ -- cgit v1.2.3