mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-09-20 05:01:53 +00:00
m1n1.hv: Fix register names
Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
076217a802
commit
db598aa4cf
2 changed files with 3 additions and 3 deletions
|
@ -1429,9 +1429,9 @@ class HV(Reloadable):
|
|||
self.u.msr(MDSCR_EL1, MDSCR(MDE=1).value)
|
||||
|
||||
# Enable AMX
|
||||
amx_ctl = AMX_CTL(self.u.mrs(AMX_CTL_EL1))
|
||||
amx_ctl = AMX_CONFIG(self.u.mrs(AMX_CONFIG_EL1))
|
||||
amx_ctl.EN_EL1 = 1
|
||||
self.u.msr(AMX_CTL_EL1, amx_ctl.value)
|
||||
self.u.msr(AMX_CONFIG_EL1, amx_ctl.value)
|
||||
|
||||
# Set guest AP keys
|
||||
self.u.msr(VMKEYLO_EL2, 0x4E7672476F6E6147)
|
||||
|
|
|
@ -291,7 +291,7 @@ class HACR(Register64):
|
|||
TRAP_UPM = 58
|
||||
TRAP_s3_1z7_c15_cx_3 = 59
|
||||
|
||||
class AMX_CTL(Register64):
|
||||
class AMX_CONFIG(Register64):
|
||||
EN = 63
|
||||
EN_EL1 = 62
|
||||
|
||||
|
|
Loading…
Reference in a new issue