m68k: Silence compiler warnings

This commit is contained in:
Lioncash 2018-11-16 21:23:55 -05:00
parent f694264212
commit 1c0e09c467
No known key found for this signature in database
GPG Key ID: 4E3C3CC1031BA9C7
3 changed files with 5 additions and 6 deletions

View File

@ -27,10 +27,10 @@
#define SIGNBIT (1u << 31)
void raise_exception(CPUM68KState *env, int tt);
void HELPER(cf_movec_to)(CPUM68KState *env, uint32_t reg, uint32_t val)
{
M68kCPU *cpu = m68k_env_get_cpu(env);
switch (reg) {
case M68K_CR_CACR:
env->cacr = val;
@ -49,7 +49,7 @@ void HELPER(cf_movec_to)(CPUM68KState *env, uint32_t reg, uint32_t val)
default:
qemu_log("Unimplemented control register write 0x%x = 0x%x\n",
reg, val);
raise_exception(env, EXCP_UNSUPPORTED);
raise_exception(env, EXCP_ILLEGAL);
}
}

View File

@ -539,7 +539,8 @@ static void raise_exception_ra(CPUM68KState *env, int tt, uintptr_t raddr)
cpu_loop_exit_restore(cs, raddr);
}
static void raise_exception(CPUM68KState *env, int tt)
void raise_exception(CPUM68KState *env, int tt);
void raise_exception(CPUM68KState *env, int tt)
{
raise_exception_ra(env, tt, 0);
}

View File

@ -4970,8 +4970,6 @@ DISAS_INSN(wddata)
DISAS_INSN(wdebug)
{
M68kCPU *cpu = m68k_env_get_cpu(env);
if (IS_USER(s)) {
gen_exception(s, s->base.pc_next, EXCP_PRIVILEGE);
return;