]> xenbits.xensource.com Git - qemu-upstream-unstable.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>
Sun, 22 Feb 2015 18:27:36 +0000 (12:27 -0600)
commit27ad3df73ef88476a288e3aebd5fbcd501ff7e7f
treee2d6004a60f5710d3f1226de1a4993440e9b54d2
parent6569578197d93fcfeec4eb3e48c0659c18142dee
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