]> git.ipfire.org Git - thirdparty/qemu.git/commit
target-xtensa: fix translation for opcodes crossing page boundary
authorMax Filippov <jcmvbkbc@gmail.com>
Sun, 14 Dec 2014 04:50:55 +0000 (07:50 +0300)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 14 Jan 2015 23:08:43 +0000 (17:08 -0600)
commit6e64c4e6f1653dbb154a740ad12bc99f6ca050ce
tree4f5174ae00edcc7586c392fbda7e6b6e1a93f0f4
parent73c1527f96193ce9f7c7485999cdf96eea885c2c
target-xtensa: fix translation for opcodes crossing page boundary

If TB ends with an opcode that crosses page boundary and the following
page is not executable then EPC1 for the code fetch exception wrongly
points at the beginning of the TB. Always treat instruction that crosses
page boundary as a separate TB.

Cc: qemu-stable@nongnu.org
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
(cherry picked from commit 01673a3401614b4199c9946ad47b97bedfc7a7c2)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
target-xtensa/translate.c