aboutsummaryrefslogtreecommitdiff
path: root/riscv/mmu.h
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2022-03-28 14:56:36 -0700
committerAndrew Waterman <andrew@sifive.com>2022-03-30 01:41:17 -0700
commit1e159e462720f043b0c2ff9c0cd2541fed88f1a9 (patch)
tree56f3251c9fec423e6e3cc9fa7856b8b400837888 /riscv/mmu.h
parent3bbaab01762f0b5bac1fd816370c270ffe28fd6b (diff)
downloadspike-1e159e462720f043b0c2ff9c0cd2541fed88f1a9.zip
spike-1e159e462720f043b0c2ff9c0cd2541fed88f1a9.tar.gz
spike-1e159e462720f043b0c2ff9c0cd2541fed88f1a9.tar.bz2
Implement Sv57 and Sv57x4 translation modes
Diffstat (limited to 'riscv/mmu.h')
-rw-r--r--riscv/mmu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/riscv/mmu.h b/riscv/mmu.h
index 017b483..3b95f28 100644
--- a/riscv/mmu.h
+++ b/riscv/mmu.h
@@ -551,6 +551,7 @@ inline vm_info decode_vm_info(int xlen, bool stage2, reg_t prv, reg_t satp)
case HGATP_MODE_OFF: return {0, 0, 0, 0, 0};
case HGATP_MODE_SV39X4: return {3, 9, 2, 8, (satp & HGATP64_PPN) << PGSHIFT};
case HGATP_MODE_SV48X4: return {4, 9, 2, 8, (satp & HGATP64_PPN) << PGSHIFT};
+ case HGATP_MODE_SV57X4: return {5, 9, 2, 8, (satp & HGATP64_PPN) << PGSHIFT};
default: abort();
}
} else {