Re: [Qemu-devel] [V3 PATCH 12/14] target-ppc: Add ISA 2.06 ftsqrt

2013-12-24 Thread Richard Henderson
On 12/18/2013 12:49 PM, Tom Musta wrote: > +static void gen_ftsqrt(DisasContext *ctx) > +{ > +TCGv_i32 bf; > +if (unlikely(!ctx->fpu_enabled)) { > +gen_exception(ctx, POWERPC_EXCP_FPU); > +return; > +} > +/* NIP cannot be restored if the memory exception comes from a

[Qemu-devel] [V3 PATCH 12/14] target-ppc: Add ISA 2.06 ftsqrt

2013-12-18 Thread Tom Musta
This patch adds the Floating Point Test for Square Root instruction which was introduced in Power ISA 2.06. Signed-off-by: Tom Musta --- target-ppc/fpu_helper.c | 31 +++ target-ppc/helper.h |1 + target-ppc/translate.c | 14 ++ 3 files change