summaryrefslogtreecommitdiffstats
path: root/hw/core
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2020-09-08 14:34:33 +0200
committerEduardo Habkost2020-10-06 17:09:35 +0200
commit4a795202ec7deba1b2c251af85192cc8231f9370 (patch)
tree9762f9e3f38b4b5eead34f8614128eed2211e647 /hw/core
parenthw/core/qdev-properties: Extract system-mode specific properties (diff)
downloadqemu-4a795202ec7deba1b2c251af85192cc8231f9370.tar.gz
qemu-4a795202ec7deba1b2c251af85192cc8231f9370.tar.xz
qemu-4a795202ec7deba1b2c251af85192cc8231f9370.zip
hw/core/cpu: Add missing 'exec/cpu-common.h' include
cpu_common_reset() uses tcg_flush_softmmu_tlb() which is declared in "exec/cpu-common.h". Add the missing header to avoid when refactoring other headers: hw/core/cpu.c: In function ‘cpu_common_reset’: hw/core/cpu.c:273:9: error: implicit declaration of function ‘tcg_flush_softmmu_tlb’ [-Werror=implicit-function-declaration] 273 | tcg_flush_softmmu_tlb(cpu); | ^~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20200908123433.105706-1-philmd@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw/core')
-rw-r--r--hw/core/cpu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/core/cpu.c b/hw/core/cpu.c
index c55c09f734..b06eb38ecc 100644
--- a/hw/core/cpu.c
+++ b/hw/core/cpu.c
@@ -26,6 +26,7 @@
#include "qemu/log.h"
#include "qemu/main-loop.h"
#include "exec/log.h"
+#include "exec/cpu-common.h"
#include "qemu/error-report.h"
#include "qemu/qemu-print.h"
#include "sysemu/tcg.h"