From: Gabe Black Date: Mon, 5 Mar 2007 16:07:01 +0000 (+0000) Subject: Added fault generation functions. I would still like to see these go away. The page... X-Git-Tag: m5_2.0_beta3~152 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=58d30df67607d896c64689a27780729062c6d302;p=gem5.git 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 --- 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__