]> git.proxmox.com Git - mirror_qemu.git/commit - include/elf.h
tcg-i386: Implement small forward branches.
authorRichard Henderson <rth@twiddle.net>
Sat, 6 Feb 2010 19:47:58 +0000 (11:47 -0800)
committerAurelien Jarno <aurelien@aurel32.net>
Sat, 6 Feb 2010 21:23:39 +0000 (22:23 +0100)
commitf75b56c1ec80448415791ff1541e7e6cf1ceca1f
treec731a3b4e2d1115b3993fb80c9a32695c62ec45d
parent79427693174a553d62f3da44aacd3f19ba8df3a7
tcg-i386: Implement small forward branches.

There are places, like brcond2, where we know that the destination
of a forward branch will be within 127 bytes.

Add the R_386_PC8 relocation type to support this.  Add a flag to
tcg_out_jxx and tcg_out_brcond* to enable it.  Set the flag in the
brcond2 label_next branches; pass along the input flag otherwise.

Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
elf.h
tcg/i386/tcg-target.c