mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
acpi: filter based on CONFIG_ACPI_X86 rather than TARGET
Copy the mechanism of hw/smbios/smbios-stub.c to implement an ACPI-stub instead, so that -acpitable can be later extended to ARM. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
d525ffabab
commit
9f57061c35
6 changed files with 38 additions and 17 deletions
3
vl.c
3
vl.c
|
@ -65,6 +65,7 @@ int main(int argc, char **argv)
|
|||
#include "hw/bt.h"
|
||||
#include "sysemu/watchdog.h"
|
||||
#include "hw/smbios/smbios.h"
|
||||
#include "hw/acpi/acpi.h"
|
||||
#include "hw/xen/xen.h"
|
||||
#include "hw/qdev.h"
|
||||
#include "hw/loader.h"
|
||||
|
@ -3657,7 +3658,7 @@ int main(int argc, char **argv, char **envp)
|
|||
if (!opts) {
|
||||
exit(1);
|
||||
}
|
||||
do_acpitable_option(opts);
|
||||
acpi_table_add(opts, &error_fatal);
|
||||
break;
|
||||
case QEMU_OPTION_smbios:
|
||||
opts = qemu_opts_parse_noisily(qemu_find_opts("smbios"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue