qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 03/15] target/ppc: Make ppc_ldl_code() declaration public


From: Harsh Prateek Bora
Subject: Re: [PATCH v2 03/15] target/ppc: Make ppc_ldl_code() declaration public
Date: Tue, 28 Jan 2025 11:17:31 +0530
User-agent: Mozilla Thunderbird



On 1/27/25 15:56, Philippe Mathieu-Daudé wrote:
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>

---
  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);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]