[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH] hw/ppc/spapr: Use the proper include that defines 'ta
From: |
Philippe Mathieu-Daudé |
Subject: |
[Qemu-ppc] [PATCH] hw/ppc/spapr: Use the proper include that defines 'target_ulong' |
Date: |
Mon, 19 Aug 2019 16:49:26 +0200 |
As its name implies, the Option/Architecture Vector is not target
(per cpu) specific but arch-related.
Use the proper arch-related header, allowing to use this header
with non cpu-specific objects.
This fixes this error when using this header with $common-obj:
include/hw/ppc/spapr_ovec.h:76:44: error: unknown type name ‘target_ulong’;
did you mean ‘gulong’?
SpaprOptionVector *spapr_ovec_parse_vector(target_ulong table_addr, int
vector);
^~~~~~~~~~~~
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
include/hw/ppc/spapr_ovec.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/hw/ppc/spapr_ovec.h b/include/hw/ppc/spapr_ovec.h
index 7891e9caac..b6b8811998 100644
--- a/include/hw/ppc/spapr_ovec.h
+++ b/include/hw/ppc/spapr_ovec.h
@@ -37,7 +37,7 @@
#ifndef SPAPR_OVEC_H
#define SPAPR_OVEC_H
-#include "cpu.h"
+#include "exec/cpu-defs.h"
typedef struct SpaprOptionVector SpaprOptionVector;
--
2.20.1
- [Qemu-ppc] [PATCH] hw/ppc/spapr: Use the proper include that defines 'target_ulong',
Philippe Mathieu-Daudé <=