]> Git Repo - qemu.git/commitdiff
target/i386: Fix broken build with WHPX enabled
authorPhilippe Mathieu-Daudé <[email protected]>
Fri, 20 Sep 2019 11:33:27 +0000 (13:33 +0200)
committerAlex Bennée <[email protected]>
Thu, 26 Sep 2019 18:00:53 +0000 (19:00 +0100)
The WHPX build is broken since commit 12e9493df92 which removed the
"hw/boards.h" where MachineState is declared:

  $ ./configure \
     --enable-hax --enable-whpx

  $ make x86_64-softmmu/all
  [...]
    CC      x86_64-softmmu/target/i386/whpx-all.o
  target/i386/whpx-all.c: In function 'whpx_accel_init':
  target/i386/whpx-all.c:1378:25: error: dereferencing pointer to
  incomplete type 'MachineState' {aka 'struct MachineState'}
       whpx->mem_quota = ms->ram_size;
                           ^~
  make[1]: *** [rules.mak:69: target/i386/whpx-all.o] Error 1
    CC      x86_64-softmmu/trace/generated-helpers.o
  make[1]: Target 'all' not remade because of errors.
  make: *** [Makefile:471: x86_64-softmmu/all] Error 2

Restore this header, partially reverting commit 12e9493df92.

Fixes: 12e9493df92
Reported-by: Ilias Maratos <[email protected]>
Reviewed-by: Stefan Weil <[email protected]>
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Signed-off-by: Alex Bennée <[email protected]>
Message-Id: <20190920113329[email protected]>

target/i386/whpx-all.c

index 0c15241ae490fc2ab18ce22c0bcf856db6002ff9..def0c284801a1d6791f069aacf66317b2ac86a5d 100644 (file)
@@ -18,6 +18,7 @@
 #include "sysemu/cpus.h"
 #include "sysemu/runstate.h"
 #include "qemu/main-loop.h"
+#include "hw/boards.h"
 #include "qemu/error-report.h"
 #include "qapi/error.h"
 #include "migration/blocker.h"
This page took 0.023976 seconds and 4 git commands to generate.