dynarec: don't throw exceptions if NO_MMU

This commit is contained in:
Flyinghead 2019-03-25 13:53:49 +01:00
parent cb6acab40f
commit ba00da2420
2 changed files with 4 additions and 1 deletions

View File

@ -684,16 +684,20 @@ void print_blocks()
{
gcode=op->guest_offs;
u32 rpc=blk->vaddr+gcode;
#ifndef NO_MMU
try {
#endif
u16 op=IReadMem16(rpc);
char temp[128];
OpDesc[op]->Disassemble(temp,rpc,op);
fprintf(f,"//g: %04X %s\n", op, temp);
#ifndef NO_MMU
} catch (SH4ThrownException& ex) {
fprintf(f,"//g: ???? (page fault)\n");
}
#endif
}
string s=op->dissasm();

View File

@ -266,7 +266,6 @@ static void interpreter_fallback(u16 op, u32 pc)
OpDesc[op]->oph(op);
exception_raised = 0;
} catch (SH4ThrownException& ex) {
printf("HOLY SHIT! interpreter_fallback exception pc %08x evn %x vect %x\n", pc, ex.expEvn, ex.callVect);
if (pc & 1)
{
// Delay slot