From 1e159e462720f043b0c2ff9c0cd2541fed88f1a9 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Mon, 28 Mar 2022 14:56:36 -0700 Subject: Implement Sv57 and Sv57x4 translation modes --- riscv/mmu.h | 1 + 1 file changed, 1 insertion(+) (limited to 'riscv/mmu.h') 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 { -- cgit v1.1