Signed-off-by: Olivia Yin <hong-hua....@freescale.com> --- hw/loader.c | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/hw/loader.c b/hw/loader.c index d075ed3..2dde6ba 100644 --- a/hw/loader.c +++ b/hw/loader.c @@ -752,11 +752,8 @@ static void rom_reset(void *unused) continue; } cpu_physical_memory_write_rom(rom->addr, rom->data, rom->romsize); - if (rom->isrom) { - /* rom needs to be written only once */ - g_free(rom->data); - rom->data = NULL; - } + g_free(rom->data); + rom->data = NULL; } } -- 1.7.1