From: Luke Kenneth Casson Leighton Date: Thu, 26 Mar 2020 11:35:55 +0000 (+0000) Subject: seeing spurious failures on gdb connection X-Git-Tag: div_pipeline~1626 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=41039c99a6f0da5a994e5f769fd26776870d8993;p=soc.git seeing spurious failures on gdb connection --- diff --git a/src/soc/simulator/qemu.py b/src/soc/simulator/qemu.py index 063bed65..9eb103ba 100644 --- 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