target/mips: Refactor and fix COPY_U.<B|H|W> instructions
commit41d288582782cf8d63241ecb6efa1e4160fe78f7
authorMateja Marjanovic <Mateja.Marjanovic@rt-rk.com>
Tue, 2 Apr 2019 13:43:24 +0000 (2 15:43 +0200)
committerAleksandar Markovic <amarkovic@wavecomp.com>
Sun, 26 May 2019 15:33:05 +0000 (26 17:33 +0200)
tree5eff3d9ace8a818e0a130087e97f83e1365d5f2e
parent631c467461496dcf6d6a3e4c3d27a1433e96868e
target/mips: Refactor and fix COPY_U.<B|H|W> instructions

The old version of the helper for the COPY_U.<B|H|W> MSA instructions
has been replaced with four helpers that don't use switch, and change
the endianness of the given index, when executed on a big endian host.

Signed-off-by: Mateja Marjanovic <mateja.marjanovic@rt-rk.com>
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Reviewed-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Message-Id: <1554212605-16457-5-git-send-email-mateja.marjanovic@rt-rk.com>
target/mips/helper.h
target/mips/msa_helper.c
target/mips/translate.c