On 9/24/19 8:35 AM, Mark Cave-Ayland wrote: > There are several places in dfp_helper.c that access the decimal number > representations in struct PPC_DFP via HI_IDX and LO_IDX defines which are set > at the top of dfp_helper.c according to the host endian. > > However we can instead switch to using ppc_vsr_t for decimal numbers and then > make subsequent use of the existing VsrD() macros to access the correct > element regardless of host endian. Note that 64-bit decimals are stored in the > LSB of ppc_vsr_t (equivalent to VsrD(1)). > > Signed-off-by: Mark Cave-Ayland <mark.cave-ayl...@ilande.co.uk> > --- > target/ppc/dfp_helper.c | 210 +++++++++++++++++++++------------------- > 1 file changed, 108 insertions(+), 102 deletions(-)
Reviewed-by: Richard Henderson <richard.hender...@linaro.org> r~