aboutsummaryrefslogtreecommitdiff
path: root/roms/openhackware
diff options
context:
space:
mode:
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2019-09-26 19:57:59 +0100
committerDavid Gibson <david@gibson.dropbear.id.au>2019-10-04 19:08:21 +1000
commit64b8574e143f2287009ad77a12b87e64516a0711 (patch)
treec371b1303d51680ffaffc9b4eb0ed21ad62e29d7 /roms/openhackware
parent474c2e931d51bad00c20c65d6fe478a9391e5e2a (diff)
target/ppc: change struct PPC_DFP decimal storage from uint64[2] to ppc_vsr_t
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-ayland@ilande.co.uk> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20190926185801.11176-6-mark.cave-ayland@ilande.co.uk> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'roms/openhackware')
0 files changed, 0 insertions, 0 deletions