m1n1.fw.dcp: Zero dcpep's shared memeory

Fixes a crash of DCP with experiments/dcp.py after chainloading m1n1 on
j314c.

Signed-off-by: Janne Grunau <j@jannau.net>
This commit is contained in:
Janne Grunau 2022-03-10 13:20:04 +01:00 committed by Hector Martin
parent 5983d997d8
commit 7028f3e2d8

View file

@ -156,6 +156,7 @@ class DCPEndpoint(ASCBaseEndpoint):
def initialize(self):
self.shmem, self.shmem_dva = self.asc.ioalloc(0x100000)
self.asc.p.memset32(self.shmem, 0, 0x100000)
self.send(DCPEp_SetShmem(DVA=self.shmem_dva))
while not self.init_complete:
self.asc.work()