x86: cleanup unused compat_apic_id_mode
commite6895f04c83e898873fa04c6ed87b094542d1a6d
authorIgor Mammedov <imammedo@redhat.com>
Mon, 28 Feb 2022 13:16:34 +0000 (28 08:16 -0500)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 6 Mar 2022 10:08:23 +0000 (6 05:08 -0500)
tree692ec7159f8deb254101779af40af4f71c7945de
parent8d1b247f3748ac4078524130c6d7ae42b6140aaf
x86: cleanup unused compat_apic_id_mode

commit
  f862ddbb1a4 (hw/i386: Remove the deprecated pc-1.x machine types)
removed the last user of broken APIC ID compat knob,
but compat_apic_id_mode itself was forgotten.
Clean it up and simplify x86_cpu_apic_id_from_index()

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20220228131634.3389805-1-imammedo@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/x86.c
include/hw/i386/x86.h