diff --git a/.github/workflows/ci-pytest.yml b/.github/workflows/ci-pytest.yml index 9c772a4..86e0be3 100644 --- a/.github/workflows/ci-pytest.yml +++ b/.github/workflows/ci-pytest.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.10'] + python-version: ['3.8','3.10'] steps: - uses: actions/checkout@v3 diff --git a/riscemu/riscemu_main.py b/riscemu/riscemu_main.py index 35daaeb..dbd3659 100644 --- a/riscemu/riscemu_main.py +++ b/riscemu/riscemu_main.py @@ -26,11 +26,11 @@ class RiscemuMain: input_files: List[str] selected_ins_sets: List[Type[InstructionSet]] - def __init__(self): + def __init__(self, cfg: Optional[RunConfig] = None): self.available_ins_sets = dict() self.selected_ins_sets = [] self.available_file_loaders = [] - self.cfg: Optional[RunConfig] = None + self.cfg: Optional[RunConfig] = cfg self.cpu: Optional[CPU] = None self.input_files = [] self.selected_ins_sets = []