aboutsummaryrefslogtreecommitdiff
path: root/hw/misc
diff options
context:
space:
mode:
authorIvan Klokov <ivan.klokov@syntacore.com>2023-04-13 16:34:32 +0300
committerAlistair Francis <alistair.francis@wdc.com>2023-05-05 10:49:50 +1000
commit2e6dba15cd8d3901df6f2e5ebe4db84349100f63 (patch)
tree2af4684223136a1c1d8c97d6ec5319402e842f55 /hw/misc
parent38303e8a2cfca62e9073014138a5e10f711459ee (diff)
downloadqemu-2e6dba15cd8d3901df6f2e5ebe4db84349100f63.zip
qemu-2e6dba15cd8d3901df6f2e5ebe4db84349100f63.tar.gz
qemu-2e6dba15cd8d3901df6f2e5ebe4db84349100f63.tar.bz2
hw/intc/riscv_aplic: Zero init APLIC internal state
Since g_new is used to initialize the RISCVAPLICState->state structure, in some case we get behavior that is not as expected. This patch changes this to g_new0, which allows to initialize the APLIC in the correct state. Signed-off-by: Ivan Klokov <ivan.klokov@syntacore.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Anup Patel <anup@brainfault.org> Message-Id: <20230413133432.53771-1-ivan.klokov@syntacore.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'hw/misc')
0 files changed, 0 insertions, 0 deletions