[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 09/13] target: Use forward declared type instead of structure typ
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 09/13] target: Use forward declared type instead of structure type |
Date: |
Tue, 8 Feb 2022 16:22:39 +0100 |
The CPU state is forward declared.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
target/mips/internal.h | 14 +++++++-------
target/xtensa/cpu.h | 2 +-
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/target/mips/internal.h b/target/mips/internal.h
index f705d6bfa6..ac6e03e2f2 100644
--- a/target/mips/internal.h
+++ b/target/mips/internal.h
@@ -134,14 +134,14 @@ struct r4k_tlb_t {
struct CPUMIPSTLBContext {
uint32_t nb_tlb;
uint32_t tlb_in_use;
- int (*map_address)(struct CPUMIPSState *env, hwaddr *physical, int *prot,
+ int (*map_address)(CPUMIPSState *env, hwaddr *physical, int *prot,
target_ulong address, MMUAccessType access_type);
- void (*helper_tlbwi)(struct CPUMIPSState *env);
- void (*helper_tlbwr)(struct CPUMIPSState *env);
- void (*helper_tlbp)(struct CPUMIPSState *env);
- void (*helper_tlbr)(struct CPUMIPSState *env);
- void (*helper_tlbinv)(struct CPUMIPSState *env);
- void (*helper_tlbinvf)(struct CPUMIPSState *env);
+ void (*helper_tlbwi)(CPUMIPSState *env);
+ void (*helper_tlbwr)(CPUMIPSState *env);
+ void (*helper_tlbp)(CPUMIPSState *env);
+ void (*helper_tlbr)(CPUMIPSState *env);
+ void (*helper_tlbinv)(CPUMIPSState *env);
+ void (*helper_tlbinvf)(CPUMIPSState *env);
union {
struct {
r4k_tlb_t tlb[MIPS_TLB_MAX];
diff --git a/target/xtensa/cpu.h b/target/xtensa/cpu.h
index 02143f2f77..f2165b17e2 100644
--- a/target/xtensa/cpu.h
+++ b/target/xtensa/cpu.h
@@ -344,7 +344,7 @@ typedef struct XtensaGdbRegmap {
} XtensaGdbRegmap;
typedef struct XtensaCcompareTimer {
- struct CPUXtensaState *env;
+ CPUXtensaState *env;
QEMUTimer *timer;
} XtensaCcompareTimer;
--
2.34.1
- [PATCH 04/13] target/i386/cpu: Ensure accelerators set CPU addressble physical bits, (continued)
- [PATCH 04/13] target/i386/cpu: Ensure accelerators set CPU addressble physical bits, Philippe Mathieu-Daudé, 2022/02/08
- [PATCH 06/13] cpu: Add missing 'exec/exec-all.h' and ''exec/exec-all.h'' headers, Philippe Mathieu-Daudé, 2022/02/08
- [PATCH 05/13] target/i386/tcg/sysemu: Include missing 'exec/exec-all.h' header, Philippe Mathieu-Daudé, 2022/02/08
- [PATCH 07/13] cpu: Move common code to cpu-common, Philippe Mathieu-Daudé, 2022/02/08
- [PATCH 08/13] target: Include missing 'cpu.h', Philippe Mathieu-Daudé, 2022/02/08
- [PATCH 09/13] target: Use forward declared type instead of structure type,
Philippe Mathieu-Daudé <=
- [PATCH 10/13] target: Use CPUArchState as interface to target-specific CPU state, Philippe Mathieu-Daudé, 2022/02/08
- [PATCH 11/13] exec/cpu_ldst: Restrict TCG-specific code, Philippe Mathieu-Daudé, 2022/02/08
- [PATCH 12/13] exec/cpu-all: Restrict cpu_copy() to user emulation, Philippe Mathieu-Daudé, 2022/02/08
- [PATCH 13/13] exec: Move translation declarations to 'translate-all.h', Philippe Mathieu-Daudé, 2022/02/08