[PrivCPU] fixed naming for csr mtimecmp callback function

This commit is contained in:
Anton Lydike 2021-06-08 00:21:51 +02:00
parent 5b2b12507d
commit c2002cd46d
2 changed files with 3 additions and 2 deletions

3
.gitignore vendored
View File

@ -1,2 +1,3 @@
venv
__pycache__
__pycache__
.mypy_cache

View File

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