]> www.infradead.org Git - users/dwmw2/qemu.git/commit
hw/i386/pc: Avoid one use of the current_machine global
authorBernhard Beschow <shentey@gmail.com>
Sun, 3 Mar 2024 18:53:30 +0000 (19:53 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 12 Mar 2024 21:56:55 +0000 (17:56 -0400)
commit6605d09791df7387c3e82c9554731a752789987e
tree989da953ee47bc0009a902afb1e967298a467ba2
parent6cd2b093e771ee606b4e065f615d9b2fafd76d22
hw/i386/pc: Avoid one use of the current_machine global

The RTC can be accessed through the X86 machine instance, so rather than passing
the RTC it's possible to pass the machine state instead. This avoids
pc_boot_set() from having to access the current_machine global.

Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Message-Id: <20240303185332.1408-3-shentey@gmail.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/i386/pc.c