projects
/
gem5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reworking x86's microcode system. This is a work in progress, and X86 doesn't compile.
[gem5.git]
/
src
/
arch
/
x86
/
faults.hh
diff --git
a/src/arch/x86/faults.hh
b/src/arch/x86/faults.hh
index 6d89c273a81e896cee8ef5e81d690b281230c0d7..8c9afcdb56653048258446343cb36253569a9965 100644
(file)
--- a/
src/arch/x86/faults.hh
+++ b/
src/arch/x86/faults.hh
@@
-65,12
+65,32
@@
namespace X86ISA
{
class X86Fault : public FaultBase
{
{
class X86Fault : public FaultBase
{
+ protected:
+ const char * name()
+ {
+ return "generic_x86_fault";
+ }
+
void invoke(ThreadContext * tc)
{
panic("X86 faults are not implemented!");
}
};
void invoke(ThreadContext * tc)
{
panic("X86 faults are not implemented!");
}
};
+ class UnimpInstFault : public FaultBase
+ {
+ public:
+ const char * name()
+ {
+ return "unimplemented_micro";
+ }
+
+ void invoke(ThreadContext * tc)
+ {
+ panic("Unimplemented instruction!");
+ }
+ };
+
static inline Fault genPageTableFault(Addr va)
{
panic("Page table fault not implemented in x86!\n");
static inline Fault genPageTableFault(Addr va)
{
panic("Page table fault not implemented in x86!\n");