From d508e01a6bfaefbdabdb7b8ce0daa1cf54004fda Mon Sep 17 00:00:00 2001 From: Anton Lydike Date: Tue, 30 May 2023 09:21:24 +0100 Subject: [PATCH] misc: test python 3.8 in CI, add cfg arg to RiscemuRunner --- .github/workflows/ci-pytest.yml | 2 +- riscemu/riscemu_main.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 = []