[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 16/23] hw/rtc/ls7a_rtc: Fix timer call back function
From: |
Richard Henderson |
Subject: |
[PULL 16/23] hw/rtc/ls7a_rtc: Fix timer call back function |
Date: |
Mon, 4 Jul 2022 15:03:50 +0530 |
From: Xiaojuan Yang <yangxiaojuan@loongson.cn>
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>
---
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.34.1
- [PULL 07/23] target/loongarch: remove badaddr from CPULoongArch, (continued)
- [PULL 07/23] target/loongarch: remove badaddr from CPULoongArch, Richard Henderson, 2022/07/04
- [PULL 08/23] target/loongarch: Fix missing update CSR_BADV, Richard Henderson, 2022/07/04
- [PULL 06/23] scripts: add loongarch64 binfmt config, Richard Henderson, 2022/07/04
- [PULL 09/23] target/loongarch: Fix helper_asrtle_d/asrtgt_d raise wrong exception, Richard Henderson, 2022/07/04
- [PULL 10/23] target/loongarch: remove unused include hw/loader.h, Richard Henderson, 2022/07/04
- [PULL 12/23] default-configs: Add loongarch linux-user support, Richard Henderson, 2022/07/04
- [PULL 11/23] target/loongarch: Adjust functions and structure to support user-mode, Richard Henderson, 2022/07/04
- [PULL 14/23] hw/intc/loongarch_pch_msi: Fix msi vector convertion, Richard Henderson, 2022/07/04
- [PULL 13/23] target/loongarch: Update README, Richard Henderson, 2022/07/04
- [PULL 15/23] hw/rtc/ls7a_rtc: Fix uninitialied bugs and toymatch writing function, Richard Henderson, 2022/07/04
- [PULL 16/23] hw/rtc/ls7a_rtc: Fix timer call back function,
Richard Henderson <=
- [PULL 17/23] hw/rtc/ls7a_rtc: Remove unimplemented device in realized function, Richard Henderson, 2022/07/04
- [PULL 18/23] hw/rtc/ls7a_rtc: Add reset function, Richard Henderson, 2022/07/04
- [PULL 19/23] hw/rtc/ls7a_rtc: Fix rtc enable and disable function, Richard Henderson, 2022/07/04
- [PULL 20/23] hw/rtc/ls7a_rtc: Use tm struct pointer as arguments in toy_time_to_val(), Richard Henderson, 2022/07/04
- [PULL 21/23] hw/rtc/ls7a_rtc: Fix 'calculate' spelling errors, Richard Henderson, 2022/07/04
- [PULL 22/23] target/loongarch: Fix the meaning of ECFG reg's VS field, Richard Henderson, 2022/07/04
- [PULL 23/23] target/loongarch: Add lock when writing timer clear reg, Richard Henderson, 2022/07/04
- Re: [PULL 00/23] loongarch64 patch queue, Richard Henderson, 2022/07/04