diff options
| author | Atish Patra <atishp@rivosinc.com> | 2022-08-24 15:13:55 -0700 |
|---|---|---|
| committer | Alistair Francis <alistair.francis@wdc.com> | 2022-09-07 09:19:10 +0200 |
| commit | 7cbcc538f4b3040db1e39a6547efa501a8a44907 (patch) | |
| tree | ec5d8fafc780421b1060979e4ef45221f0b98b91 /include/hw/timer/ibex_timer.h | |
| parent | dc9acc9ce4add37bc5b4437ae9117c318b4f09d4 (diff) | |
| download | focaccia-qemu-7cbcc538f4b3040db1e39a6547efa501a8a44907.tar.gz focaccia-qemu-7cbcc538f4b3040db1e39a6547efa501a8a44907.zip | |
hw/intc: Move mtimer/mtimecmp to aclint
Historically, The mtime/mtimecmp has been part of the CPU because they are per hart entities. However, they actually belong to aclint which is a MMIO device. Move them to the ACLINT device. This also emulates the real hardware more closely. Reviewed-by: Anup Patel <anup@brainfault.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Andrew Jones <ajones@ventanamicro.com> Signed-off-by: Atish Patra <atishp@rivosinc.com> Message-Id: <20220824221357.41070-2-atishp@rivosinc.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'include/hw/timer/ibex_timer.h')
| -rw-r--r-- | include/hw/timer/ibex_timer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/timer/ibex_timer.h b/include/hw/timer/ibex_timer.h index 1a0a28d5fa..41f5c82a92 100644 --- a/include/hw/timer/ibex_timer.h +++ b/include/hw/timer/ibex_timer.h @@ -33,6 +33,8 @@ OBJECT_DECLARE_SIMPLE_TYPE(IbexTimerState, IBEX_TIMER) struct IbexTimerState { /* <private> */ SysBusDevice parent_obj; + uint64_t mtimecmp; + QEMUTimer *mtimer; /* Internal timer for M-mode interrupt */ /* <public> */ MemoryRegion mmio; |