diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2022-04-30 22:50:01 -0700 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2022-05-05 09:35:52 +0100 |
commit | 7d00b4d8d382558f61a168180be6230cda0905d6 (patch) | |
tree | a2d9c7c87058125e7436d51229141e2486ea5133 /target | |
parent | 1859f8c35abd06de15e58f0996ae11ae366f50d8 (diff) | |
download | qemu-7d00b4d8d382558f61a168180be6230cda0905d6.zip qemu-7d00b4d8d382558f61a168180be6230cda0905d6.tar.gz qemu-7d00b4d8d382558f61a168180be6230cda0905d6.tar.bz2 |
target/arm: Remove HOST_BIG_ENDIAN ifdef in add_cpreg_to_hashtable
Since e03b56863d2bc, our host endian indicator is unconditionally
set, which means that we can use a normal C condition.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20220501055028.646596-20-richard.henderson@linaro.org
[PMM: quote correct git hash in commit message]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target')
-rw-r--r-- | target/arm/helper.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/target/arm/helper.c b/target/arm/helper.c index 8161295..14ea5ca 100644 --- a/target/arm/helper.c +++ b/target/arm/helper.c @@ -8602,12 +8602,9 @@ static void add_cpreg_to_hashtable(ARMCPU *cpu, const ARMCPRegInfo *r, r2->type |= ARM_CP_ALIAS; } - if (r->state == ARM_CP_STATE_BOTH) { -#if HOST_BIG_ENDIAN - if (r2->fieldoffset) { - r2->fieldoffset += sizeof(uint32_t); - } -#endif + if (HOST_BIG_ENDIAN && + r->state == ARM_CP_STATE_BOTH && r2->fieldoffset) { + r2->fieldoffset += sizeof(uint32_t); } } |