Got it. As the first step, I just summit a new patch: [PATCH] riscv: Add helper to make NaN-boxing for FP register I'd like to carry out other fixes after this patch is reviewed.
Richard Henderson <richard.hender...@linaro.org> 于2020年1月24日周五 上午2:53写道: > > On 1/22/20 6:05 PM, Ian Jiang wrote: > > But I am not clear where to call this new helper gen_nanbox_fpr(). Is > > there a position that could affect all floating-point instructions? So > > that we don't have to modify so many translating functions. Please > > give more details. > > No, this will have to be called for each instruction individually. > > That said, all of the insns that use helper functions, such as fsqrt_s, should > be doing the nan-boxing within the helper function. Thus you'll want a > different helper function for use within fpu_helper.c. > > > r~