hw/rtc/ls7a_rtc: Fix timer call back function
Replace qemu_irq_pulse with qemu_irq_raise in ls7a_timer_cb function to keep consistent with hardware behavior when raise irq. Signed-off-by: Xiaojuan Yang <yangxiaojuan@loongson.cn> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20220701093407.2150607-3-yangxiaojuan@loongson.cn> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
4f2c65877c
commit
df11f3ea69
@ -425,7 +425,7 @@ static void toy_timer_cb(void *opaque)
|
|||||||
LS7ARtcState *s = opaque;
|
LS7ARtcState *s = opaque;
|
||||||
|
|
||||||
if (toy_enabled(s)) {
|
if (toy_enabled(s)) {
|
||||||
qemu_irq_pulse(s->irq);
|
qemu_irq_raise(s->irq);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -434,7 +434,7 @@ static void rtc_timer_cb(void *opaque)
|
|||||||
LS7ARtcState *s = opaque;
|
LS7ARtcState *s = opaque;
|
||||||
|
|
||||||
if (rtc_enabled(s)) {
|
if (rtc_enabled(s)) {
|
||||||
qemu_irq_pulse(s->irq);
|
qemu_irq_raise(s->irq);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user