Re: [Qemu-devel] [PATCH 3/5] tcg-i386: Implement small forward branches.

2009-12-19 Thread Richard Henderson
On 12/19/2009 03:32 PM, Laurent Desnogues wrote: switch(args[4]) { case TCG_COND_EQ: -tcg_out_brcond(s, TCG_COND_NE, args[0], args[2], const_args[2], label_next); -tcg_out_brcond(s, TCG_COND_EQ, args[1], args[3], const_args[3], args[5]); +tcg_out_brcond(s, TCG_

Re: [Qemu-devel] [PATCH 3/5] tcg-i386: Implement small forward branches.

2009-12-19 Thread Laurent Desnogues
On Sat, Dec 19, 2009 at 7:44 PM, Richard Henderson wrote: > 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

Re: [Qemu-devel] [PATCH 3/5] tcg-i386: Implement small forward branches.

2009-12-19 Thread Aurelien Jarno
On Sat, Dec 19, 2009 at 10:44:11AM -0800, Richard Henderson wrote: > 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

[Qemu-devel] [PATCH 3/5] tcg-i386: Implement small forward branches.

2009-12-19 Thread Richard Henderson
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 fl