qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 2/3] exec: Remove a type cast which is no longer


From: Aurelien Jarno
Subject: Re: [Qemu-devel] [PATCH 2/3] exec: Remove a type cast which is no longer needed
Date: Sun, 10 Apr 2011 00:37:23 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

On Sat, Mar 26, 2011 at 09:06:56PM +0100, Stefan Weil wrote:
> All other type casts in calls of cpu_physical_memory_write are
> used by hardware emulations and will be fixed by separate patches.
> 
> Cc: Blue Swirl <address@hidden>
> Signed-off-by: Stefan Weil <address@hidden>
> ---
>  exec.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/exec.c b/exec.c
> index 964ce31..d7afe30 100644
> --- a/exec.c
> +++ b/exec.c
> @@ -4249,7 +4249,7 @@ void stw_phys(target_phys_addr_t addr, uint32_t val)
>  void stq_phys(target_phys_addr_t addr, uint64_t val)
>  {
>      val = tswap64(val);
> -    cpu_physical_memory_write(addr, (const uint8_t *)&val, 8);
> +    cpu_physical_memory_write(addr, &val, 8);
>  }
>  
>  /* virtual memory access for debug (includes writing to ROM) */
> -- 
> 1.7.2.5
> 

Reviewed-by: Aurelien Jarno <address@hidden>

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



reply via email to

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