aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBernhard Beschow <shentey@gmail.com>2024-05-08 19:55:05 +0200
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-05-09 00:07:15 +0200
commit865d95321ffc8d9941e33000b10140550f094556 (patch)
tree903759c2463141aff5a24d611125e571a0759987 /include
parent32d3ee87a17fc91e981a23dba94855bff89f5920 (diff)
hw/i386/x86: Don't leak "pc.bios" memory region
Fix the leaking in x86_bios_rom_init() by adding a "bios" attribute to X86MachineState. Note that it is only used in the -bios case. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Bernhard Beschow <shentey@gmail.com> Message-ID: <20240508175507.22270-5-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/hw/i386/x86.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/hw/i386/x86.h b/include/hw/i386/x86.h
index a07de79167..55c6809ae0 100644
--- a/include/hw/i386/x86.h
+++ b/include/hw/i386/x86.h
@@ -54,6 +54,12 @@ struct X86MachineState {
HotplugHandler *acpi_dev;
/*
+ * Map the whole BIOS just underneath the 4 GiB address boundary. Only used
+ * in the ROM (-bios) case.
+ */
+ MemoryRegion bios;
+
+ /*
* Map the upper 128 KiB of the BIOS just underneath the 1 MiB address
* boundary.
*/