@@ -19,7 +19,12 @@
#ifndef EXEC_TLB_COMMON_H
#define EXEC_TLB_COMMON_H 1
-#define CPU_TLB_ENTRY_BITS 5
+typedef enum MMUAccessType {
+ MMU_DATA_LOAD = 0,
+ MMU_DATA_STORE = 1,
+ MMU_INST_FETCH = 2
+#define MMU_ACCESS_COUNT 3
+} MMUAccessType;
/* Minimalized TLB entry for use by TCG fast path. */
typedef union CPUTLBEntry {
@@ -25,6 +25,7 @@
#include "exec/cpu-common.h"
#include "exec/hwaddr.h"
#include "exec/memattrs.h"
+#include "exec/tlb-common.h"
#include "qapi/qapi-types-run-state.h"
#include "qemu/bitmap.h"
#include "qemu/rcu_queue.h"
@@ -80,13 +81,6 @@ DECLARE_CLASS_CHECKERS(CPUClass, CPU,
typedef struct ArchCPU CpuInstanceType; \
OBJECT_DECLARE_TYPE(ArchCPU, CpuClassType, CPU_MODULE_OBJ_NAME);
-typedef enum MMUAccessType {
- MMU_DATA_LOAD = 0,
- MMU_DATA_STORE = 1,
- MMU_INST_FETCH = 2
-#define MMU_ACCESS_COUNT 3
-} MMUAccessType;
-
typedef struct CPUWatchpoint CPUWatchpoint;
/* see tcg-cpu-ops.h */
This commit sets up and avoids circular inclusion in following commits. CPUTLB and friends will be moved from cpu-defs.h to tlb-common.h and depends on MMU_ACCESS_COUNT defined in hw/core/cpu.h, and hw/core/cpu.h will in turn need to include tlb-common.h once the CPUTLB field has been moved to CPUState. Signed-off-by: Anton Johansson <anjo@rev.ng> --- include/exec/tlb-common.h | 7 ++++++- include/hw/core/cpu.h | 8 +------- 2 files changed, 7 insertions(+), 8 deletions(-)