target-xtensa: fix translation for opcodes crossing page boundary
commit01673a3401614b4199c9946ad47b97bedfc7a7c2
authorMax Filippov <jcmvbkbc@gmail.com>
Sun, 14 Dec 2014 04:50:55 +0000 (14 07:50 +0300)
committerMax Filippov <jcmvbkbc@gmail.com>
Wed, 17 Dec 2014 02:49:32 +0000 (17 05:49 +0300)
tree6963932dfbafae8422608d36e5268615931c1384
parent246ae24d7df47f05d7b102f9c84e00b536eadc43
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>
target-xtensa/translate.c