[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 30/52] tcg: Remove NO_CPU_IO_DEFS
|
From: |
Richard Henderson |
|
Subject: |
[PATCH v2 30/52] tcg: Remove NO_CPU_IO_DEFS |
|
Date: |
Tue, 23 May 2023 06:53:00 -0700 |
>From this remove, it's no longer clear what this is attempting
to protect. The last time a use of this define was added to
the source tree, as opposed to merely moved around, was 2008.
There have been many cleanups since that time and this is
no longer required for the build to succeed.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/ppc/cpu.h | 2 --
target/sparc/cpu.h | 2 --
accel/tcg/translate-all.c | 1 -
tcg/tcg.c | 6 ------
4 files changed, 11 deletions(-)
diff --git a/target/ppc/cpu.h b/target/ppc/cpu.h
index 0f9f2e1a0c..10c4ffa148 100644
--- a/target/ppc/cpu.h
+++ b/target/ppc/cpu.h
@@ -1394,7 +1394,6 @@ void ppc_store_msr(CPUPPCState *env, target_ulong value);
void ppc_cpu_list(void);
/* Time-base and decrementer management */
-#ifndef NO_CPU_IO_DEFS
uint64_t cpu_ppc_load_tbl(CPUPPCState *env);
uint32_t cpu_ppc_load_tbu(CPUPPCState *env);
void cpu_ppc_store_tbu(CPUPPCState *env, uint32_t value);
@@ -1435,7 +1434,6 @@ int ppcemb_tlb_check(CPUPPCState *env, ppcemb_tlb_t *tlb,
hwaddr booke206_tlb_to_page_size(CPUPPCState *env,
ppcmas_tlb_t *tlb);
#endif
-#endif
void ppc_store_fpscr(CPUPPCState *env, target_ulong val);
void helper_hfscr_facility_check(CPUPPCState *env, uint32_t bit,
diff --git a/target/sparc/cpu.h b/target/sparc/cpu.h
index fb98843dad..3d090e8278 100644
--- a/target/sparc/cpu.h
+++ b/target/sparc/cpu.h
@@ -581,7 +581,6 @@ G_NORETURN void sparc_cpu_do_unaligned_access(CPUState
*cpu, vaddr addr,
uintptr_t retaddr);
G_NORETURN void cpu_raise_exception_ra(CPUSPARCState *, int, uintptr_t);
-#ifndef NO_CPU_IO_DEFS
/* cpu_init.c */
void cpu_sparc_set_id(CPUSPARCState *env, unsigned int cpu);
void sparc_cpu_list(void);
@@ -637,7 +636,6 @@ static inline int tlb_compare_context(const SparcTLBEntry
*tlb,
return compare_masked(context, tlb->tag, MMU_CONTEXT_MASK);
}
-#endif
#endif
/* cpu-exec.c */
diff --git a/accel/tcg/translate-all.c b/accel/tcg/translate-all.c
index 181f276b18..347768b979 100644
--- a/accel/tcg/translate-all.c
+++ b/accel/tcg/translate-all.c
@@ -19,7 +19,6 @@
#include "qemu/osdep.h"
-#define NO_CPU_IO_DEFS
#include "trace.h"
#include "disas/disas.h"
#include "exec/exec-all.h"
diff --git a/tcg/tcg.c b/tcg/tcg.c
index 3888a22ba1..a976e851d5 100644
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -37,12 +37,6 @@
#include "qemu/cacheflush.h"
#include "qemu/cacheinfo.h"
#include "qemu/timer.h"
-
-/* Note: the long term plan is to reduce the dependencies on the QEMU
- CPU definitions. Currently they are used for qemu_ld/st
- instructions */
-#define NO_CPU_IO_DEFS
-
#include "exec/exec-all.h"
#include "exec/tlb-common.h"
#include "tcg/tcg-op-common.h"
--
2.34.1
- [PATCH v2 17/52] target/arm: Include helper-gen.h in translator.h, (continued)
- [PATCH v2 17/52] target/arm: Include helper-gen.h in translator.h, Richard Henderson, 2023/05/23
- [PATCH v2 18/52] target/hexagon: Include helper-gen.h where needed, Richard Henderson, 2023/05/23
- [PATCH v2 09/52] *: Add missing includes of qemu/error-report.h, Richard Henderson, 2023/05/23
- [PATCH v2 22/52] tcg: Move temp_idx and tcgv_i32_temp debug out of line, Richard Henderson, 2023/05/23
- [PATCH v2 23/52] tcg: Split tcg_gen_callN, Richard Henderson, 2023/05/23
- [PATCH v2 21/52] tcg: Pass TCGHelperInfo to tcg_gen_callN, Richard Henderson, 2023/05/23
- [PATCH v2 16/52] tcg: Split tcg/tcg-op-common.h from tcg/tcg-op.h, Richard Henderson, 2023/05/23
- [PATCH v2 25/52] tcg: Split helper-proto.h, Richard Henderson, 2023/05/23
- [PATCH v2 07/52] tcg: Add tlb_fast_offset to TCGContext, Richard Henderson, 2023/05/23
- [PATCH v2 26/52] tcg: Add insn_start_words to TCGContext, Richard Henderson, 2023/05/23
- [PATCH v2 30/52] tcg: Remove NO_CPU_IO_DEFS,
Richard Henderson <=
- [PATCH v2 28/52] tcg: Move TLB_FLAGS_MASK check out of get_alignment_bits, Richard Henderson, 2023/05/23
- [PATCH v2 29/52] tcg: Split tcg/tcg-op-gvec.h, Richard Henderson, 2023/05/23
- [PATCH v2 33/52] tcg: Remove DEBUG_DISAS, Richard Henderson, 2023/05/23
- [PATCH v2 32/52] exec-all: Widen TranslationBlock pc and cs_base to 64-bits, Richard Henderson, 2023/05/23
- [PATCH v2 24/52] tcg: Split helper-gen.h, Richard Henderson, 2023/05/23
- [PATCH v2 36/52] include/exec: Remove CODE_GEN_AVG_BLOCK_SIZE, Richard Henderson, 2023/05/23
- [PATCH v2 31/52] exec-all: Widen tb_page_addr_t for user-only, Richard Henderson, 2023/05/23
- [PATCH v2 37/52] accel/tcg: Move most of gen-icount.h into translator.c, Richard Henderson, 2023/05/23