mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-11 02:04:11 +00:00
m1n1.utils: Hack to recognize NdRange even if a partial reload happened
Signed-off-by: Asahi Lina <lina@asahilina.net>
This commit is contained in:
parent
6f6073a531
commit
0cd85eb14b
1 changed files with 1 additions and 1 deletions
|
@ -853,7 +853,7 @@ class BaseRegMap(Reloadable):
|
|||
width = rcls.__WIDTH__
|
||||
rd = functools.partial(backend.read, width=width)
|
||||
wr = functools.partial(backend.write, width=width)
|
||||
if isinstance(addr, NdRange):
|
||||
if type(addr).__name__ == "NdRange":
|
||||
self._accessor[name] = RegArrayAccessor(addr, rcls, rd, wr, base)
|
||||
else:
|
||||
self._accessor[name] = RegAccessor(rcls, rd, wr, base + addr)
|
||||
|
|
Loading…
Reference in a new issue