target/xtensa: fix s32c1i TCGMemOp flags
commit7a54cfbcee8dd7aa87ce655a321b622107556326
authorMax Filippov <jcmvbkbc@gmail.com>
Tue, 11 Sep 2018 01:23:35 +0000 (10 18:23 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Mon, 17 Sep 2018 18:09:04 +0000 (17 11:09 -0700)
treed68ec569f6bd6269526a658aa32a89745d72d720
parentf68774ccd8174dc80208dcb3b24924c7c1c726f9
target/xtensa: fix s32c1i TCGMemOp flags

s32c1i must load and store value with target endianness, not host.
This results in an infinite loop in atomic cmpxchg sequences when target
endianness doesn't match host endianness.

Fixes: 9fb40342d4b3 ("target/xtensa: support MTTCG")
Cc: qemu-stable@nongnu.org
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
target/xtensa/translate.c