Skip to content

Commit

Permalink
Disable mmu after test translate
Browse files Browse the repository at this point in the history
Signed-off-by: liangzhen <[email protected]>
  • Loading branch information
lz-bro committed Jan 23, 2024
1 parent bd0a19c commit 4a72ca9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions debug/gdbserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -1679,6 +1679,10 @@ def test_translation(self):
assertEqual(0xdeadbeef, self.gdb.p("virtual[0]"))
assertEqual(0x55667788, self.gdb.p("virtual[1]"))

# disable mmu
self.gdb.p("$mstatus=$mstatus & ~0x20000")
self.gdb.p("$satp=0")

SATP_MODE_OFF = 0
SATP_MODE_SV32 = 1
SATP_MODE_SV39 = 8
Expand Down

0 comments on commit 4a72ca9

Please sign in to comment.