]> git.proxmox.com Git - qemu.git/blobdiff - arch_init.c
extract/unify the constant 0xfee00000 as APIC_DEFAULT_ADDRESS
[qemu.git] / arch_init.c
index 2ed12faee944f517b4b473552b994c27a0131104..c2cbc71c31cf3be31ed6e0b9480f9cf001507655 100644 (file)
@@ -1103,11 +1103,16 @@ int qemu_uuid_parse(const char *str, uint8_t *uuid)
     return 0;
 }
 
-void do_acpitable_option(const char *optarg)
+void do_acpitable_option(const QemuOpts *opts)
 {
 #ifdef TARGET_I386
-    if (acpi_table_add(optarg) < 0) {
-        fprintf(stderr, "Wrong acpi table provided\n");
+    Error *err = NULL;
+
+    acpi_table_add(opts, &err);
+    if (err) {
+        fprintf(stderr, "Wrong acpi table provided: %s\n",
+                error_get_pretty(err));
+        error_free(err);
         exit(1);
     }
 #endif