Skip to content

Commit

Permalink
Fix read_instruction on map boundary : don't make fetch size zero
Browse files Browse the repository at this point in the history
  • Loading branch information
bdcht committed Oct 13, 2014
1 parent 60bf12c commit 0980883
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions amoco/system/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,8 @@ def read_instruction(self,vaddr,**kargs):
except MemoryError,e:
ll = e.message
l = maxlen-ll
if l == 0:
return None
logger.warning("instruction fetch error: reducing fetch size (%d)"%l)
istr = self.mmap.read(vaddr,l)
if len(istr)>1:
Expand Down

0 comments on commit 0980883

Please sign in to comment.