From: Tim Newsome Date: Thu, 14 Sep 2017 23:26:51 +0000 (-0700) Subject: misa is stored in the hart now, not the target X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=910f39c9b46a883d58f0b77ae847c535834a48da;p=riscv-tests.git misa is stored in the hart now, not the target --- diff --git a/debug/testlib.py b/debug/testlib.py index f4b85c6..3eeace9 100644 --- a/debug/testlib.py +++ b/debug/testlib.py @@ -700,21 +700,21 @@ class GdbSingleHartTest(GdbTest): class ExamineTarget(GdbTest): def test(self): - self.target.misa = self.gdb.p("$misa") + self.hart.misa = self.gdb.p("$misa") txt = "RV" - if (self.target.misa >> 30) == 1: + if (self.hart.misa >> 30) == 1: txt += "32" - elif (self.target.misa >> 62) == 2: + elif (self.hart.misa >> 62) == 2: txt += "64" - elif (self.target.misa >> 126) == 3: + elif (self.hart.misa >> 126) == 3: txt += "128" else: raise TestFailed("Couldn't determine XLEN from $misa (0x%x)" % - self.target.misa) + self.hart.misa) for i in range(26): - if self.target.misa & (1<