hv/trace_dcp.py: Fix reinitialization

Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
Hector Martin 2022-01-17 04:30:28 +09:00
parent 1c2a2db1dd
commit 323e163eb4

View file

@ -83,6 +83,12 @@ class AFKEp(EP):
@msg(0xa1, DIR.TX, AFKEP_GetBuf_Ack)
def GetBuf_Ack(self, msg):
self.state.shmem_iova = msg.DVA
self.txbuf = None
self.rxbuf = None
self.state.txbuf = EPState()
self.state.rxbuf = EPState()
self.state.txbuf_info = None
self.state.rxbuf_info = None
#self.add_mon()
@msg(0xa2, DIR.TX, AFKEP_Send)