From: Jacob Lifshay Date: Sat, 17 Jun 2023 00:40:01 +0000 (-0700) Subject: sv_analysis: raise error instead of outputting TODO X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e00438894f78f629e8d47eac661a91be7118826e;p=openpower-isa.git sv_analysis: raise error instead of outputting TODO --- diff --git a/src/openpower/sv/sv_analysis.py b/src/openpower/sv/sv_analysis.py index 17239ec9..595a6cc8 100644 --- a/src/openpower/sv/sv_analysis.py +++ b/src/openpower/sv/sv_analysis.py @@ -536,8 +536,7 @@ def extra_classifier(insn_name, value, name, res, regs): res['0'] = 'd:RT' # RT: Rdest1_EXTRA3 res['1'] = 's:RA' # RS: Rsrc1_EXTRA3 else: - res['0'] = 'TODO' - print("regs TODO", insn_name, regs) + raise NotImplementedError(insn_name) elif value == 'RM-1P-2S1D': res['Etype'] = 'EXTRA3' # RM EXTRA3 type @@ -596,7 +595,7 @@ def extra_classifier(insn_name, value, name, res, regs): res['1'] = 's:RA' # RA: Rsrc1_EXTRA2 res['2'] = 's:RB' # RT: Rsrc2_EXTRA2 else: - res['0'] = 'TODO' + raise NotImplementedError(insn_name) elif value == 'RM-2P-2S1D': res['Etype'] = 'EXTRA2' # RM EXTRA2 type @@ -605,7 +604,7 @@ def extra_classifier(insn_name, value, name, res, regs): res['1'] = 's:RS' # RS: Rsrc1_EXTRA2 res['2'] = 's:CR' # CR: Rsrc2_EXTRA2 else: - res['0'] = 'TODO' + raise NotImplementedError(insn_name) elif value == 'RM-1P-3S1D': res['Etype'] = 'EXTRA2' # RM EXTRA2 type