On Wed, May 23, 2018 at 5:40 AM, Philippe Mathieu-Daudé <f4...@amsat.org> wrote: > On 05/22/2018 09:15 PM, Michael Clark wrote: >> Cc: Palmer Dabbelt <pal...@sifive.com> >> Cc: Sagar Karandikar <sag...@eecs.berkeley.edu> >> Cc: Bastian Koppelmann <kbast...@mail.uni-paderborn.de> >> Cc: Alistair Francis <alistair.fran...@wdc.com> >> Signed-off-by: Michael Clark <m...@sifive.com> > > Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
Reviewed-by: Alistair Francis <alistair.fran...@wdc.com> Alistair > >> --- >> hw/riscv/virt.c | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/hw/riscv/virt.c b/hw/riscv/virt.c >> index ad03113e0f72..321fa6e8122a 100644 >> --- a/hw/riscv/virt.c >> +++ b/hw/riscv/virt.c >> @@ -385,6 +385,8 @@ static void riscv_virt_board_init(MachineState *machine) >> serial_mm_init(system_memory, memmap[VIRT_UART0].base, >> 0, SIFIVE_PLIC(s->plic)->irqs[UART0_IRQ], 399193, >> serial_hd(0), DEVICE_LITTLE_ENDIAN); >> + >> + g_free(plic_hart_config); >> } >> >> static void riscv_virt_board_machine_init(MachineClass *mc) >> >