diff --git a/linux-user/qemu.h b/linux-user/qemu.h index be95ff91833729b5e79a8cf990466191f505f107..2331c419d86b8f68acfde96c1dec18f8f9dbaace 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();\