hw_x86_64: Emit debug message on #UD

Print information when handling an undefined instruction exception.
This commit is contained in:
Adrian-Ken Rueegsegger 2015-04-21 23:05:58 +02:00 committed by Christian Helmuth
parent 96149db858
commit 4d700fe2ae
1 changed files with 5 additions and 0 deletions

View File

@ -35,6 +35,11 @@ void Thread::exception(unsigned const cpu)
PWRN("%s -> %s: FPU error", pd_label(), label());
_stop();
return;
case UNDEFINED_INSTRUCTION:
PWRN("%s -> %s: undefined instruction at ip=%p",
pd_label(), label(), (void*)ip);
_stop();
return;
case SUPERVISOR_CALL:
_call();
return;