Re: [PATCH] hw/intc/riscv_aplic: Zero init APLIC internal state

2023-04-16 Thread Alistair Francis
On Thu, Apr 13, 2023 at 11:35 PM Ivan Klokov wrote: > > 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-

Re: [PATCH] hw/intc/riscv_aplic: Zero init APLIC internal state

2023-04-16 Thread Alistair Francis
On Thu, Apr 13, 2023 at 11:35 PM Ivan Klokov wrote: > > 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-

Re: [PATCH] hw/intc/riscv_aplic: Zero init APLIC internal state

2023-04-13 Thread Anup Patel
On Thu, Apr 13, 2023 at 7:04 PM Ivan Klokov wrote: > > 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-b

[PATCH] hw/intc/riscv_aplic: Zero init APLIC internal state

2023-04-13 Thread Ivan Klokov
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 --- hw/intc/riscv_aplic.c | 2 +- 1 file changed