target/ppc: introduce set_dfp{64,128}() helper functions
commit33432d7737b53c92791f90ece5dbe3b7bb1c79f5
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Thu, 26 Sep 2019 18:57:56 +0000 (26 19:57 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 4 Oct 2019 09:08:21 +0000 (4 19:08 +1000)
tree2f116ddceb3faed9c5d67ae8dce2eca72755698c
parent6a8fbb9bdb7c06b2a73085fd846e22cd3b65242d
target/ppc: introduce set_dfp{64,128}() helper functions

The existing functions (now incorrectly) assume that the MSB and LSB of DFP
numbers are stored as consecutive 64-bit words in memory. Instead of accessing
the DFP numbers directly, introduce set_dfp{64,128}() helper functions to ease
the switch to the correct representation.

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