projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d6249a
)
Safety net for the cases where disassembler/translator disagree over instruction...
author
malc
<malc@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 21 Apr 2009 22:26:22 +0000
(22:26 +0000)
committer
malc
<malc@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 21 Apr 2009 22:26:22 +0000
(22:26 +0000)
Noticed by Mark Karpeles.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7209
c046a42c
-6fe2-441c-8c8c-
71466251a162
disas.c
patch
|
blob
|
history
diff --git
a/disas.c
b/disas.c
index
6bf7592
..
37f7433
100644
(file)
--- a/
disas.c
+++ b/
disas.c
@@
-222,6
+222,13
@@
void target_disas(FILE *out, target_ulong code, target_ulong size, int flags)
fprintf(out, "\n");
if (count < 0)
break;
+ if (size < count) {
+ fprintf(out,
+ "Disassembler disagrees with translator over instruction "
+ "decoding\n"
+ "Please report this to qemu-devel@nongnu.org\n");
+ break;
+ }
}
}