mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 10:34:58 -06:00
const fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@928 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
05efe46eaa
commit
d69d1fa01a
1 changed files with 4 additions and 4 deletions
|
@ -155,16 +155,16 @@ int target_msync(unsigned long start, unsigned long len, int flags);
|
||||||
int size = sizeof(*ptr);\
|
int size = sizeof(*ptr);\
|
||||||
switch(size) {\
|
switch(size) {\
|
||||||
case 1:\
|
case 1:\
|
||||||
x = (typeof(*ptr))ldub(ptr);\
|
x = (typeof(*ptr))ldub((void *)ptr);\
|
||||||
break;\
|
break;\
|
||||||
case 2:\
|
case 2:\
|
||||||
x = (typeof(*ptr))lduw(ptr);\
|
x = (typeof(*ptr))lduw((void *)ptr);\
|
||||||
break;\
|
break;\
|
||||||
case 4:\
|
case 4:\
|
||||||
x = (typeof(*ptr))ldl(ptr);\
|
x = (typeof(*ptr))ldl((void *)ptr);\
|
||||||
break;\
|
break;\
|
||||||
case 8:\
|
case 8:\
|
||||||
x = (typeof(*ptr))ldq(ptr);\
|
x = (typeof(*ptr))ldq((void *)ptr);\
|
||||||
break;\
|
break;\
|
||||||
default:\
|
default:\
|
||||||
abort();\
|
abort();\
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue