Commit d69d1fa01ad5e64821ea2a6dd6bb018f6d570111
1 parent
05efe46e
const fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@928 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
4 additions
and
4 deletions
linux-user/qemu.h
| ... | ... | @@ -155,16 +155,16 @@ int target_msync(unsigned long start, unsigned long len, int flags); |
| 155 | 155 | int size = sizeof(*ptr);\ |
| 156 | 156 | switch(size) {\ |
| 157 | 157 | case 1:\ |
| 158 | - x = (typeof(*ptr))ldub(ptr);\ | |
| 158 | + x = (typeof(*ptr))ldub((void *)ptr);\ | |
| 159 | 159 | break;\ |
| 160 | 160 | case 2:\ |
| 161 | - x = (typeof(*ptr))lduw(ptr);\ | |
| 161 | + x = (typeof(*ptr))lduw((void *)ptr);\ | |
| 162 | 162 | break;\ |
| 163 | 163 | case 4:\ |
| 164 | - x = (typeof(*ptr))ldl(ptr);\ | |
| 164 | + x = (typeof(*ptr))ldl((void *)ptr);\ | |
| 165 | 165 | break;\ |
| 166 | 166 | case 8:\ |
| 167 | - x = (typeof(*ptr))ldq(ptr);\ | |
| 167 | + x = (typeof(*ptr))ldq((void *)ptr);\ | |
| 168 | 168 | break;\ |
| 169 | 169 | default:\ |
| 170 | 170 | abort();\ | ... | ... |