Prevents abort with m68K

* Prevents abort with m68K

Raises exception instead

* M68K remove one uses of abort

* Less aborts and logs instead for M68K

Backports commit 910999d3969b682d8376db1266f9885866cd785c from unicorn
This commit is contained in:
Catena cyber 2018-10-06 04:59:10 -04:00 committed by Lioncash
parent 43c48b72ea
commit e3b8ea18bf
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7
2 changed files with 5 additions and 4 deletions

View file

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

View file

@ -4976,7 +4976,8 @@ DISAS_INSN(wdebug)
return; return;
} }
/* TODO: Implement wdebug. */ /* TODO: Implement wdebug. */
cpu_abort(CPU(cpu), "WDEBUG not implemented"); qemu_log("WDEBUG not implemented\n");
gen_exception(s, s->pc - 2, EXCP_UNSUPPORTED);
} }
#endif #endif