]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/i386/x86: Extract x86_isa_bios_init() from x86_bios_rom_init()
authorBernhard Beschow <shentey@gmail.com>
Wed, 8 May 2024 17:55:06 +0000 (19:55 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 8 May 2024 22:07:19 +0000 (00:07 +0200)
commit5c5ffec12c30d2017cbdee6798f54d8fad3f9656
tree7d54a7398a2b4f57b52e104a9290ef67d802f21c
parent865d95321ffc8d9941e33000b10140550f094556
hw/i386/x86: Extract x86_isa_bios_init() from x86_bios_rom_init()

The function is inspired by pc_isa_bios_init() and should eventually replace it.
Using x86_isa_bios_init() rather than pc_isa_bios_init() fixes pflash commands
to work in the isa-bios region.

While at it convert the magic number 0x100000 (== 1MiB) to increase readability.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Message-ID: <20240508175507.22270-6-shentey@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/i386/x86.c
include/hw/i386/x86.h