projects
/
riscv-tests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
28265b6
)
misa is stored in the hart now, not the target
author
Tim Newsome
<tim@sifive.com>
Thu, 14 Sep 2017 23:26:51 +0000
(16:26 -0700)
committer
Tim Newsome
<tim@sifive.com>
Thu, 14 Sep 2017 23:26:51 +0000
(16:26 -0700)
debug/testlib.py
patch
|
blob
|
history
diff --git
a/debug/testlib.py
b/debug/testlib.py
index f4b85c6715f053f0d9f826a25b93679e2f9571bf..3eeace91ff326600f51f2a77d59327cd95b39b01 100644
(file)
--- a/
debug/testlib.py
+++ b/
debug/testlib.py
@@
-700,21
+700,21
@@
class GdbSingleHartTest(GdbTest):
class ExamineTarget(GdbTest):
def test(self):
class ExamineTarget(GdbTest):
def test(self):
- self.
targe
t.misa = self.gdb.p("$misa")
+ self.
har
t.misa = self.gdb.p("$misa")
txt = "RV"
txt = "RV"
- if (self.
targe
t.misa >> 30) == 1:
+ if (self.
har
t.misa >> 30) == 1:
txt += "32"
txt += "32"
- elif (self.
targe
t.misa >> 62) == 2:
+ elif (self.
har
t.misa >> 62) == 2:
txt += "64"
txt += "64"
- elif (self.
targe
t.misa >> 126) == 3:
+ elif (self.
har
t.misa >> 126) == 3:
txt += "128"
else:
raise TestFailed("Couldn't determine XLEN from $misa (0x%x)" %
txt += "128"
else:
raise TestFailed("Couldn't determine XLEN from $misa (0x%x)" %
- self.
targe
t.misa)
+ self.
har
t.misa)
for i in range(26):
for i in range(26):
- if self.
targe
t.misa & (1<<i):
+ if self.
har
t.misa & (1<<i):
txt += chr(i + ord('A'))
print txt,
txt += chr(i + ord('A'))
print txt,