projects
/
soc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
797f7ed
)
seeing spurious failures on gdb connection
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Thu, 26 Mar 2020 11:35:55 +0000
(11:35 +0000)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Thu, 26 Mar 2020 11:35:55 +0000
(11:35 +0000)
src/soc/simulator/qemu.py
patch
|
blob
|
history
diff --git
a/src/soc/simulator/qemu.py
b/src/soc/simulator/qemu.py
index 063bed6566b20a5e760bd0da226f4da4814cf062..9eb103bae227e00a2a1d2ec4f43d7e39e4f44960 100644
(file)
--- a/
src/soc/simulator/qemu.py
+++ b/
src/soc/simulator/qemu.py
@@
-33,6
+33,7
@@
class QemuController:
def get_register(self, num):
res = self.gdb.write('-data-list-register-values x {}'.format(num))
+ assert 'register-values' in res[0]['payload']
val = int(res[0]['payload']['register-values'][0]['value'], 0)
return val