Skip to content

Commit 608ba43

Browse files
authored
Merge pull request #1285 from aap-sc/aap-sc/sv57_fix
target/riscv: fix SV57 translation for kernel address space
2 parents 48483a8 + 7f901ce commit 608ba43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/target/riscv/riscv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ static const virt2phys_info_t sv57 = {
274274
.pte_ppn_shift = {10, 19, 28, 37, 46},
275275
.pte_ppn_mask = {0x1ff, 0x1ff, 0x1ff, 0x1ff, 0xff},
276276
.pa_ppn_shift = {12, 21, 30, 39, 48},
277-
.pa_ppn_mask = {0x1ff, 0x1ff, 0x1ff, 0x1ff, 0xff},
277+
.pa_ppn_mask = {0x1ff, 0x1ff, 0x1ff, 0x1ff, 0x1ff},
278278
};
279279

280280
static const virt2phys_info_t sv57x4 = {

0 commit comments

Comments
 (0)