Revision 53a5960a cpu-exec.c

b/cpu-exec.c
913 913
                pc, address, is_write, *(unsigned long *)old_set);
914 914
#endif
915 915
    /* XXX: locking issue */
916
    if (is_write && page_unprotect(address, pc, puc)) {
916
    if (is_write && page_unprotect(h2g(address), pc, puc)) {
917 917
        return 1;
918 918
    }
919 919

  
......
964 964
           pc, address, is_write, *(unsigned long *)old_set);
965 965
#endif
966 966
    /* XXX: locking issue */
967
    if (is_write && page_unprotect(address, pc, puc)) {
967
    if (is_write && page_unprotect(h2g(address), pc, puc)) {
968 968
        return 1;
969 969
    }
970 970
    /* see if it is an MMU fault */
......
1000 1000
           pc, address, is_write, *(unsigned long *)old_set);
1001 1001
#endif
1002 1002
    /* XXX: locking issue */
1003
    if (is_write && page_unprotect(address, pc, puc)) {
1003
    if (is_write && page_unprotect(h2g(address), pc, puc)) {
1004 1004
        return 1;
1005 1005
    }
1006 1006
    /* see if it is an MMU fault */
......
1036 1036
           pc, address, is_write, *(unsigned long *)old_set);
1037 1037
#endif
1038 1038
    /* XXX: locking issue */
1039
    if (is_write && page_unprotect(address, pc, puc)) {
1039
    if (is_write && page_unprotect(h2g(address), pc, puc)) {
1040 1040
        return 1;
1041 1041
    }
1042 1042

  
......
1086 1086
           pc, address, is_write, *(unsigned long *)old_set);
1087 1087
#endif
1088 1088
    /* XXX: locking issue */
1089
    if (is_write && page_unprotect(address, pc, puc)) {
1089
    if (is_write && page_unprotect(h2g(address), pc, puc)) {
1090 1090
        return 1;
1091 1091
    }
1092 1092

  

Also available in: Unified diff