Prevents abort with m68K (#1012)

* Prevents abort with m68K

Raises exception instead

* M68K remove one uses of abort

* Less aborts and logs instead for M68K
This commit is contained in:
Catena cyber 2018-09-16 15:50:35 +02:00 committed by Nguyen Anh Quynh
parent 4a86318cf4
commit 910999d396
2 changed files with 10 additions and 7 deletions

View File

@ -142,8 +142,9 @@ void HELPER(movec)(CPUM68KState *env, uint32_t reg, uint32_t val)
break;
/* TODO: Implement control registers. */
default:
cpu_abort(CPU(cpu), "Unimplemented control register write 0x%x = 0x%x\n",
reg, val);
qemu_log("Unimplemented control register write 0x%x = 0x%x\n",
reg, val);
raise_exception(env, EXCP_UNSUPPORTED);
}
}

View File

@ -2148,7 +2148,8 @@ DISAS_INSN(wdebug)
return;
}
/* TODO: Implement wdebug. */
cpu_abort(CPU(cpu), "WDEBUG not implemented");
qemu_log("WDEBUG not implemented\n");
gen_exception(s, s->pc - 2, EXCP_UNSUPPORTED);
}
DISAS_INSN(trap)
@ -2245,8 +2246,9 @@ DISAS_INSN(fpu)
case 1: /* FPIAR */
case 2: /* FPSR */
default:
cpu_abort(NULL, "Unimplemented: fmove to control %d",
(ext >> 10) & 7);
qemu_log("Unimplemented: fmove to control %d\n",
(ext >> 10) & 7);
goto undef;
}
break;
case 5: /* fmove from control register. */
@ -2258,8 +2260,8 @@ DISAS_INSN(fpu)
case 1: /* FPIAR */
case 2: /* FPSR */
default:
cpu_abort(NULL, "Unimplemented: fmove from control %d",
(ext >> 10) & 7);
qemu_log("Unimplemented: fmove from control %d\n",
(ext >> 10) & 7);
goto undef;
}
DEST_EA(env, insn, OS_LONG, tmp32, NULL);