From c2002cd46d7d3744343dace57bb0dafc51805a13 Mon Sep 17 00:00:00 2001 From: Anton Lydike Date: Tue, 8 Jun 2021 00:21:51 +0200 Subject: [PATCH] [PrivCPU] fixed naming for csr mtimecmp callback function --- .gitignore | 3 ++- riscemu/priv/PrivCPU.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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