]> git.proxmox.com Git - mirror_qemu.git/commit
target/ppc: improve avr64_offset() and use it to simplify get_avr64()/set_avr64()
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Thu, 7 Mar 2019 18:05:18 +0000 (18:05 +0000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 12 Mar 2019 03:33:04 +0000 (14:33 +1100)
commit37da91f163d2ec808cca4f1662499dbe07f858e1
tree7b2bf5ceb0aa28caf3d70479cf10c84947722dd4
parentc82a8a8542bee54824ea83856d33ad7656570a06
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>
target/ppc/cpu.h
target/ppc/translate.c
target/ppc/translate/vmx-impl.inc.c