Skip to content

Commit 85c40ff

Browse files
committed
[ot] python/qemu: ot.lc_ctrl: rename 'socdbg' as 'soc_dbg'
to match new HW Signed-off-by: Emmanuel Blot <[email protected]>
1 parent bb76bc6 commit 85c40ff

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

python/qemu/ot/lc_ctrl/const.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def __init__(self):
2121
self._log = getLogger('lc.const')
2222
self._states: dict[str, tuple[str, str]] = {}
2323
self._tokens: dict[str, str] = {}
24-
self._diversifiers: dict [str, str] = {}
24+
self._diversifiers: dict[str, str] = {}
2525

2626
def load_sv(self, svp: TextIO) -> None:
2727
"""Decode LC information from a System Verilog file.
@@ -50,14 +50,14 @@ def load_sv(self, svp: TextIO) -> None:
5050
int(trans[otrans[0]]),
5151
int(trans[otrans[1]]))
5252
self._tokens.update(lcext.get_tokens(False, False))
53-
socdbg = lcext.get_configuration('SOCDBG')
54-
if socdbg:
55-
for raw in {s for s in socdbg if int(s, 16) == 0}:
56-
del socdbg[raw]
57-
osoc = list(socdbg)
58-
self._states['socdbg'] = osoc[0], osoc[-1]
53+
soc_dbg = lcext.get_configuration('SOC_DBG')
54+
if soc_dbg:
55+
for raw in {s for s in soc_dbg if int(s, 16) == 0}:
56+
del soc_dbg[raw]
57+
osoc = list(soc_dbg)
58+
self._states['soc_dbg'] = osoc[0], osoc[-1]
5959
self._log.info("Socdbg first: '%s', last '%s'",
60-
socdbg[osoc[0]], socdbg[osoc[-1]])
60+
soc_dbg[osoc[0]], soc_dbg[osoc[-1]])
6161
ownership = lcext.get_configuration('OWNERSHIP')
6262
if ownership:
6363
for raw in {s for s in ownership if int(s, 16) == 0}:

python/qemu/ot/otp/lifecycle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def load(self, svp: TextIO):
9292
mkind, conv = {'lcst': ('LC_STATE', str),
9393
'lccnt': ('LC_TRANSITION_CNT', int),
9494
'ownershipst': ('OWNERSHIP', str),
95-
'socdbgst': ('SOCDBG', str)}[kind]
95+
'socdbgst': ('SOC_DBG', str)}[kind]
9696
self._tables[mkind] = {}
9797
for ref, seq in seqs.items():
9898
seq = ''.join((f'{x:04x}'for x in map(codes.get, seq)))

0 commit comments

Comments
 (0)