Ivan Klokov 2e6dba15cd 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>
2023-05-05 10:49:50 +10:00
..
2023-02-08 07:28:05 +01:00
2023-03-20 12:43:50 +01:00
2023-03-20 12:43:50 +01:00
2023-03-20 12:43:50 +01:00
2023-03-10 14:31:37 +00:00
2023-04-21 04:25:52 -04:00
2023-03-03 17:11:22 +00:00
2023-02-08 07:28:05 +01:00
2023-03-20 12:43:50 +01:00
2022-10-27 11:34:31 +01:00
2023-04-21 04:25:52 -04:00
2023-04-20 10:21:14 +01:00