[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 43/72] target/ppc: Make ppc_ldl_code() declaration public
From: |
Nicholas Piggin |
Subject: |
[PULL 43/72] target/ppc: Make ppc_ldl_code() declaration public |
Date: |
Tue, 11 Mar 2025 22:57:37 +1000 |
From: Philippe Mathieu-Daudé <philmd@linaro.org>
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>
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com>
Message-ID: <20250127102620.39159-4-philmd@linaro.org>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
---
target/ppc/excp_helper.c | 2 +-
target/ppc/internal.h | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/target/ppc/excp_helper.c b/target/ppc/excp_helper.c
index fde9912230..7ed4bbec03 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);
diff --git a/target/ppc/internal.h b/target/ppc/internal.h
index 20fb2ec593..46db6adfcf 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,
--
2.47.1
- [PULL 34/72] ppc/xive2: Check crowd backlog when scanning group backlog, (continued)
- [PULL 34/72] ppc/xive2: Check crowd backlog when scanning group backlog, Nicholas Piggin, 2025/03/11
- [PULL 37/72] hw/ssi/pnv_spi: Replace PnvXferBuffer with Fifo8 structure, Nicholas Piggin, 2025/03/11
- [PULL 35/72] qtest/xive: Change printf to g_test_message, Nicholas Piggin, 2025/03/11
- [PULL 46/72] target/ppc: Ensure powerpc_mcheck_checkstop() is only called under TCG, Nicholas Piggin, 2025/03/11
- [PULL 36/72] qtest/xive: Add test of pool interrupts, Nicholas Piggin, 2025/03/11
- [PULL 42/72] ppc/pnv: Add new PowerPC Special Purpose Registers (RWMR), Nicholas Piggin, 2025/03/11
- [PULL 45/72] target/ppc: Move ppc_ldl_code() to tcg-excp_helper.c, Nicholas Piggin, 2025/03/11
- [PULL 41/72] hw/ppc/spapr: Restrict CONFER hypercall to TCG, Nicholas Piggin, 2025/03/11
- [PULL 44/72] target/ppc: Move TCG specific exception handlers to tcg-excp_helper.c, Nicholas Piggin, 2025/03/11
- [PULL 38/72] hw/ssi/pnv_spi: Use local var seq_index instead of get_seq_index()., Nicholas Piggin, 2025/03/11
- [PULL 43/72] target/ppc: Make ppc_ldl_code() declaration public,
Nicholas Piggin <=
- [PULL 49/72] target/ppc: Restrict exception helpers to TCG, Nicholas Piggin, 2025/03/11
- [PULL 52/72] target/ppc: Make powerpc_excp() prototype public, Nicholas Piggin, 2025/03/11
- [PULL 53/72] target/ppc: Restrict ATTN / SCV / PMINSN helpers to TCG, Nicholas Piggin, 2025/03/11
- [PULL 54/72] hw/ppc/spapr: Convert HPTE() macro as hpte_get_ptr() method, Nicholas Piggin, 2025/03/11
- [PULL 55/72] hw/ppc/spapr: Convert HPTE_VALID() macro as hpte_is_valid() method, Nicholas Piggin, 2025/03/11
- [PULL 56/72] hw/ppc/spapr: Convert HPTE_DIRTY() macro as hpte_is_dirty() method, Nicholas Piggin, 2025/03/11
- [PULL 65/72] target/ppc: Avoid warning message for zero process table entries, Nicholas Piggin, 2025/03/11
- [PULL 63/72] target/ppc: fix timebase register reset state, Nicholas Piggin, 2025/03/11
- [PULL 72/72] docs/system/ppc/amigang.rst: Update for NVRAM emulation, Nicholas Piggin, 2025/03/11
- [PULL 67/72] ppc/amigaone: Simplify replacement dummy_fw, Nicholas Piggin, 2025/03/11