mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-23 07:03:08 +00:00
hv/trace_pmgr.py: Tolerate missing pwrgate-regs
Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
a5a57c230e
commit
8ae1d15fac
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ class PMGRTracer(Tracer):
|
||||||
ps_addr = addr + idx * 8
|
ps_addr = addr + idx * 8
|
||||||
self.ranges[ps_addr:ps_addr + 8] = self.event_default, ps_addr, f"ps[{i}][{idx}]"
|
self.ranges[ps_addr:ps_addr + 8] = self.event_default, ps_addr, f"ps[{i}][{idx}]"
|
||||||
|
|
||||||
for i, pg in enumerate(self.dev.pwrgate_regs):
|
for i, pg in getattr(self.dev, "pwrgate_regs", []):
|
||||||
addr = self.dev.get_reg(pg.reg)[0] + pg.offset
|
addr = self.dev.get_reg(pg.reg)[0] + pg.offset
|
||||||
for idx in range(32):
|
for idx in range(32):
|
||||||
gate_addr = addr + idx * 8
|
gate_addr = addr + idx * 8
|
||||||
|
|
Loading…
Reference in a new issue