mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-22 22:53:04 +00:00
m1n1.trace.asc: Support tracing of a DART SID != 0
Required for DCP on M2. Signed-off-by: Janne Grunau <j@jannau.net>
This commit is contained in:
parent
f8964ed0f9
commit
aaa04cfaba
1 changed files with 5 additions and 3 deletions
|
@ -141,19 +141,20 @@ class BaseASCTracer(ADTDevTracer):
|
|||
|
||||
def ioread(self, dva, size):
|
||||
if self.dart:
|
||||
return self.dart.ioread(0, dva & 0xFFFFFFFFF, size)
|
||||
return self.dart.ioread(self.stream, dva & 0xFFFFFFFFF, size)
|
||||
else:
|
||||
return self.hv.iface.readmem(dva, size)
|
||||
|
||||
def iowrite(self, dva, data):
|
||||
if self.dart:
|
||||
return self.dart.iowrite(0, dva & 0xFFFFFFFFF, data)
|
||||
return self.dart.iowrite(self.stream, dva & 0xFFFFFFFFF, data)
|
||||
else:
|
||||
return self.hv.iface.writemem(dva, data)
|
||||
|
||||
def start(self, dart=None):
|
||||
def start(self, dart=None, stream=0):
|
||||
super().start()
|
||||
self.dart = dart
|
||||
self.stream = stream
|
||||
self.msgmap = {}
|
||||
for name in dir(self):
|
||||
i = getattr(self, name)
|
||||
|
@ -172,6 +173,7 @@ class BaseASCTracer(ADTDevTracer):
|
|||
continue
|
||||
ep = v(self, k)
|
||||
ep.dart = dart
|
||||
ep.stream = stream
|
||||
self.epmap[k] = ep
|
||||
if k in self.state.ep:
|
||||
ep.state.__dict__.update(self.state.ep[k])
|
||||
|
|
Loading…
Reference in a new issue