On 3/7/19 10:05 AM, Mark Cave-Ayland wrote: > All TCG vector operations require pointers to the base address of the vector > rather than separate access to the top and bottom 64-bits. Convert the VMX TCG > instructions to use a new avr_full_offset() function instead of avr64_offset() > which can then itself be written as a simple wrapper onto vsr_full_offset(). > > This same function can also reused in cpu_avr_ptr() to avoid having more than > one copy of the offset calculation logic. > > Signed-off-by: Mark Cave-Ayland <mark.cave-ayl...@ilande.co.uk> > --- > target/ppc/cpu.h | 12 +++++++++++- > target/ppc/translate/vmx-impl.inc.c | 22 +++++++++++----------- > target/ppc/translate/vsx-impl.inc.c | 5 ----- > 3 files changed, 22 insertions(+), 17 deletions(-)
Reviewed-by: Richard Henderson <richard.hender...@linaro.org> r~