[4785] Fix Sparc mmu bug seen with NetBSD, based on patch by Cliff Wright
Revision: 4785
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4785 Author: blueswir1 Date: 2008-06-24 19:08:28 +0000 (Tue, 24 Jun 2008)
Log Message:
-----------
Fix Sparc mmu bug seen with NetBSD, based on patch by Cliff Wright
Modified Paths:
--------------
trunk/target-sparc/helper.c
Modified: trunk/target-sparc/helper.c
===================================================================
target-sparc/helper.c +8 -8
@@ -87,14 +87,14 @@* Sparc V8 Reference MMU (SRMMU) */ static const int access_table[8 ][8 ] = { - {0 ,0 ,0 ,0 ,2 ,0 ,3 ,3 }, - {0 ,0 ,0 ,0 ,2 ,0 ,0 ,0 }, - {2 ,2 ,0 ,0 ,0 ,2 ,3 ,3 }, - {2 ,2 ,0 ,0 ,0 ,2 ,0 ,0 }, - {2 ,0 ,2 ,0 ,2 ,2 ,3 ,3 }, - {2 ,0 ,2 ,0 ,2 ,0 ,2 ,0 }, - {2 ,2 ,2 ,0 ,2 ,2 ,3 ,3 }, - {2 ,2 ,2 ,0 ,2 ,2 ,2 ,0 } + {0 ,0 ,0 ,0 ,8 ,0 ,12 ,12 }, + {0 ,0 ,0 ,0 ,8 ,0 ,0 ,0 }, + {8 ,8 ,0 ,0 ,0 ,8 ,12 ,12 }, + {8 ,8 ,0 ,0 ,0 ,8 ,0 ,0 }, + {8 ,0 ,8 ,0 ,8 ,8 ,12 ,12 }, + {8 ,0 ,8 ,0 ,8 ,0 ,8 ,0 }, + {8 ,8 ,8 ,0 ,8 ,8 ,12 ,12 }, + {8 ,8 ,8 ,0 ,8 ,8 ,8 ,0 } };static const int perm_table[2 ][8 ] = {