M68K: fix implicit casts of fault handler

This commit is contained in:
François Revol 2016-07-20 21:07:26 +02:00
parent 830fd19eb5
commit 7cd7ba758c

View File

@ -197,7 +197,7 @@ m68k_exception_entry(struct iframe *iframe)
if (kernelDebugger) {
// if this thread has a fault handler, we're allowed to be here
if (thread && thread->fault_handler != 0) {
iframe->cpu.pc = thread->fault_handler;
iframe->cpu.pc = reinterpret_cast<addr_t>(thread->fault_handler);
break;
}
@ -215,7 +215,7 @@ m68k_exception_entry(struct iframe *iframe)
// disabled, which in most cases is a bug. We should add some thread
// flag allowing to explicitly indicate that this handling is desired.
if (thread && thread->fault_handler != 0) {
iframe->cpu.pc = thread->fault_handler;
iframe->cpu.pc = reinterpret_cast<addr_t>(thread->fault_handler);
return;
}