OSDN Git Service

target/mips: Call cpu_is_bigendian & inline GET_OFFSET in ld/st helpers
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Wed, 18 Aug 2021 10:10:53 +0000 (12:10 +0200)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Wed, 25 Aug 2021 11:02:14 +0000 (13:02 +0200)
commit5b3cc34c346e216c81f0750f586a016c33f2e08f
tree7c08d07f007a111c626be96ced9d28e66b983704
parent761533fc9a8df2e7d276b7e1fc22cad7d0fd0352
target/mips: Call cpu_is_bigendian & inline GET_OFFSET in ld/st helpers

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

As a first step, inline the GET_OFFSET() macro, calling
cpu_is_bigendian() to get the 'direction' of the offset.

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