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

View file

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