Skip to content

Commit c0a2b6b

Browse files
authored
Merge pull request syntacore#8 from syntacore/aap-sc/sv57_fixup
fix translation of kernel addresses in sv57 mode
2 parents 49f3640 + c747964 commit c0a2b6b

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
@@ -272,7 +272,7 @@ static const virt2phys_info_t sv57 = {
272272
.pte_ppn_shift = {10, 19, 28, 37, 46},
273273
.pte_ppn_mask = {0x1ff, 0x1ff, 0x1ff, 0x1ff, 0xff},
274274
.pa_ppn_shift = {12, 21, 30, 39, 48},
275-
.pa_ppn_mask = {0x1ff, 0x1ff, 0x1ff, 0x1ff, 0xff},
275+
.pa_ppn_mask = {0x1ff, 0x1ff, 0x1ff, 0x1ff, 0x1ff},
276276
};
277277

278278
static const virt2phys_info_t sv57x4 = {

0 commit comments

Comments
 (0)