mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-10 09:44:13 +00:00
m1n1.proxyutils: Add a flag for MMU-less mode
Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
6f52823441
commit
efc83f61da
1 changed files with 5 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue