Skip to contentSkip to conversation

[6550] Fix cpu_arm_handle_mmu_fault warning

Qemu-devel Aurelien Jarno 1 participant 1 message Feb 7, 2009

lore
Share & tools
lore
#0 lore raw

Revision: 6550

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6550
Author:   aurel32
Date:     2009-02-07 15:19:20 +0000 (Sat, 07 Feb 2009)

Log Message:
-----------
Fix cpu_arm_handle_mmu_fault warning

This patch fixes:

/scratch/froydnj/qemu.git/target-arm/helper.c:451: warning: no previous prototype for 'cpu_arm_handle_mmu_fault'

by moving the declaration of the function to cpu.h from exec.h. cpu.h seems to be the place most other ports declare the corresponding function.

Modified Paths:
--------------
trunk/target-arm/cpu.h
trunk/target-arm/exec.h

Modified: trunk/target-arm/cpu.h
===================================================================

target-arm/cpu.h +2 -0
@@ -217,6 +217,8 @@
    is returned if the signal was handled by the virtual CPU.  */
 int cpu_arm_signal_handler(int host_signum, void *pinfo,
                            void *puc);
+int cpu_arm_handle_mmu_fault (CPUARMState *env, target_ulong address, int rw,
+                              int mmu_idx, int is_softmuu);
 
 void cpu_lock(void);
 void cpu_unlock(void);

Modified: trunk/target-arm/exec.h
===================================================================

target-arm/exec.h +0 -3
@@ -37,9 +37,6 @@
 {
 }
 
-int cpu_arm_handle_mmu_fault (CPUState *env, target_ulong address, int rw,
-                              int mmu_idx, int is_softmmu);
-
 static inline int cpu_halted(CPUState *env) {
     if (!env->halted)
         return 0;