Fix WriteCsrs test.
authorTim Newsome <tim@sifive.com>
Tue, 13 Dec 2016 19:12:56 +0000 (11:12 -0800)
committerTim Newsome <tim@sifive.com>
Tue, 13 Dec 2016 19:12:56 +0000 (11:12 -0800)
At some point the program changed to use a different register and this
test was never updated. If $x1 pointed somewhere bad, that would result
in an exception.

debug/gdbserver.py

index 000b52c464954307d4b9ce0e1dfd4de6f1668d71..323d32c2924e9b911af0e6b7c3b360fb9ec25f48 100755 (executable)
@@ -591,8 +591,8 @@ class WriteCsrs(RegsTest):
         self.gdb.stepi()
         assertEqual(self.gdb.p("$mscratch"), 123)
 
-        self.gdb.command("p $pc=write_regs")
-        self.gdb.command("p $a0=data")
+        self.gdb.p("$pc=write_regs")
+        self.gdb.p("$x1=data")
         self.gdb.command("b all_done")
         self.gdb.command("c")