seeing spurious failures on gdb connection
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 26 Mar 2020 11:35:55 +0000 (11:35 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 26 Mar 2020 11:35:55 +0000 (11:35 +0000)
src/soc/simulator/qemu.py

index 063bed6566b20a5e760bd0da226f4da4814cf062..9eb103bae227e00a2a1d2ec4f43d7e39e4f44960 100644 (file)
@@ -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