[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 02/11] hw/rtc/ls7a_rtc: Fix timer call back function
From: |
Xiaojuan Yang |
Subject: |
[PATCH 02/11] hw/rtc/ls7a_rtc: Fix timer call back function |
Date: |
Fri, 1 Jul 2022 17:33:58 +0800 |
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>
---
hw/rtc/ls7a_rtc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/rtc/ls7a_rtc.c b/hw/rtc/ls7a_rtc.c
index b88a90de8b..780144b9da 100644
--- a/hw/rtc/ls7a_rtc.c
+++ b/hw/rtc/ls7a_rtc.c
@@ -425,7 +425,7 @@ static void toy_timer_cb(void *opaque)
LS7ARtcState *s = opaque;
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;
if (rtc_enabled(s)) {
- qemu_irq_pulse(s->irq);
+ qemu_irq_raise(s->irq);
}
}
--
2.31.1
- Re: [PATCH 11/11] hw/intc/loongarch_ipi: Fix mail send and any send function, (continued)
[PATCH 07/11] hw/rtc/ls7a_rtc: Fix 'calculate' spelling errors, Xiaojuan Yang, 2022/07/01
[PATCH 10/11] hw/intc/loongarch_ipi: Fix ipi device access of 64bits, Xiaojuan Yang, 2022/07/01
[PATCH 08/11] target/loongarch: Fix the meaning of ECFG reg's VS field, Xiaojuan Yang, 2022/07/01
[PATCH 02/11] hw/rtc/ls7a_rtc: Fix timer call back function,
Xiaojuan Yang <=
[PATCH 01/11] hw/rtc/ls7a_rtc: Fix uninitialied bugs and toymatch writing function, Xiaojuan Yang, 2022/07/01
[PATCH 09/11] target/loongarch: Add lock when writing timer clear reg, Xiaojuan Yang, 2022/07/01
Re: [PATCH v2 00/11] Fix bugs for LoongArch virt machine, Richard Henderson, 2022/07/04