@@ -433,7 +433,7 @@ class InstantHaltTest(GdbTest):
433433 def test (self ):
434434 """Assert that reset is really resetting what it should."""
435435 self .gdb .command ("monitor reset halt" )
436- self .gdb .command ("flushregs " )
436+ self .gdb .command ("maintenance flush register-cache " )
437437 threads = self .gdb .threads ()
438438 pcs = []
439439 for t in threads :
@@ -451,7 +451,7 @@ def test(self):
451451 """Change the PC right as we come out of reset."""
452452 # 0x13 is nop
453453 self .gdb .command ("monitor reset halt" )
454- self .gdb .command ("flushregs " )
454+ self .gdb .command ("maintenance flush register-cache " )
455455 self .gdb .command (f"p *((int*) 0x{ self .hart .ram :x} )=0x13" )
456456 self .gdb .command (f"p *((int*) 0x{ self .hart .ram + 4 :x} )=0x13" )
457457 self .gdb .command (f"p *((int*) 0x{ self .hart .ram + 8 :x} )=0x13" )
@@ -1743,10 +1743,10 @@ def test(self):
17431743 value = self .gdb .p (regname )
17441744 assertNotEqual (value , 0 )
17451745 self .gdb .p (f"{ regname } =0" )
1746- self .gdb .command ("flushregs " )
1746+ self .gdb .command ("maintenance flush register-cache " )
17471747 assertEqual (self .gdb .p (regname ), 0 )
17481748 self .gdb .p (f"{ regname } =0x{ value :x} " )
1749- self .gdb .command ("flushregs " )
1749+ self .gdb .command ("maintenance flush register-cache " )
17501750 assertEqual (self .gdb .p (regname ), value )
17511751
17521752 assertEqual (self .gdb .p ("$a0" ), 0 )
0 commit comments