projects
/
soc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0450cf
)
print regs in hex
author
Jacob Lifshay
<programmerjake@gmail.com>
Tue, 6 Oct 2020 00:16:29 +0000
(17:16 -0700)
committer
Jacob Lifshay
<programmerjake@gmail.com>
Tue, 6 Oct 2020 00:16:29 +0000
(17:16 -0700)
src/soc/fu/div/test/helper.py
patch
|
blob
|
history
diff --git
a/src/soc/fu/div/test/helper.py
b/src/soc/fu/div/test/helper.py
index 3b57b52933b79298cf16719c5e932e945c0deb4b..f368cf74462762433f79052b4d99bcc13ce26981 100644
(file)
--- a/
src/soc/fu/div/test/helper.py
+++ b/
src/soc/fu/div/test/helper.py
@@
-178,8
+178,7
@@
class DivTestHelper(unittest.TestCase):
except AttributeError:
pass
msg = "%s: %s" % (div_pipe_kind.name, code)
- msg += " %s" % (repr(prog.assembly))
- msg += " %s" % (repr(test.regs))
+ msg += f" {prog.assembly!r} {list(map(hex, test.regs))!r}"
yield from self.check_alu_outputs(alu, pdecode2,
isa_sim, msg,
pia_res)