[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 2/8] hw/ppc/spapr: Include missing 'sysemu/tcg.h' header
From: |
Nicholas Piggin |
Subject: |
[PULL 2/8] hw/ppc/spapr: Include missing 'sysemu/tcg.h' header |
Date: |
Sun, 31 Mar 2024 17:33:39 +1000 |
From: Philippe Mathieu-Daudé <philmd@linaro.org>
"sysemu/tcg.h" declares tcg_enabled(), and is implicitly included.
Include it explicitly to avoid the following error when refactoring
headers:
hw/ppc/spapr.c:2612:9: error: call to undeclared function 'tcg_enabled'; ISO
C99 and later do not support implicit function declarations
[-Wimplicit-function-declaration]
if (tcg_enabled()) {
^
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
---
hw/ppc/spapr.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
index c417f9dd52..e9bc97fee0 100644
--- a/hw/ppc/spapr.c
+++ b/hw/ppc/spapr.c
@@ -35,6 +35,7 @@
#include "sysemu/sysemu.h"
#include "sysemu/hostmem.h"
#include "sysemu/numa.h"
+#include "sysemu/tcg.h"
#include "sysemu/qtest.h"
#include "sysemu/reset.h"
#include "sysemu/runstate.h"
--
2.43.0
- [PULL 0/8] ppc-for-9.0-3 queue, Nicholas Piggin, 2024/03/31
- [PULL 1/8] spapr: nested: use bitwise NOT operator for flags check, Nicholas Piggin, 2024/03/31
- [PULL 2/8] hw/ppc/spapr: Include missing 'sysemu/tcg.h' header,
Nicholas Piggin <=
- [PULL 3/8] target/ppc/mmu-radix64: Use correct string format in walk_tree(), Nicholas Piggin, 2024/03/31
- [PULL 4/8] target/ppc: Restore [H]DEXCR to 64-bits, Nicholas Piggin, 2024/03/31
- [PULL 5/8] target/ppc: Fix GDB register indexing on secondary CPUs, Nicholas Piggin, 2024/03/31
- [PULL 6/8] target/ppc: Do not clear MSR[ME] on MCE interrupts to supervisor, Nicholas Piggin, 2024/03/31
- [PULL 7/8] tests/avocado: Fix ppc_hv_tests.py xorriso dependency guard, Nicholas Piggin, 2024/03/31
- [PULL 8/8] tests/avocado: ppc_hv_tests.py set alpine time before setup-alpine, Nicholas Piggin, 2024/03/31