Clear area changed during shadow enable.
authorKevin O'Connor <kevin@koconnor.net>
Wed, 12 Mar 2008 01:24:53 +0000 (21:24 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Wed, 12 Mar 2008 01:24:53 +0000 (21:24 -0400)
Clearing the area makes analyzing memory dumps a little easier.

src/rombios32.c

index 68bc8c7..88848fd 100644 (file)
@@ -348,6 +348,9 @@ static void bios_shadow_init(PCIDevice *d)
         copy_bios(d, v);
     }
 
+    // Clear the area just copied.
+    memcpy((void *)BIOS_TMP_STORAGE, 0, 0x10000);
+
     i440_pcidev = *d;
 }