find_all_regs: print EL2-only registers

Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
Hector Martin 2021-03-04 22:40:25 +09:00
parent ce2038c59c
commit 3bf3613e7d

View file

@ -49,8 +49,10 @@ for op1 in range(1 << 3):
u.msr((3, op1, CRn, CRm, op2), v, silent=True)
except:
print(" - READONLY")
else:
print(" - writable")
try:
u.mrs((3, op1, CRn, CRm, op2), silent=True, call=p.el1_call)
except:
print(" - ### EL2 only ###")
try:
u.mrs((3, op1, CRn, CRm, op2), silent=True, call=p.el0_call)
except: