From c794ea6dc2ea73071d4aea7f940ef40225d44333 Mon Sep 17 00:00:00 2001 From: Hector Martin Date: Sun, 30 May 2021 01:39:26 +0900 Subject: [PATCH] hv_vuart: Make compatible with xnu and enable Signed-off-by: Hector Martin --- proxyclient/hv.py | 2 +- src/hv_vuart.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/proxyclient/hv.py b/proxyclient/hv.py index e8d9d6b9..9eca2f83 100644 --- a/proxyclient/hv.py +++ b/proxyclient/hv.py @@ -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 diff --git a/src/hv_vuart.c b/src/hv_vuart.c index af94c1de..50034f39 100644 --- a/src/hv_vuart.c +++ b/src/hv_vuart.c @@ -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;