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)
commite936243acad7a657d26560d16a1cb2a505936c2d
tree2841d67511c4c0a0ff2319c5b7ba855d33d2e23d
parentf0b3f3ae5d7002b2280c07619c45399ab4e80e2c
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