From b210652718996d51bbb32d61007d748c1b03718d Mon Sep 17 00:00:00 2001 From: Forest Belton <65484+forestbelton@users.noreply.github.com> Date: Mon, 9 Aug 2021 18:25:50 -0400 Subject: [PATCH] Don't include UNUSED in list of all instructions This was causing UNUSED instructions to be sampled more often than expected --- gbso/cpu/insn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gbso/cpu/insn.py b/gbso/cpu/insn.py index 9e557ff..623da1c 100644 --- a/gbso/cpu/insn.py +++ b/gbso/cpu/insn.py @@ -1694,7 +1694,7 @@ class UNUSED(Insn): ALL_INSN_CLASSES: List[Type[Insn]] = [ - cls for cls in Insn.__subclasses__() if cls != Insn # type: ignore + cls for cls in Insn.__subclasses__() if cls not in {Insn, UNUSED} # type: ignore ] INSNS_BY_SIGNATURE: Dict[str, List[Type[Insn]]] = defaultdict(list)