]> git.proxmox.com Git - mirror_qemu.git/commitdiff
exec: Remove a type cast which is no longer needed
authorStefan Weil <weil@mail.berlios.de>
Sat, 26 Mar 2011 20:06:56 +0000 (21:06 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Tue, 12 Apr 2011 19:51:50 +0000 (21:51 +0200)
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 <blauwirbel@gmail.com>
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
exec.c

diff --git a/exec.c b/exec.c
index 983c0db3f7dff54ef77f381114389acaacf5ba12..e8f1eeb7502d9a63f9303c28dc42f67253828403 100644 (file)
--- a/exec.c
+++ b/exec.c
@@ -4253,7 +4253,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) */