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
This commit is contained in:
@@ -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__
|
||||
|
||||
Reference in New Issue
Block a user