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/sifive_u.c | |
parent | 3bf03f08999b9a469a61279a04041bcbfadad6a8 (diff) | |
download | qemu-c9270e10a5e3aa18a55bb5c115ae7838c8c43e41.zip qemu-c9270e10a5e3aa18a55bb5c115ae7838c8c43e41.tar.gz qemu-c9270e10a5e3aa18a55bb5c115ae7838c8c43e41.tar.bz2 |
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/sifive_u.c')
-rw-r--r-- | hw/riscv/sifive_u.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/riscv/sifive_u.c b/hw/riscv/sifive_u.c index 8d2ee9d..a48046c 100644 --- a/hw/riscv/sifive_u.c +++ b/hw/riscv/sifive_u.c @@ -687,7 +687,7 @@ static void sifive_u_soc_realize(DeviceState *dev, Error **errp) /* MMIO */ s->plic = sifive_plic_create(memmap[SIFIVE_U_PLIC].base, - plic_hart_config, + plic_hart_config, 0, SIFIVE_U_PLIC_NUM_SOURCES, SIFIVE_U_PLIC_NUM_PRIORITIES, SIFIVE_U_PLIC_PRIORITY_BASE, |