faults: i think these fault invocations should be panic and not fatal. it definitely made implementing a trace cpu easier this way.

This commit is contained in:
Lisa Hsu 2010-01-12 10:17:19 -08:00
parent 4f4e6fc099
commit daebe18e89

View file

@ -40,7 +40,7 @@
#if !FULL_SYSTEM #if !FULL_SYSTEM
void FaultBase::invoke(ThreadContext * tc) void FaultBase::invoke(ThreadContext * tc)
{ {
fatal("fault (%s) detected @ PC %p", name(), tc->readPC()); panic("fault (%s) detected @ PC %p", name(), tc->readPC());
} }
#else #else
void FaultBase::invoke(ThreadContext * tc) void FaultBase::invoke(ThreadContext * tc)
@ -54,7 +54,7 @@ void FaultBase::invoke(ThreadContext * tc)
void UnimpFault::invoke(ThreadContext * tc) void UnimpFault::invoke(ThreadContext * tc)
{ {
fatal("Unimpfault: %s\n", panicStr.c_str()); panic("Unimpfault: %s\n", panicStr.c_str());
} }
#if !FULL_SYSTEM #if !FULL_SYSTEM