target/mips: MXU: Add handlers for logic instructions
commitb621f0187ef789aeef733cf79e5ac83984752394
authorAleksandar Markovic <amarkovic@wavecomp.com>
Mon, 31 Dec 2018 12:14:13 +0000 (31 13:14 +0100)
committerAleksandar Markovic <amarkovic@wavecomp.com>
Thu, 3 Jan 2019 16:52:52 +0000 (3 17:52 +0100)
treee9c5fc947b34e71d12bb007981c5e28711e58b18
parent84e2c895b12fb7056daeb7e5094656eae7b50d3d
target/mips: MXU: Add handlers for logic instructions

Add translation handlers for four logic MXU instructions.

It should be noted that there is an error in MXU documentation (dated
June 2017) regarding opcodes for this group of instructions. This was
confirmed by running tests on hardware, and also by looking up other
related public source trees (binutils, Android NDK). In initial MXU
patches to QEMU, opcodes for MXU logic instructions were created to
be in accordance with the MXU documentation, therefore the error from
was propagated. This patch corrects that, changing the involved code.
Besides that, as MXU was designed and implemented only for 32-bit
CPUs, corresponding preprosessor conditions were added around MXU
code, which allows more flexible implementation of MXU handlers.

Reviewed-by: Stefan Markovic <smarkovic@wavecomp.com>
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
target/mips/translate.c