unicorn/qemu/tcg/mips
Jin Guojie 00ccf9cec7
tcg-mips: Add bswap32u and bswap64
Without the mips32r2 instructions to perform swapping, bswap is quite large,
dominating the size of each reverse-endian qemu_ld/qemu_st operation.

Create two subroutines in the prologue block. The subroutines require extra
reserved registers (TCG_TMP[2, 3]). Using these within qemu_ld means that
we need not place additional restrictions on the qemu_ld outputs.

Backports commit 7f54eaa3b78d71cb57e45a719980f9b5ff06d21c from qemu
2018-03-01 12:47:45 -05:00
..
tcg-target.h tcg-mips: Support 64-bit opcodes 2018-03-01 12:46:18 -05:00
tcg-target.inc.c tcg-mips: Add bswap32u and bswap64 2018-03-01 12:47:45 -05:00