target/ppc: use existing VsrD() macro to eliminate HI_IDX and LO_IDX from dfp_helper.c
commit1ea80bf7f4398099b6818f574cda8b4089c62340
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Thu, 26 Sep 2019 18:58:00 +0000 (26 19:58 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 4 Oct 2019 09:08:21 +0000 (4 19:08 +1000)
treea7fc25807d4850efc68d5cc13018fd6195aacd43
parent64b8574e143f2287009ad77a12b87e64516a0711
target/ppc: use existing VsrD() macro to eliminate HI_IDX and LO_IDX from dfp_helper.c

Switch over all accesses to the decimal numbers held in struct PPC_DFP from
using HI_IDX and LO_IDX to using the VsrD() macro instead. Not only does this
allow the compiler to ensure that the various dfp_* functions are being passed
a ppc_vsr_t rather than an arbitrary uint64_t pointer, but also allows the
host endian-specific HI_IDX and LO_IDX to be completely removed from
dfp_helper.c.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20190926185801.11176-7-mark.cave-ayland@ilande.co.uk>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/dfp_helper.c