]> git.ipfire.org Git - thirdparty/qemu.git/commit
target-xtensa: fix cross-page jumps/calls at the end of TB
authorMax Filippov <jcmvbkbc@gmail.com>
Tue, 20 May 2014 10:48:45 +0000 (14:48 +0400)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 3 Jul 2014 21:31:29 +0000 (16:31 -0500)
commit26b51027f9b658f28c9f1c90f8b0eb342ca42ab4
treec4cea3dafa16101a81388d99b8ba170b6850f498
parent44564f82264447979f774039f73b9343fb505127
target-xtensa: fix cross-page jumps/calls at the end of TB

Use tb->pc instead of dc->pc to check for cross-page jumps.
When TB translation stops at the page boundary dc->pc points to the next
page allowing chaining to TBs in it, which is wrong.

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