From 910f39c9b46a883d58f0b77ae847c535834a48da Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Thu, 14 Sep 2017 16:26:51 -0700 Subject: [PATCH] misa is stored in the hart now, not the target --- debug/testlib.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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<