proxy: Add P_MMU_INIT_SECONDARY

Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
Hector Martin 2021-10-15 23:41:24 +09:00
parent da024ffbd8
commit 1444c93a24
3 changed files with 7 additions and 0 deletions

View file

@ -516,6 +516,7 @@ class M1N1Proxy(Reloadable):
P_MMU_INIT = 0x30c
P_MMU_DISABLE = 0x30d
P_MMU_RESTORE = 0x30e
P_MMU_INIT_SECONDARY = 0x30f
P_XZDEC = 0x400
P_GZDEC = 0x401
@ -864,6 +865,8 @@ class M1N1Proxy(Reloadable):
return self.request(self.P_MMU_DISABLE)
def mmu_restore(self, flags):
self.request(self.P_MMU_RESTORE, flags)
def mmu_init_secondary(self, cpu):
self.request(self.P_MMU_INIT_SECONDARY, cpu)
def xzdec(self, inbuf, insize, outbuf=0, outsize=0):

View file

@ -289,6 +289,9 @@ int proxy_process(ProxyRequest *request, ProxyReply *reply)
case P_MMU_RESTORE:
mmu_restore(request->args[0]);
break;
case P_MMU_INIT_SECONDARY:
mmu_init_secondary(request->args[0]);
break;
case P_XZDEC: {
uint32_t destlen, srclen;

View file

@ -73,6 +73,7 @@ typedef enum {
P_MMU_INIT,
P_MMU_DISABLE,
P_MMU_RESTORE,
P_MMU_INIT_SECONDARY,
P_XZDEC = 0x400, // Decompression and data processing ops
P_GZDEC,