diff --git a/python/qemu/jtag/bitbang.py b/python/qemu/jtag/bitbang.py index 922346dc515d..5526b4a369ed 100644 --- a/python/qemu/jtag/bitbang.py +++ b/python/qemu/jtag/bitbang.py @@ -98,6 +98,8 @@ def write_tms(self, modesel: BitSequence) -> None: if self._last is not None: self._tdi = self._last self._last = None + else: + self._tdi = False if self._link_log: self._log.debug('write TMS [%d] %s', len(modesel), modesel) tck = self._tck