OSDN Git Service

hw/riscv: Allow creating multiple instances of CLINT
authorAnup Patel <anup.patel@wdc.com>
Thu, 14 May 2020 10:21:31 +0000 (15:51 +0530)
committerAlistair Francis <alistair.francis@wdc.com>
Tue, 25 Aug 2020 16:11:35 +0000 (09:11 -0700)
commit3bf03f08999b9a469a61279a04041bcbfadad6a8
treee43634385ee0e9b1e634c22388d529857daa75d1
parent7774e403f2ac58b3e87bfe8d2f77676501ba893e
hw/riscv: Allow creating multiple instances of CLINT

We extend CLINT emulation to allow multiple instances of CLINT in
a QEMU RISC-V machine. To achieve this, we remove first HART id
zero assumption from CLINT emulation.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Palmer Dabbelt <palmerdabbelt@google.com>
Message-Id: <20200616032229.766089-2-anup.patel@wdc.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
hw/riscv/sifive_clint.c
hw/riscv/sifive_e.c
hw/riscv/sifive_u.c
hw/riscv/spike.c
hw/riscv/virt.c
include/hw/riscv/sifive_clint.h