]> git.ipfire.org Git - thirdparty/qemu.git/commit
tcg/mips: Improve the add2/sub2 command to use TCG_TARGET_REG_BITS
authorAlistair Francis <Alistair.Francis@wdc.com>
Wed, 12 Dec 2018 20:58:11 +0000 (20:58 +0000)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 17 Dec 2018 03:04:44 +0000 (06:04 +0300)
commit161dec9d1b03552e78e5728186eae9cf1dfbe035
treef48693d33b40a41c8d10aa78940baf56c562c2dc
parente1dcf3529d0797b25bb49a20e94b62eb93e7276a
tcg/mips: Improve the add2/sub2 command to use TCG_TARGET_REG_BITS

Instead of hard coding 31 for the shift right use TCG_TARGET_REG_BITS - 1.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <7dfbddf7014a595150aa79011ddb342c3cc17ec3.1544648105.git.alistair.francis@wdc.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/mips/tcg-target.inc.c