提交 d69d1fa0 编写于 作者: B bellard

const fix


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@928 c046a42c-6fe2-441c-8c8c-71466251a162
上级 05efe46e
......@@ -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();\
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册