Re: [Qemu-devel] [V3 PATCH 11/14] target-ppc: Add ISA 2.06 ftdiv Instruction

2013-12-24 Thread Richard Henderson
On 12/18/2013 12:49 PM, Tom Musta wrote: > +env->crf[bf] = 0x8 | (fg_flag ? 4 : 0) | (fe_flag ? 2 : 0); > +} You should return that value instead of assigning it. Then you need neither the env nor bf arguments, and the whole function can be TCG_CALL_NO_RWG_SE. > +static void gen_ftdiv(DisasC

[Qemu-devel] [V3 PATCH 11/14] target-ppc: Add ISA 2.06 ftdiv Instruction

2013-12-18 Thread Tom Musta
This patch adds the Floating Point Test for Divide instruction which was introduced in Power ISA 2.06. Signed-off-by: Tom Musta --- target-ppc/fpu_helper.c | 56 ++ target-ppc/helper.h |2 + target-ppc/translate.c | 17 ++ 3 fi