mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
hw/riscv: Allow creating multiple instances of PLIC
We extend PLIC emulation to allow multiple instances of PLIC in a QEMU RISC-V machine. To achieve this, we remove first HART id zero assumption from PLIC emulation. Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Palmer Dabbelt <palmerdabbelt@google.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-Id: <20200616032229.766089-3-anup.patel@wdc.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
3bf03f0899
commit
c9270e10a5
5 changed files with 23 additions and 19 deletions
|
@ -560,7 +560,7 @@ static void virt_machine_init(MachineState *machine)
|
|||
|
||||
/* MMIO */
|
||||
s->plic = sifive_plic_create(memmap[VIRT_PLIC].base,
|
||||
plic_hart_config,
|
||||
plic_hart_config, 0,
|
||||
VIRT_PLIC_NUM_SOURCES,
|
||||
VIRT_PLIC_NUM_PRIORITIES,
|
||||
VIRT_PLIC_PRIORITY_BASE,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue