target-ppc: remove remaining warnings
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 11 Dec 2008 22:42:33 +0000 (22:42 +0000)
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 11 Dec 2008 22:42:33 +0000 (22:42 +0000)
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5991 c046a42c-6fe2-441c-8c8c-71466251a162

target-ppc/cpu.h
target-ppc/exec.h
target-ppc/helper.c
target-ppc/op_helper.c

index 6abd104b24bda0efdf5a4cdb00bd715e91024881..de53675a09bbb2ffbbe37a96afa0c2ea007ee1cf 100644 (file)
@@ -678,13 +678,18 @@ void cpu_ppc_close (CPUPPCState *s);
    is returned if the signal was handled by the virtual CPU.  */
 int cpu_ppc_signal_handler (int host_signum, void *pinfo,
                             void *puc);
-
+int cpu_ppc_handle_mmu_fault (CPUPPCState *env, target_ulong address, int rw,
+                              int mmu_idx, int is_softmmu);
+int get_physical_address (CPUPPCState *env, mmu_ctx_t *ctx, target_ulong vaddr,
+                          int rw, int access_type);
 void do_interrupt (CPUPPCState *env);
 void ppc_hw_interrupt (CPUPPCState *env);
 
-void dump_stack (CPUPPCState *env);
+void cpu_dump_rfi (target_ulong RA, target_ulong msr);
 
 #if !defined(CONFIG_USER_ONLY)
+void ppc6xx_tlb_store (CPUPPCState *env, target_ulong EPN, int way, int is_code,
+                       target_ulong pte0, target_ulong pte1);
 void ppc_store_ibatu (CPUPPCState *env, int nr, target_ulong value);
 void ppc_store_ibatl (CPUPPCState *env, int nr, target_ulong value);
 void ppc_store_dbatu (CPUPPCState *env, int nr, target_ulong value);
index 96f75218ba4893adfb0cda02675ed4c62892074c..e9c7e65fc0530f54ef579fb4d3231da46ffa47ac 100644 (file)
@@ -38,12 +38,6 @@ register struct CPUPPCState *env asm(AREG0);
 #include "softmmu_exec.h"
 #endif /* !defined(CONFIG_USER_ONLY) */
 
-int get_physical_address (CPUState *env, mmu_ctx_t *ctx, target_ulong vaddr,
-                          int rw, int access_type);
-
-void ppc6xx_tlb_store (CPUState *env, target_ulong EPN, int way, int is_code,
-                       target_ulong pte0, target_ulong pte1);
-
 static always_inline void env_to_regs (void)
 {
 }
@@ -52,9 +46,6 @@ static always_inline void regs_to_env (void)
 {
 }
 
-int cpu_ppc_handle_mmu_fault (CPUState *env, target_ulong address, int rw,
-                              int mmu_idx, int is_softmmu);
-
 static always_inline int cpu_halted (CPUState *env)
 {
     if (!env->halted)
index bb13195a72f20e48a75df9eed90ca3d01ae552ce..538d9f34c41a4281ea0524d9972bdec9635f441e 100644 (file)
@@ -1205,7 +1205,7 @@ static always_inline void ppc4xx_tlb_invalidate_virt (CPUState *env,
 #endif
 }
 
-int mmu40x_get_physical_address (CPUState *env, mmu_ctx_t *ctx,
+static int mmu40x_get_physical_address (CPUState *env, mmu_ctx_t *ctx,
                                  target_ulong address, int rw, int access_type)
 {
     ppcemb_tlb_t *tlb;
@@ -1287,9 +1287,9 @@ void store_40x_sler (CPUPPCState *env, uint32_t val)
     env->spr[SPR_405_SLER] = val;
 }
 
-int mmubooke_get_physical_address (CPUState *env, mmu_ctx_t *ctx,
-                                   target_ulong address, int rw,
-                                   int access_type)
+static int mmubooke_get_physical_address (CPUState *env, mmu_ctx_t *ctx,
+                                          target_ulong address, int rw,
+                                          int access_type)
 {
     ppcemb_tlb_t *tlb;
     target_phys_addr_t raddr;
index e43865f77cd462840ceaa308efd4a8c55031e2d8..0a084bf801e3427d95f780894b44593e5ae614f6 100644 (file)
@@ -1669,8 +1669,6 @@ void helper_store_msr (target_ulong val)
     }
 }
 
-void cpu_dump_rfi (target_ulong RA, target_ulong msr);
-
 static always_inline void do_rfi (target_ulong nip, target_ulong msr,
                                     target_ulong msrm, int keep_msrh)
 {