diff options
| author | Mark Cave-Ayland | 2019-03-07 19:05:18 +0100 |
|---|---|---|
| committer | David Gibson | 2019-03-12 04:33:04 +0100 |
| commit | 37da91f163d2ec808cca4f1662499dbe07f858e1 (patch) | |
| tree | 7b2bf5ceb0aa28caf3d70479cf10c84947722dd4 /scripts/checkpatch.pl | |
| parent | target/ppc: introduce avr_full_offset() function (diff) | |
| download | qemu-37da91f163d2ec808cca4f1662499dbe07f858e1.tar.gz qemu-37da91f163d2ec808cca4f1662499dbe07f858e1.tar.xz qemu-37da91f163d2ec808cca4f1662499dbe07f858e1.zip | |
target/ppc: improve avr64_offset() and use it to simplify get_avr64()/set_avr64()
By using the VsrD macro in avr64_offset() the same offset calculation can be
used regardless of the host endian. This allows get_avr64() and set_avr64() to
be simplified accordingly.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Message-Id: <20190307180520.13868-6-mark.cave-ayland@ilande.co.uk>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'scripts/checkpatch.pl')
0 files changed, 0 insertions, 0 deletions
