diff --git a/.gitignore b/.gitignore index d75edea..9bccae6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ venv -__pycache__ \ No newline at end of file +__pycache__ +.mypy_cache \ No newline at end of file diff --git a/riscemu/priv/PrivCPU.py b/riscemu/priv/PrivCPU.py index ef34bf0..867ab38 100644 --- a/riscemu/priv/PrivCPU.py +++ b/riscemu/priv/PrivCPU.py @@ -134,7 +134,7 @@ class PrivCPU(CPU): self._time_interrupt_enabled = True @self.csr.callback('mtimecmph') - def mtimecmp(old, new): + def mtimecmph(old, new): self._time_timecmp = (new << 32) + self.csr.get('mtimecmp') self._time_interrupt_enabled = True