diff options
Diffstat (limited to 'hw')
-rw-r--r-- | hw/mips_int.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/hw/mips_int.c b/hw/mips_int.c index 80488baeba..477f6abf95 100644 --- a/hw/mips_int.c +++ b/hw/mips_int.c @@ -54,3 +54,12 @@ void cpu_mips_irq_init_cpu(CPUState *env) env->irq[i] = qi[i]; } } + +void cpu_mips_soft_irq(CPUState *env, int irq, int level) +{ + if (irq < 0 || irq > 2) { + return; + } + + qemu_set_irq(env->irq[irq], level); +} |