Skip to content

Commit 13e303b

Browse files
committed
bluetooth: trace rings
also add an alignment hack Signed-off-by: R <[email protected]>
1 parent 0428d4b commit 13e303b

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

proxyclient/hv/trace_bt.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,8 @@ def hook(name, iova, sz):
238238
hook('crTIA', context.crTIA, 12)
239239
hook('trHIA', context.trHIA, 18)
240240
hook('trTIA', context.trTIA, 18)
241+
hook('mcr', context.mcr, 0x800) # no idea size
242+
hook('mtr', context.mtr, 0x800) # i _think_ this is correct
241243

242244
except Exception as e:
243245
print(e)

proxyclient/m1n1/proxy.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,8 @@ def reboot(self):
712712
def write64(self, addr, data):
713713
'''write 8 byte value to given address'''
714714
if addr & 7:
715-
raise AlignmentError()
715+
self.write32(addr, data & 0xFFFFFFFF)
716+
self.write32(addr + 4, data >> 32)
716717
self.request(self.P_WRITE64, addr, data)
717718
def write32(self, addr, data):
718719
'''write 4 byte value to given address'''

0 commit comments

Comments
 (0)