Skip to content

Commit

Permalink
fix mapper ext/mmio case
Browse files Browse the repository at this point in the history
  • Loading branch information
bdcht committed Mar 6, 2024
1 parent cd95a61 commit 2158039
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amoco/cas/mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def _Mem_write(self, a, v, endian=1):
oldv = self.__Mem.read(l,len(v))[0]
except MemoryError:
oldv = l
if oldv.etype==et_ext and oldv._subrefs.get("mmio_w",None):
if isinstance(oldv,ext) and oldv._subrefs.get("mmio_w",None):
oldv.stub(self,mode="w")
else:
self.__Mem.write(l, v, endian)
Expand Down

0 comments on commit 2158039

Please sign in to comment.