Commit a764a566beb5783de0617a8cb1105283c50b616d
1 parent
6c5c1e20
Fix Sparc mmu bug seen with NetBSD, based on patch by Cliff Wright
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4785 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
8 additions
and
8 deletions
target-sparc/helper.c
| ... | ... | @@ -87,14 +87,14 @@ int cpu_sparc_handle_mmu_fault(CPUState *env1, target_ulong address, int rw, |
| 87 | 87 | * Sparc V8 Reference MMU (SRMMU) |
| 88 | 88 | */ |
| 89 | 89 | static const int access_table[8][8] = { |
| 90 | - { 0, 0, 0, 0, 2, 0, 3, 3 }, | |
| 91 | - { 0, 0, 0, 0, 2, 0, 0, 0 }, | |
| 92 | - { 2, 2, 0, 0, 0, 2, 3, 3 }, | |
| 93 | - { 2, 2, 0, 0, 0, 2, 0, 0 }, | |
| 94 | - { 2, 0, 2, 0, 2, 2, 3, 3 }, | |
| 95 | - { 2, 0, 2, 0, 2, 0, 2, 0 }, | |
| 96 | - { 2, 2, 2, 0, 2, 2, 3, 3 }, | |
| 97 | - { 2, 2, 2, 0, 2, 2, 2, 0 } | |
| 90 | + { 0, 0, 0, 0, 8, 0, 12, 12 }, | |
| 91 | + { 0, 0, 0, 0, 8, 0, 0, 0 }, | |
| 92 | + { 8, 8, 0, 0, 0, 8, 12, 12 }, | |
| 93 | + { 8, 8, 0, 0, 0, 8, 0, 0 }, | |
| 94 | + { 8, 0, 8, 0, 8, 8, 12, 12 }, | |
| 95 | + { 8, 0, 8, 0, 8, 0, 8, 0 }, | |
| 96 | + { 8, 8, 8, 0, 8, 8, 12, 12 }, | |
| 97 | + { 8, 8, 8, 0, 8, 8, 8, 0 } | |
| 98 | 98 | }; |
| 99 | 99 | |
| 100 | 100 | static const int perm_table[2][8] = { | ... | ... |