diff options
author | Bernhard Beschow <shentey@gmail.com> | 2024-04-30 17:06:39 +0200 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-05-08 19:43:23 +0200 |
commit | 848351840148f8c3b53ddf6210194506547d3ffd (patch) | |
tree | 93ab0a075931844b1607c626d9f9868b9bafdc84 /include/hw/i386/x86.h | |
parent | 014dbdac8798799d081abc9dff3e4876ca54f49e (diff) | |
download | qemu-848351840148f8c3b53ddf6210194506547d3ffd.zip qemu-848351840148f8c3b53ddf6210194506547d3ffd.tar.gz qemu-848351840148f8c3b53ddf6210194506547d3ffd.tar.bz2 |
hw/i386: Have x86_bios_rom_init() take X86MachineState rather than MachineState
The function creates and leaks two MemoryRegion objects regarding the BIOS which
will be moved into X86MachineState in the next steps to avoid the leakage.
Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20240430150643.111976-3-shentey@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'include/hw/i386/x86.h')
-rw-r--r-- | include/hw/i386/x86.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/i386/x86.h b/include/hw/i386/x86.h index 4dc30dc..cb07618 100644 --- a/include/hw/i386/x86.h +++ b/include/hw/i386/x86.h @@ -116,7 +116,7 @@ void x86_cpu_unplug_request_cb(HotplugHandler *hotplug_dev, void x86_cpu_unplug_cb(HotplugHandler *hotplug_dev, DeviceState *dev, Error **errp); -void x86_bios_rom_init(MachineState *ms, const char *default_firmware, +void x86_bios_rom_init(X86MachineState *x86ms, const char *default_firmware, MemoryRegion *rom_memory, bool isapc_ram_fw); void x86_load_linux(X86MachineState *x86ms, |