diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2007-03-05 16:07:01 +0000 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2007-03-05 16:07:01 +0000 |
commit | 58d30df67607d896c64689a27780729062c6d302 (patch) | |
tree | e4f40334b084bdfd331e2c953f52b2d4787a9ff6 /src | |
parent | c7ab9f5bb2d3be5c7e751d5f9ef1953bb44389a0 (diff) | |
download | gem5-58d30df67607d896c64689a27780729062c6d302.tar.xz |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/arch/x86/faults.hh | 15 |
1 files changed, 15 insertions, 0 deletions
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__ |