]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/mips: Replace GET_LMASK() macro by get_lmask(32) function
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Wed, 18 Aug 2021 10:11:30 +0000 (12:11 +0200)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Wed, 25 Aug 2021 11:02:14 +0000 (13:02 +0200)
commit4885b99a6e05d16f40af18a062a5cb45fa92ec27
tree9ccc724ff7329e8c5bdc50ad8023d6dd2978ca37
parent5b3cc34c346e216c81f0750f586a016c33f2e08f
target/mips: Replace GET_LMASK() macro by get_lmask(32) function

The target endianess information is stored in the BigEndian
bit of the Config0 register in CP0.

Replace the GET_LMASK() macro by an inlined get_lmask() function,
passing CPUMIPSState and the word size as argument.

We can remove one use of the TARGET_WORDS_BIGENDIAN definition.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210818215517.2560994-3-f4bug@amsat.org>
target/mips/tcg/ldst_helper.c