qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Fix cpu_arm_handle_mmu_fault warning
@ 2009-01-27  1:56 Nathan Froyd
  2009-02-07 15:20 ` Aurelien Jarno
  0 siblings, 1 reply; 2+ messages in thread
From: Nathan Froyd @ 2009-01-27  1:56 UTC (permalink / raw)
  To: qemu-devel

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 <froydnj@codesourcery.com>
---
 target-arm/cpu.h  |    2 ++
 target-arm/exec.h |    3 ---
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/target-arm/cpu.h b/target-arm/cpu.h
index 54c2c2e..cab80cd 100644
--- a/target-arm/cpu.h
+++ b/target-arm/cpu.h
@@ -217,6 +217,8 @@ uint32_t do_arm_semihosting(CPUARMState *env);
    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);
diff --git a/target-arm/exec.h b/target-arm/exec.h
index b70e0cb..3e4083a 100644
--- a/target-arm/exec.h
+++ b/target-arm/exec.h
@@ -37,9 +37,6 @@ static inline void regs_to_env(void)
 {
 }
 
-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;
-- 
1.6.0.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] Fix cpu_arm_handle_mmu_fault warning
  2009-01-27  1:56 [Qemu-devel] [PATCH] Fix cpu_arm_handle_mmu_fault warning Nathan Froyd
@ 2009-02-07 15:20 ` Aurelien Jarno
  0 siblings, 0 replies; 2+ messages in thread
From: Aurelien Jarno @ 2009-02-07 15:20 UTC (permalink / raw)
  To: Nathan Froyd; +Cc: qemu-devel

On Mon, Jan 26, 2009 at 05:56:11PM -0800, Nathan Froyd wrote:
> 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.
> 
> ---
>  target-arm/cpu.h  |    2 ++
>  target-arm/exec.h |    3 ---
>  2 files changed, 2 insertions(+), 3 deletions(-)

Thanks, applied.

> diff --git a/target-arm/cpu.h b/target-arm/cpu.h
> index 54c2c2e..cab80cd 100644
> --- a/target-arm/cpu.h
> +++ b/target-arm/cpu.h
> @@ -217,6 +217,8 @@ uint32_t do_arm_semihosting(CPUARMState *env);
>     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);
> diff --git a/target-arm/exec.h b/target-arm/exec.h
> index b70e0cb..3e4083a 100644
> --- a/target-arm/exec.h
> +++ b/target-arm/exec.h
> @@ -37,9 +37,6 @@ static inline void regs_to_env(void)
>  {
>  }
>  
> -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;
> -- 
> 1.6.0.5
> 
> 
> 
> 

-- 
Aurelien Jarno	                        GPG: 1024D/F1BCDB73
aurelien@aurel32.net                 http://www.aurel32.net

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-02-07 15:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-27  1:56 [Qemu-devel] [PATCH] Fix cpu_arm_handle_mmu_fault warning Nathan Froyd
2009-02-07 15:20 ` Aurelien Jarno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).