Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LVoxn-0000RD-4h for qemu-devel@nongnu.org; Sat, 07 Feb 2009 10:19:23 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LVoxm-0000R1-3m for qemu-devel@nongnu.org; Sat, 07 Feb 2009 10:19:22 -0500 Received: from [199.232.76.173] (port=48920 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LVoxl-0000Qy-Rn for qemu-devel@nongnu.org; Sat, 07 Feb 2009 10:19:21 -0500 Received: from savannah.gnu.org ([199.232.41.3]:43439 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LVoxl-0003I4-I5 for qemu-devel@nongnu.org; Sat, 07 Feb 2009 10:19:21 -0500 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1LVoxl-0008Sp-3v for qemu-devel@nongnu.org; Sat, 07 Feb 2009 15:19:21 +0000 Received: from aurel32 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1LVoxk-0008Sk-SQ for qemu-devel@nongnu.org; Sat, 07 Feb 2009 15:19:21 +0000 MIME-Version: 1.0 Errors-To: aurel32 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Aurelien Jarno Message-Id: Date: Sat, 07 Feb 2009 15:19:20 +0000 Subject: [Qemu-devel] [6550] Fix cpu_arm_handle_mmu_fault warning Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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. Signed-off-by: Nathan Froyd Signed-off-by: Aurelien Jarno Modified Paths: -------------- trunk/target-arm/cpu.h trunk/target-arm/exec.h Modified: trunk/target-arm/cpu.h =================================================================== --- trunk/target-arm/cpu.h 2009-02-07 15:18:47 UTC (rev 6549) +++ trunk/target-arm/cpu.h 2009-02-07 15:19:20 UTC (rev 6550) @@ -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 =================================================================== --- trunk/target-arm/exec.h 2009-02-07 15:18:47 UTC (rev 6549) +++ trunk/target-arm/exec.h 2009-02-07 15:19:20 UTC (rev 6550) @@ -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;