diff options
author | Atish Patra <atishp@rivosinc.com> | 2022-07-23 02:03:35 -0700 |
---|---|---|
committer | Alistair Francis <alistair.francis@wdc.com> | 2022-07-28 09:08:44 +1000 |
commit | 54f218363052be210e77d2ada8c0c1e51b3ad6cd (patch) | |
tree | aa036d7173afc2f8a85c8002ae250083482078ff /tests/lcitool | |
parent | 44602af8585fd2f331c69e2c071eff39227535ed (diff) | |
download | qemu-54f218363052be210e77d2ada8c0c1e51b3ad6cd.zip qemu-54f218363052be210e77d2ada8c0c1e51b3ad6cd.tar.gz qemu-54f218363052be210e77d2ada8c0c1e51b3ad6cd.tar.bz2 |
hw/intc: sifive_plic: Fix multi-socket plic configuraiton
Since commit 40244040a7ac, multi-socket configuration with plic is
broken as the hartid for second socket is calculated incorrectly.
The hartid stored in addr_config already includes the offset
for the base hartid for that socket. Adding it again would lead
to segfault while creating the plic device for the virt machine.
qdev_connect_gpio_out was also invoked with incorrect number of gpio
lines.
Fixes: 40244040a7ac (hw/intc: sifive_plic: Avoid overflowing the addr_config buffer)
Signed-off-by: Atish Patra <atishp@rivosinc.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20220723090335.671105-1-atishp@rivosinc.com>
[ Changes by AF:
- Change the qdev_connect_gpio_out() numbering
]
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'tests/lcitool')
0 files changed, 0 insertions, 0 deletions