[CSR] fixed call to enum value member

kernel-mode
Anton Lydike 3 years ago
parent d9e5d78f87
commit 052ad56310

@ -84,7 +84,7 @@ class CSR:
return inner
def assert_can_read(self, mode: PrivModes, addr: int):
if (addr >> 8) & 3 > mode.value():
if (addr >> 8) & 3 > mode.value:
raise InstructionAccessFault(addr)
def assert_can_write(self, mode: PrivModes, addr: int):

Loading…
Cancel
Save