Browse Source

Don't include UNUSED in list of all instructions

This was causing UNUSED instructions to be sampled more often than
expected
master
Forest Belton 3 years ago
parent
commit
b210652718
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      gbso/cpu/insn.py

+ 1
- 1
gbso/cpu/insn.py View File

@ -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)

Loading…
Cancel
Save