Commit 6b1575b74689c77e7bd9d8aafe63ed5cbd22f72d

Authored by bellard
1 parent 9d9754a3

cpu_get_phys_page_debug fix (Blue Swirl)


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2010 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 1 deletions
target-sparc/translate.c
... ... @@ -2771,7 +2771,8 @@ target_ulong cpu_get_phys_page_debug(CPUState *env, target_ulong addr)
2771 2771 int prot, access_index;
2772 2772  
2773 2773 if (get_physical_address(env, &phys_addr, &prot, &access_index, addr, 2, 0) != 0)
2774   - return -1;
  2774 + if (get_physical_address(env, &phys_addr, &prot, &access_index, addr, 0, 0) != 0)
  2775 + return -1;
2775 2776 return phys_addr;
2776 2777 }
2777 2778 #endif
... ...