summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--opcodes/z80-dis.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/opcodes/z80-dis.c b/opcodes/z80-dis.c
index 0e7a312ff89..f62861c1de5 100644
--- a/opcodes/z80-dis.c
+++ b/opcodes/z80-dis.c
@@ -95,6 +95,8 @@ fetch_data (struct buffer *buf, disassemble_info * info, int n)
n, info);
if (r == 0)
buf->n_fetch += n;
+ else
+ info->memory_error_func (r, buf->base + buf->n_fetch, info);
return !r;
}