From 41039c99a6f0da5a994e5f769fd26776870d8993 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 26 Mar 2020 11:35:55 +0000 Subject: [PATCH] seeing spurious failures on gdb connection --- src/soc/simulator/qemu.py | 1 + 1 file changed, 1 insertion(+) 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 -- 2.30.2