Skip to content

Commit

Permalink
Merge pull request #490 from riscv-software-src/flushregs
Browse files Browse the repository at this point in the history
debug: flushregs -> maintenance flush register-cache
  • Loading branch information
timsifive authored Jul 13, 2023
2 parents 5e62d38 + feddb19 commit 4d2b318
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions debug/gdbserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ class InstantHaltTest(GdbTest):
def test(self):
"""Assert that reset is really resetting what it should."""
self.gdb.command("monitor reset halt")
self.gdb.command("flushregs")
self.gdb.command("maintenance flush register-cache")
threads = self.gdb.threads()
pcs = []
for t in threads:
Expand All @@ -451,7 +451,7 @@ def test(self):
"""Change the PC right as we come out of reset."""
# 0x13 is nop
self.gdb.command("monitor reset halt")
self.gdb.command("flushregs")
self.gdb.command("maintenance flush register-cache")
self.gdb.command(f"p *((int*) 0x{self.hart.ram:x})=0x13")
self.gdb.command(f"p *((int*) 0x{self.hart.ram + 4:x})=0x13")
self.gdb.command(f"p *((int*) 0x{self.hart.ram + 8:x})=0x13")
Expand Down Expand Up @@ -1743,10 +1743,10 @@ def test(self):
value = self.gdb.p(regname)
assertNotEqual(value, 0)
self.gdb.p(f"{regname}=0")
self.gdb.command("flushregs")
self.gdb.command("maintenance flush register-cache")
assertEqual(self.gdb.p(regname), 0)
self.gdb.p(f"{regname}=0x{value:x}")
self.gdb.command("flushregs")
self.gdb.command("maintenance flush register-cache")
assertEqual(self.gdb.p(regname), value)

assertEqual(self.gdb.p("$a0"), 0)
Expand Down

0 comments on commit 4d2b318

Please sign in to comment.