summaryrefslogtreecommitdiff
path: root/qemu/hw/mips_timer.c
diff options
context:
space:
mode:
authorpbrook <pbrook>2007-04-07 18:14:41 +0000
committerpbrook <pbrook>2007-04-07 18:14:41 +0000
commit48d880b7e9e19ddad67d75fb7bd459c7e3da1693 (patch)
treee3ea69e9abb4c677d075263f8551f74b0b0091ec /qemu/hw/mips_timer.c
parent89d870fe03980218b08df639fafc6600606ad539 (diff)
Unify IRQ handling.
Diffstat (limited to 'qemu/hw/mips_timer.c')
-rw-r--r--qemu/hw/mips_timer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/qemu/hw/mips_timer.c b/qemu/hw/mips_timer.c
index 9128cbff..bd89e5de 100644
--- a/qemu/hw/mips_timer.c
+++ b/qemu/hw/mips_timer.c
@@ -63,7 +63,7 @@ void cpu_mips_store_compare (CPUState *env, uint32_t value)
cpu_mips_update_count(env, cpu_mips_get_count(env));
if ((env->CP0_Config0 & (0x7 << CP0C0_AR)) == (1 << CP0C0_AR))
env->CP0_Cause &= ~(1 << CP0Ca_TI);
- cpu_mips_irq_request(env, 7, 0);
+ qemu_irq_lower(env->irq[7]);
}
static void mips_timer_cb (void *opaque)
@@ -79,7 +79,7 @@ static void mips_timer_cb (void *opaque)
cpu_mips_update_count(env, cpu_mips_get_count(env));
if ((env->CP0_Config0 & (0x7 << CP0C0_AR)) == (1 << CP0C0_AR))
env->CP0_Cause |= 1 << CP0Ca_TI;
- cpu_mips_irq_request(env, 7, 1);
+ qemu_irq_raise(env->irq[7]);
}
void cpu_mips_clock_init (CPUState *env)