diff options
author | Anup Patel <anup.patel@wdc.com> | 2020-05-15 10:25:33 +0530 |
---|---|---|
committer | Alistair Francis <alistair.francis@wdc.com> | 2020-08-25 09:11:35 -0700 |
commit | c9270e10a5e3aa18a55bb5c115ae7838c8c43e41 (patch) | |
tree | f4f160c040b140980e7dcadb02565c3b31b16c8b /hw/riscv/virt.c | |
parent | 3bf03f08999b9a469a61279a04041bcbfadad6a8 (diff) |
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>
Diffstat (limited to 'hw/riscv/virt.c')
-rw-r--r-- | hw/riscv/virt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/riscv/virt.c b/hw/riscv/virt.c index 69cfca8501..8a66f43ee0 100644 --- a/hw/riscv/virt.c +++ b/hw/riscv/virt.c @@ -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, |