A branch insn must not overwrite the branch target before relocation.
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 23 May 2008 18:50:44 +0000 (18:50 +0000)
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 23 May 2008 18:50:44 +0000 (18:50 +0000)
commitd21f2407527ce26ae73eaadd9ffa02b7a1066832
tree2841d67511c4c0a0ff2319c5b7ba855d33d2e23d
parentf9b6ec1ce5cee35aa532cbc48411fda912183216
A branch insn must not overwrite the branch target before relocation.

When a branch to label is translated it generates a reloc that is filled in
when the label is translated.  However, when handling an exception and
searching for the pc we abort the translation early and we sometimes
translate the branch but not the corresponding label and so no relocation
is done.  When the block is executed again the branch points to no-where.

It seems tcg/sparc/ is going to suffer from the same issue.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4547 c046a42c-6fe2-441c-8c8c-71466251a162
tcg/arm/tcg-target.c