Re: About hardfloat in ppc

2020-05-01 Thread Richard Henderson
On 5/1/20 10:49 AM, 罗勇刚(Yonggang Luo) wrote: > > > On Sat, May 2, 2020 at 12:51 AM Richard Henderson > > wrote: > > On 5/1/20 9:29 AM, 罗勇刚(Yonggang Luo) wrote: > > On Fri, May 1, 2020 at 10:18 PM Richard Henderson > mailto:richard.hender...@lina

Re: About hardfloat in ppc

2020-05-01 Thread Alex Bennée
罗勇刚(Yonggang Luo) writes: > On Fri, May 1, 2020 at 10:18 PM Richard Henderson < > richard.hender...@linaro.org> wrote: > >> On 5/1/20 6:10 AM, Alex Bennée wrote: >> > >> > 罗勇刚(Yonggang Luo) writes: >> > >> >> On Fri, May 1, 2020 at 7:58 PM BALATON Zoltan >> wrote: >> >> >> >>> On Fri, 1 May 2

Re: About hardfloat in ppc

2020-05-01 Thread Yonggang Luo
On Sat, May 2, 2020 at 12:51 AM Richard Henderson < richard.hender...@linaro.org> wrote: > On 5/1/20 9:29 AM, 罗勇刚(Yonggang Luo) wrote: > > On Fri, May 1, 2020 at 10:18 PM Richard Henderson < > richard.hender...@linaro.org > > Step 1 is to rearrange the fp helpers to eliminate > helper_reset_fp

Re: About hardfloat in ppc

2020-05-01 Thread Richard Henderson
On 5/1/20 9:29 AM, 罗勇刚(Yonggang Luo) wrote: > On Fri, May 1, 2020 at 10:18 PM Richard Henderson > Step 1 is to rearrange the fp helpers to eliminate > helper_reset_fpstatus(). > I've mentioned this before, that it's possible to leave the steady-state > of > env->fp_status.exception_

Re: About hardfloat in ppc

2020-05-01 Thread Yonggang Luo
On Fri, May 1, 2020 at 10:18 PM Richard Henderson < richard.hender...@linaro.org> wrote: > On 5/1/20 6:10 AM, Alex Bennée wrote: > > > > 罗勇刚(Yonggang Luo) writes: > > > >> On Fri, May 1, 2020 at 7:58 PM BALATON Zoltan > wrote: > >> > >>> On Fri, 1 May 2020, 罗勇刚(Yonggang Luo) wrote: > That's

Re: About hardfloat in ppc

2020-05-01 Thread Yonggang Luo
On Fri, May 1, 2020 at 10:18 PM Richard Henderson < richard.hender...@linaro.org> wrote: > On 5/1/20 6:10 AM, Alex Bennée wrote: > > > > 罗勇刚(Yonggang Luo) writes: > > > >> On Fri, May 1, 2020 at 7:58 PM BALATON Zoltan > wrote: > >> > >>> On Fri, 1 May 2020, 罗勇刚(Yonggang Luo) wrote: > That's

Re: About hardfloat in ppc

2020-05-01 Thread Richard Henderson
On 5/1/20 6:10 AM, Alex Bennée wrote: > > 罗勇刚(Yonggang Luo) writes: > >> On Fri, May 1, 2020 at 7:58 PM BALATON Zoltan wrote: >> >>> On Fri, 1 May 2020, 罗勇刚(Yonggang Luo) wrote: That's what I suggested, We preserve a float computing cache typedef struct FpRecord { uint8_t

Re: About hardfloat in ppc

2020-05-01 Thread Alex Bennée
BALATON Zoltan writes: > On Fri, 1 May 2020, Alex Bennée wrote: >> 罗勇刚(Yonggang Luo) writes: >>> On Fri, May 1, 2020 at 7:58 PM BALATON Zoltan wrote: On Fri, 1 May 2020, 罗勇刚(Yonggang Luo) wrote: > That's what I suggested, > We preserve a float computing cache > typedef struc

Re: About hardfloat in ppc

2020-05-01 Thread BALATON Zoltan
On Fri, 1 May 2020, Alex Bennée wrote: 罗勇刚(Yonggang Luo) writes: On Fri, May 1, 2020 at 7:58 PM BALATON Zoltan wrote: On Fri, 1 May 2020, 罗勇刚(Yonggang Luo) wrote: That's what I suggested, We preserve a float computing cache typedef struct FpRecord { uint8_t op; float32 A; float32 B; } F

Re: About hardfloat in ppc

2020-05-01 Thread Alex Bennée
罗勇刚(Yonggang Luo) writes: > On Fri, May 1, 2020 at 7:58 PM BALATON Zoltan wrote: > >> On Fri, 1 May 2020, 罗勇刚(Yonggang Luo) wrote: >> > That's what I suggested, >> > We preserve a float computing cache >> > typedef struct FpRecord { >> > uint8_t op; >> > float32 A; >> > float32 B; >> > }

Re: About hardfloat in ppc

2020-05-01 Thread Yonggang Luo
On Fri, May 1, 2020 at 7:58 PM BALATON Zoltan wrote: > On Fri, 1 May 2020, 罗勇刚(Yonggang Luo) wrote: > > That's what I suggested, > > We preserve a float computing cache > > typedef struct FpRecord { > > uint8_t op; > > float32 A; > > float32 B; > > } FpRecord; > > FpRecord fp_cache[1024]; >

Re: About hardfloat in ppc

2020-05-01 Thread BALATON Zoltan
On Fri, 1 May 2020, 罗勇刚(Yonggang Luo) wrote: That's what I suggested, We preserve a float computing cache typedef struct FpRecord { uint8_t op; float32 A; float32 B; } FpRecord; FpRecord fp_cache[1024]; int fp_cache_length; uint32_t fp_exceptions; 1. For each new fp operation we push it to

Re: About hardfloat in ppc

2020-04-30 Thread Yonggang Luo
That's what I suggested, We preserve a float computing cache typedef struct FpRecord { uint8_t op; float32 A; float32 B; } FpRecord; FpRecord fp_cache[1024]; int fp_cache_length; uint32_t fp_exceptions; 1. For each new fp operation we push it to the fp_cache, 2. Once we read the fp_except

Re: About hardfloat in ppc

2020-04-30 Thread Programmingkid
> On Apr 30, 2020, at 12:34 PM, Dino Papararo wrote: > > Maybe the fastest way to implement hardfloats for ppc could be run them by > default and until some fpu instruction request for FPSCR register. > At this time probably we want to check for some exception.. so QEMU could > come back to l

Re: About hardfloat in ppc

2020-04-30 Thread BALATON Zoltan
On Thu, 30 Apr 2020, Alex Bennée wrote: BALATON Zoltan writes: On Tue, 28 Apr 2020, Alex Bennée wrote: 罗勇刚(Yonggang Luo) writes: I am confusing why only inexact are set then we can use hard-float. The inexact behaviour of the host hardware may be different from the guest architecture we

Re: About hardfloat in ppc

2020-04-30 Thread Alex Bennée
BALATON Zoltan writes: > On Tue, 28 Apr 2020, Alex Bennée wrote: >> 罗勇刚(Yonggang Luo) writes: >>> I am confusing why only inexact are set then we can use hard-float. >> >> The inexact behaviour of the host hardware may be different from the >> guest architecture we are trying to emulate and

Re: About hardfloat in ppc

2020-04-30 Thread BALATON Zoltan
On Tue, 28 Apr 2020, Alex Bennée wrote: 罗勇刚(Yonggang Luo) writes: I am confusing why only inexact are set then we can use hard-float. The inexact behaviour of the host hardware may be different from the guest architecture we are trying to emulate and the host hardware may not be configurabl

Re: About hardfloat in ppc

2020-04-28 Thread Yonggang Luo
On Tue, Apr 28, 2020 at 4:36 PM Alex Bennée wrote: > > 罗勇刚(Yonggang Luo) writes: > > > I am confusing why only inexact are set then we can use hard-float. > > The inexact behaviour of the host hardware may be different from the > guest architecture we are trying to emulate and the host hardwar

Re: About hardfloat in ppc

2020-04-28 Thread Alex Bennée
罗勇刚(Yonggang Luo) writes: > I am confusing why only inexact are set then we can use hard-float. The inexact behaviour of the host hardware may be different from the guest architecture we are trying to emulate and the host hardware may not be configurable to emulate the guest mode. Have a lo

Re: About hardfloat in ppc

2020-04-27 Thread Yonggang Luo
I am confusing why only inexact are set then we can use hard-float. And PPC always clearing inexact flag before calling to soft-float funcitons. so we can not optimize it with hard-float. I need some resouces about ineact flag and why always clearing inexcat in PPC FP simualtion. I am looking fo

Re: About hardfloat in ppc

2020-04-27 Thread Alex Bennée
BALATON Zoltan writes: > On Mon, 27 Apr 2020, Alex Bennée wrote: >> 罗勇刚(Yonggang Luo) writes: >>> Because ppc fpu-helper are always clearing float_flag_inexact, >>> So is that possible to optimize the performance when float_flag_inexact >>> are cleared? >> >> There was some discussion about t

Re: About hardfloat in ppc

2020-04-27 Thread BALATON Zoltan
On Mon, 27 Apr 2020, Alex Bennée wrote: 罗勇刚(Yonggang Luo) writes: Because ppc fpu-helper are always clearing float_flag_inexact, So is that possible to optimize the performance when float_flag_inexact are cleared? There was some discussion about this in the last thread about enabling hardflo

Re: About hardfloat in ppc

2020-04-27 Thread Alex Bennée
罗勇刚(Yonggang Luo) writes: > Because ppc fpu-helper are always clearing float_flag_inexact, > So is that possible to optimize the performance when float_flag_inexact > are cleared? There was some discussion about this in the last thread about enabling hardfloat for PPC. See the thread: Subj