#else
+ void
+ InvalidOpcode::invoke(ThreadContext * tc, StaticInstPtr inst)
+ {
+ panic("Unrecognized/invalid instruction executed:\n %s",
+ inst->machInst);
+ }
+
void
PageFault::invoke(ThreadContext * tc, StaticInstPtr inst)
{
InvalidOpcode() :
X86Fault("Invalid-Opcode", "#UD", 6)
{}
+
+#if !FULL_SYSTEM
+ void invoke(ThreadContext * tc,
+ StaticInstPtr inst = StaticInst::nullStaticInstPtr);
+#endif
};
class DeviceNotAvailable : public X86Fault
Fault Unknown::execute(%(CPU_exec_context)s *xc,
Trace::InstRecord *traceData) const
{
- warn("No instructions are implemented for X86!\n");
- return NoFault;
+ return new InvalidOpcode();
}
}};