hv_vuart: Make compatible with xnu and enable

Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
Hector Martin 2021-05-30 01:39:26 +09:00
parent a5c7e1557f
commit c794ea6dc2
2 changed files with 2 additions and 2 deletions

View file

@ -661,7 +661,7 @@ class HV:
self.u.msr(APVMKEYHI_EL2, 0x697665596F755570)
self.u.msr(APSTS_EL12, 1)
#self.p.hv_map_vuart(0x2_35200000, getattr(IODEV, self.iodev.name + "_SEC"))
self.p.hv_map_vuart(0x2_35200000, getattr(IODEV, self.iodev.name + "_SEC"))
actlr = ACTLR(self.u.mrs(ACTLR_EL12))
actlr.EnMDSB = 1

View file

@ -22,7 +22,7 @@ bool handle_vuart(u64 addr, u64 *val, bool write, int width)
} else {
switch (addr) {
case UTRSTAT:
*val = 0x02;
*val = 0x06;
break;
default:
*val = 0;