aboutsummaryrefslogtreecommitdiff
path: root/linux-user
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-06-19 16:57:17 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-06-19 16:57:17 +0000
commitd69d1fa01ad5e64821ea2a6dd6bb018f6d570111 (patch)
treeb8cd1de0a37baa35a181213ae38f8ba1136a0325 /linux-user
parent05efe46eaa337ce7680a22c5e034686957dc3032 (diff)
downloadqemu-d69d1fa01ad5e64821ea2a6dd6bb018f6d570111.zip
qemu-d69d1fa01ad5e64821ea2a6dd6bb018f6d570111.tar.gz
qemu-d69d1fa01ad5e64821ea2a6dd6bb018f6d570111.tar.bz2
const fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@928 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/qemu.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/linux-user/qemu.h b/linux-user/qemu.h
index be95ff9..2331c41 100644
--- a/linux-user/qemu.h
+++ b/linux-user/qemu.h
@@ -155,16 +155,16 @@ int target_msync(unsigned long start, unsigned long len, int flags);
int size = sizeof(*ptr);\
switch(size) {\
case 1:\
- x = (typeof(*ptr))ldub(ptr);\
+ x = (typeof(*ptr))ldub((void *)ptr);\
break;\
case 2:\
- x = (typeof(*ptr))lduw(ptr);\
+ x = (typeof(*ptr))lduw((void *)ptr);\
break;\
case 4:\
- x = (typeof(*ptr))ldl(ptr);\
+ x = (typeof(*ptr))ldl((void *)ptr);\
break;\
case 8:\
- x = (typeof(*ptr))ldq(ptr);\
+ x = (typeof(*ptr))ldq((void *)ptr);\
break;\
default:\
abort();\