aboutsummaryrefslogtreecommitdiff
path: root/target-i386/cpu.h
diff options
context:
space:
mode:
authorPavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>2014-11-26 13:39:42 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2014-12-15 12:21:02 +0100
commit5b9efc39aee90bbd343793e942bf8f582a0c9e4f (patch)
treed16faa3d215c4c544d43cd30df5d8d140b44f15b /target-i386/cpu.h
parentbf2a7ddb0a066c27ed1432b918baa046b6b7dfc5 (diff)
downloadqemu-5b9efc39aee90bbd343793e942bf8f582a0c9e4f.zip
qemu-5b9efc39aee90bbd343793e942bf8f582a0c9e4f.tar.gz
qemu-5b9efc39aee90bbd343793e942bf8f582a0c9e4f.tar.bz2
i386: do not cross the pages boundaries in replay mode
This patch denies crossing the boundary of the pages in the replay mode, because it can cause an exception. Do it only when boundary is crossed by the first instruction in the block. If current instruction already crossed the bound - it's ok, because an exception hasn't stopped this code. Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target-i386/cpu.h')
-rw-r--r--target-i386/cpu.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/target-i386/cpu.h b/target-i386/cpu.h
index 7e36365..3ecff96 100644
--- a/target-i386/cpu.h
+++ b/target-i386/cpu.h
@@ -28,6 +28,9 @@
#define TARGET_LONG_BITS 32
#endif
+/* Maximum instruction code size */
+#define TARGET_MAX_INSN_SIZE 16
+
/* target supports implicit self modifying code */
#define TARGET_HAS_SMC
/* support for self modifying code even if the modified instruction is