Revision 3d97b40b linux-user/qemu.h

b/linux-user/qemu.h
203 203
#define VERIFY_READ 0
204 204
#define VERIFY_WRITE 1
205 205

  
206
#define access_ok(type,addr,size) (1)
206
#define access_ok(type,addr,size) \
207
    (page_check_range((target_ulong)addr,size,(type==VERIFY_READ)?PAGE_READ:PAGE_WRITE)==0)
207 208

  
208 209
/* NOTE get_user and put_user use host addresses.  */
209 210
#define __put_user(x,ptr)\

Also available in: Unified diff