summaryrefslogtreecommitdiffstats
path: root/include/hw/timer/ibex_timer.h
diff options
context:
space:
mode:
authorAlistair Francis2021-08-30 07:35:15 +0200
committerAlistair Francis2021-09-20 23:56:49 +0200
commit57a3a6226529e60ef4eb5e11b577f2e532a72acc (patch)
tree26b5f8a9f08a1ea63b22635e2a0c44e0414293f4 /include/hw/timer/ibex_timer.h
parenthw/intc: sifive_plic: Convert the PLIC to use RISC-V CPU GPIO lines (diff)
downloadqemu-57a3a6226529e60ef4eb5e11b577f2e532a72acc.tar.gz
qemu-57a3a6226529e60ef4eb5e11b577f2e532a72acc.tar.xz
qemu-57a3a6226529e60ef4eb5e11b577f2e532a72acc.zip
hw/intc: ibex_timer: Convert the timer to use RISC-V CPU GPIO lines
Instead of using riscv_cpu_update_mip() let's instead use the new RISC-V CPU GPIO lines to set the timer MIP bits. Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 84d5b1d5783d2e79eee69a2f7ac480cc0c070db3.1630301632.git.alistair.francis@wdc.com
Diffstat (limited to 'include/hw/timer/ibex_timer.h')
-rw-r--r--include/hw/timer/ibex_timer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/timer/ibex_timer.h b/include/hw/timer/ibex_timer.h
index 6a43537003..b6f69b38ee 100644
--- a/include/hw/timer/ibex_timer.h
+++ b/include/hw/timer/ibex_timer.h
@@ -48,5 +48,7 @@ struct IbexTimerState {
uint32_t timebase_freq;
qemu_irq irq;
+
+ qemu_irq m_timer_irq;
};
#endif /* HW_IBEX_TIMER_H */