unicorn/qemu/target
Michael Weiser 5fabebabee
target/arm: Fix stlxp for aarch64_be
ldxp loads two consecutive doublewords from memory regardless of CPU
endianness. On store, stlxp currently assumes to work with a 128bit
value and consequently switches order in big-endian mode. With this
change it packs the doublewords in reverse order in anticipation of the
128bit big-endian store operation interposing them so they end up in
memory in the right order. This makes it work for both MTTCG and !MTTCG.
It effectively implements the ARM ARM STLXP operation pseudo-code:

data = if BigEndian() then el1:el2 else el2:el1;

With this change an aarch64_be Linux 4.14.4 kernel succeeds to boot up
in system emulation mode.

Backports commit 0785557f8811133bd69be02aeccf018d47a26373 from qemu
2018-03-06 08:48:12 -05:00
..
arm target/arm: Fix stlxp for aarch64_be 2018-03-06 08:48:12 -05:00
i386 tcg: Remove TCGV_UNUSED* and TCGV_IS_UNUSED* 2018-03-05 15:58:15 -05:00
m68k target/m68k: add the Interrupt Stack Pointer 2018-03-06 08:41:07 -05:00
mips tcg: Remove TCGV_UNUSED* and TCGV_IS_UNUSED* 2018-03-05 15:58:15 -05:00
sparc target/sparc: remove MemoryRegionSection check code from sparc_cpu_get_phys_page_debug() 2018-03-06 08:42:13 -05:00