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

Method msr

proxyclient/m1n1/proxyutils.py:174–181  ·  view source on GitHub ↗

Write val to system register reg

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

Source from the content-addressed store, hash-verified

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'''
176 op0, op1, CRn, CRm, op2 = sysreg_parse(reg)
177
178 op = ((op0 << 19) | (op1 << 16) | (CRn << 12) |
179 (CRm << 8) | (op2 << 5) | 0xd5000000)
180
181 self.exec(op, val, call=call, silent=silent)
182
183 sys = msr
184 sysl = mrs

Callers 15

print_l2c_regsMethod · 0.95
linux.pyFile · 0.80
freebsd.pyFile · 0.80
run_guest.pyFile · 0.80
msrFunction · 0.80
dmp.pyFile · 0.80
timer_test.pyFile · 0.80
run_testFunction · 0.80
test_hv_timersFunction · 0.80
test_guest_timersFunction · 0.80
aic_test.pyFile · 0.80
test_timerFunction · 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