[CSR] fixed call to enum value member
This commit is contained in:
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…
Reference in New Issue
Block a user