OSDN Git Service

Revert "tcg/tci: Use exec/cpu_ldst.h interfaces"
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 27 May 2021 19:24:25 +0000 (12:24 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Sat, 19 Jun 2021 18:08:52 +0000 (11:08 -0700)
commit5183f209eb3730a61adaf5ccfa1a30c807891971
tree575fc5b5846b8104c15e3fe4e373c4390d28202c
parent69acc02a8b341847e38e976ea473d66943d81717
Revert "tcg/tci: Use exec/cpu_ldst.h interfaces"

This reverts commit dc09f047eddec8f4a1991c4f5f4a428d7aa3f2c0.

For tcg, tracepoints are expanded inline in tcg opcodes.
Using a helper which generates a second tracepoint is incorrect.

For system mode, the extraction and re-packing of MemOp and mmu_idx
lost the alignment information from MemOp.  So we were no longer
raising alignment exceptions for !TARGET_ALIGNED_ONLY guests.
This can be seen in tests/tcg/xtensa/test_load_store.S.

For user mode, we must update to the new signature of g2h() so that
the revert compiles.  We can leave set_helper_retaddr for later.

Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/tci.c