]> git.proxmox.com Git - mirror_qemu.git/commit - hw/intc/riscv_aclint.c
hw/intc: Move mtimer/mtimecmp to aclint
authorAtish Patra <atishp@rivosinc.com>
Wed, 24 Aug 2022 22:13:55 +0000 (15:13 -0700)
committerAlistair Francis <alistair.francis@wdc.com>
Wed, 7 Sep 2022 07:19:10 +0000 (09:19 +0200)
commit7cbcc538f4b3040db1e39a6547efa501a8a44907
treeec5d8fafc780421b1060979e4ef45221f0b98b91
parentdc9acc9ce4add37bc5b4437ae9117c318b4f09d4
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>
hw/intc/riscv_aclint.c
hw/timer/ibex_timer.c
include/hw/intc/riscv_aclint.h
include/hw/timer/ibex_timer.h
target/riscv/cpu.h
target/riscv/machine.c