From 71d2b725e1f38162872b198992a61fa460978d77 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sat, 26 Mar 2011 21:06:56 +0100 Subject: [PATCH] exec: Remove a type cast which is no longer needed 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 Signed-off-by: Stefan Weil Signed-off-by: Aurelien Jarno --- exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec.c b/exec.c index 983c0db3f..e8f1eeb75 100644 --- 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) */ -- 2.39.5