m1n1.proxyutils: Add a flag for MMU-less mode

Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
Hector Martin 2022-06-27 18:22:09 +09:00
parent 6f52823441
commit efc83f61da

View file

@ -60,6 +60,8 @@ class ProxyUtils(Reloadable):
self.simd_type = None
self.simd = None
self.mmu_off = False
self.exec_modes = {
None: (self.proxy.call, REGION_RX_EL1),
"el2": (self.proxy.call, REGION_RX_EL1),
@ -148,6 +150,9 @@ class ProxyUtils(Reloadable):
else:
raise ValueError()
if self.mmu_off:
region = 0
assert len(func) < self.CODE_BUFFER_SIZE
self.iface.writemem(self.code_buffer, func)
self.proxy.dc_cvau(self.code_buffer, len(func))