MCPcopy
hub / github.com/AsahiLinux/m1n1 / mrs

Method mrs

proxyclient/m1n1/proxyutils.py:165–172  ·  view source on GitHub ↗

read system register reg

(self, reg, *, silent=False, call=None)

Source from the content-addressed store, hash-verified

163 raise ProxyError("Exception occurred")
164
165 def mrs(self, reg, *, silent=False, call=None):
166 '''read system register reg'''
167 op0, op1, CRn, CRm, op2 = sysreg_parse(reg)
168
169 op = ((op0 << 19) | (op1 << 16) | (CRn << 12) |
170 (CRm << 8) | (op2 << 5) | 0xd5200000)
171
172 return self.exec(op, call=call, silent=silent)
173
174 def msr(self, reg, val, *, silent=False, call=None):
175 '''Write val to system register reg'''

Callers 15

print_l2c_regsMethod · 0.95
print_contextMethod · 0.95
linux.pyFile · 0.80
freebsd.pyFile · 0.80
dmp.pyFile · 0.80
mrsFunction · 0.80
run_testFunction · 0.80
test_hv_timersFunction · 0.80
test_guest_timersFunction · 0.80
timer_test.pyFile · 0.80
cpu_pstates.pyFile · 0.80
wfi.pyFile · 0.80

Calls 2

execMethod · 0.95
sysreg_parseFunction · 0.85

Tested by 4

run_testFunction · 0.64
test_hv_timersFunction · 0.64
test_guest_timersFunction · 0.64
test_timerFunction · 0.64