mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-26 16:30:17 +00:00
m1n1.utils: fix RegMap range lookup
Signed-off-by: Janne Grunau <j@jannau.net>
This commit is contained in:
parent
cb6d1f58a2
commit
ccd765464d
1 changed files with 2 additions and 2 deletions
|
@ -586,8 +586,8 @@ class RegMap(Reloadable, metaclass=RegMeta):
|
|||
ret = cls._rngmap[offset]
|
||||
if ret:
|
||||
for rng, name, rcls in ret:
|
||||
if reg in rng:
|
||||
return name, rng.index(reg), rcls
|
||||
if offset in rng:
|
||||
return name, rng.index(offset), rcls
|
||||
return None, None, None
|
||||
|
||||
def lookup_addr(self, addr):
|
||||
|
|
Loading…
Reference in a new issue