Hello, The following series adds fence instruction generation support to TCG. The current work has been rebased on-top of Richard's patch series.
This has been tested and confirmed to fix ordering issues on a x86 host with MTTCG enabled ARMv7 guest using KVM unit tests. Pranith Kumar (13): Introduce TCGOpcode for memory barrier tcg/i386: Add support for fence tcg/aarch64: Add support for fence tcg/arm: Add support for fence tcg/ia64: Add support for fence tcg/mips: Add support for fence tcg/ppc: Add support for fence tcg/s390: Add support for fence tcg/sparc: Add support for fence tcg/tci: Add support for fence target-arm: Generate fences in ARMv7 frontend target-alpha: Generate fence op tcg: Generate fences only for SMP MTTCG guests target-alpha/translate.c | 5 +++-- target-arm/translate.c | 7 +++++-- tcg/README | 17 +++++++++++++++++ tcg/aarch64/tcg-target.inc.c | 7 +++++++ tcg/arm/tcg-target.inc.c | 12 ++++++++++++ tcg/i386/tcg-target.inc.c | 35 +++++++++++++++++++++++++++++++++++ tcg/ia64/tcg-target.inc.c | 5 +++++ tcg/mips/tcg-target.inc.c | 6 ++++++ tcg/ppc/tcg-target.inc.c | 8 ++++++++ tcg/s390/tcg-target.inc.c | 9 +++++++++ tcg/sparc/tcg-target.inc.c | 8 ++++++++ tcg/tcg-op.c | 9 +++++++++ tcg/tcg-op.h | 2 ++ tcg/tcg-opc.h | 2 ++ tcg/tcg.h | 8 ++++++++ tcg/tci/tcg-target.inc.c | 3 +++ tci.c | 3 +++ 17 files changed, 142 insertions(+), 4 deletions(-) -- 2.8.3