[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 03/15] target/ppc: Make ppc_ldl_code() declaration public
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 03/15] target/ppc: Make ppc_ldl_code() declaration public |
Date: |
Thu, 23 Jan 2025 22:55:57 +0100 |
We are going to move code calling ppc_ldl_code() out of
excp_helper.c where it is defined. Expose its declaration
for few commits, until eventually making it static again
once everything is moved.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
target/ppc/internal.h | 2 ++
target/ppc/excp_helper.c | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/target/ppc/internal.h b/target/ppc/internal.h
index 20fb2ec593c..46db6adfcf6 100644
--- a/target/ppc/internal.h
+++ b/target/ppc/internal.h
@@ -268,6 +268,8 @@ static inline void pte_invalidate(target_ulong *pte0)
#define PTE_PTEM_MASK 0x7FFFFFBF
#define PTE_CHECK_MASK (TARGET_PAGE_MASK | 0x7B)
+uint32_t ppc_ldl_code(CPUArchState *env, target_ulong addr);
+
#ifdef CONFIG_USER_ONLY
void ppc_cpu_record_sigsegv(CPUState *cs, vaddr addr,
MMUAccessType access_type,
diff --git a/target/ppc/excp_helper.c b/target/ppc/excp_helper.c
index fde9912230e..7ed4bbec035 100644
--- a/target/ppc/excp_helper.c
+++ b/target/ppc/excp_helper.c
@@ -144,7 +144,7 @@ static inline bool insn_need_byteswap(CPUArchState *env)
return !!(env->msr & ((target_ulong)1 << MSR_LE));
}
-static uint32_t ppc_ldl_code(CPUArchState *env, target_ulong addr)
+uint32_t ppc_ldl_code(CPUArchState *env, target_ulong addr)
{
uint32_t insn = cpu_ldl_code(env, addr);
--
2.47.1
- [PATCH 00/15] target/ppc: Move TCG code from excp_helper.c to tcg-excp_helper.c, Philippe Mathieu-Daudé, 2025/01/23
- [RFC PATCH 01/15] hw/ppc/spapr: Restrict CONFER hypercall to TCG, Philippe Mathieu-Daudé, 2025/01/23
- [PATCH 02/15] hw/ppc/spapr: Restrict part of PAGE_INIT hypercall to TCG, Philippe Mathieu-Daudé, 2025/01/23
- [PATCH 03/15] target/ppc: Make ppc_ldl_code() declaration public,
Philippe Mathieu-Daudé <=
- [PATCH 04/15] target/ppc: Move TCG specific exception handlers to tcg-excp_helper.c, Philippe Mathieu-Daudé, 2025/01/23
- [PATCH 05/15] target/ppc: Move ppc_ldl_code() to tcg-excp_helper.c, Philippe Mathieu-Daudé, 2025/01/23
- [PATCH 06/15] target/ppc: Ensure powerpc_checkstop() is only called under TCG, Philippe Mathieu-Daudé, 2025/01/23
- [PATCH 07/15] target/ppc: Restrict powerpc_checkstop() to TCG, Philippe Mathieu-Daudé, 2025/01/23
- [PATCH 08/15] target/ppc: Remove raise_exception_ra(), Philippe Mathieu-Daudé, 2025/01/23
- [PATCH 09/15] target/ppc: Restrict exception helpers to TCG, Philippe Mathieu-Daudé, 2025/01/23
- [PATCH 10/15] target/ppc: Restrict ppc_tcg_hv_emu() to TCG, Philippe Mathieu-Daudé, 2025/01/23
- [PATCH 11/15] target/ppc: Restrict various common helpers to TCG, Philippe Mathieu-Daudé, 2025/01/23
- [PATCH 12/15] target/ppc: Fix style in excp_helper.c, Philippe Mathieu-Daudé, 2025/01/23