Re: [Qemu-devel] [PATCH v2 4/8] SPARC64: fp_disabled checks on stfa/stdfa/stqfa

2011-07-14 Thread Blue Swirl
On Thu, Jul 14, 2011 at 1:39 PM, Peter Maydell wrote: > On 14 July 2011 10:41, Tsuneo Saito wrote: >> stfa/stdfa/stqfa instructions should raise fp_disabled exceptions >> if %pstate.PEF==0 or %fprs.FEF==0. > > Not really related to this patch but I happened to notice it: > we generate a trap if d

Re: [Qemu-devel] [PATCH v2 4/8] SPARC64: fp_disabled checks on stfa/stdfa/stqfa

2011-07-14 Thread Blue Swirl
On Thu, Jul 14, 2011 at 1:39 PM, Peter Maydell wrote: > On 14 July 2011 10:41, Tsuneo Saito wrote: >> stfa/stdfa/stqfa instructions should raise fp_disabled exceptions >> if %pstate.PEF==0 or %fprs.FEF==0. > > Not really related to this patch but I happened to notice it: > we generate a trap if d

Re: [Qemu-devel] [PATCH v2 4/8] SPARC64: fp_disabled checks on stfa/stdfa/stqfa

2011-07-14 Thread Peter Maydell
On 14 July 2011 10:41, Tsuneo Saito wrote: > stfa/stdfa/stqfa instructions should raise fp_disabled exceptions > if %pstate.PEF==0 or %fprs.FEF==0. Not really related to this patch but I happened to notice it: we generate a trap if dc->fpu_enabled is clear. That flag is set with: dc->fpu_

[Qemu-devel] [PATCH v2 4/8] SPARC64: fp_disabled checks on stfa/stdfa/stqfa

2011-07-14 Thread Tsuneo Saito
stfa/stdfa/stqfa instructions should raise fp_disabled exceptions if %pstate.PEF==0 or %fprs.FEF==0. Signed-off-by: Tsuneo Saito --- target-sparc/translate.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/target-sparc/translate.c b/target-sparc/translate.c index