aboutsummaryrefslogtreecommitdiff
path: root/hw/i386/x86.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2020-09-15 14:09:01 +0200
committerGerd Hoffmann <kraxel@redhat.com>2020-09-17 14:16:19 +0200
commit9927a6329a4ce832b4b529903b0a1e1f580cbf0f (patch)
treec4739246b3399b10641dea3f2f5ea84348a7d618 /hw/i386/x86.c
parentf6f7e2d88d0b29d8b6e1a12a5f3f9f31faff9846 (diff)
downloadqemu-9927a6329a4ce832b4b529903b0a1e1f580cbf0f.zip
qemu-9927a6329a4ce832b4b529903b0a1e1f580cbf0f.tar.gz
qemu-9927a6329a4ce832b4b529903b0a1e1f580cbf0f.tar.bz2
x86: constify x86_machine_is_*_enabled
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Sergio Lopez <slp@redhat.com> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-id: 20200915120909.20838-14-kraxel@redhat.com
Diffstat (limited to 'hw/i386/x86.c')
-rw-r--r--hw/i386/x86.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/i386/x86.c b/hw/i386/x86.c
index c1954db..e2a5005 100644
--- a/hw/i386/x86.c
+++ b/hw/i386/x86.c
@@ -821,7 +821,7 @@ void x86_bios_rom_init(MemoryRegion *rom_memory, bool isapc_ram_fw)
bios);
}
-bool x86_machine_is_smm_enabled(X86MachineState *x86ms)
+bool x86_machine_is_smm_enabled(const X86MachineState *x86ms)
{
bool smm_available = false;
@@ -863,7 +863,7 @@ static void x86_machine_set_smm(Object *obj, Visitor *v, const char *name,
visit_type_OnOffAuto(v, name, &x86ms->smm, errp);
}
-bool x86_machine_is_acpi_enabled(X86MachineState *x86ms)
+bool x86_machine_is_acpi_enabled(const X86MachineState *x86ms)
{
if (x86ms->acpi == ON_OFF_AUTO_OFF) {
return false;