[CSR] fixed call to enum value member

This commit is contained in:
Anton Lydike 2021-06-08 00:20:25 +02:00
parent d9e5d78f87
commit 052ad56310

View File

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