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:
Gabe Black
2007-03-05 16:07:01 +00:00
parent c7ab9f5bb2
commit 58d30df676

View File

@@ -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__