[PrivCPU] fixed naming for csr mtimecmp callback function

kernel-mode
Anton Lydike 3 years ago
parent 5b2b12507d
commit c2002cd46d

3
.gitignore vendored

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

@ -134,7 +134,7 @@ class PrivCPU(CPU):
self._time_interrupt_enabled = True self._time_interrupt_enabled = True
@self.csr.callback('mtimecmph') @self.csr.callback('mtimecmph')
def mtimecmp(old, new): def mtimecmph(old, new):
self._time_timecmp = (new << 32) + self.csr.get('mtimecmp') self._time_timecmp = (new << 32) + self.csr.get('mtimecmp')
self._time_interrupt_enabled = True self._time_interrupt_enabled = True

Loading…
Cancel
Save