tcg: Add tcg target default memory ordering

Backports commit 71650df7b0ee0600308810a267a123b971b3d533 from qemu
This commit is contained in:
Pranith Kumar 2018-03-04 13:22:34 -05:00 committed by Lioncash
parent b9f06be41d
commit 862bbef07d
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7
6 changed files with 12 additions and 0 deletions

View file

@ -117,4 +117,6 @@ static inline void flush_icache_range(uintptr_t start, uintptr_t stop)
__builtin___clear_cache((char *)start, (char *)stop); __builtin___clear_cache((char *)start, (char *)stop);
} }
#define TCG_TARGET_DEFAULT_MO (0)
#endif /* AARCH64_TCG_TARGET_H */ #endif /* AARCH64_TCG_TARGET_H */

View file

@ -135,4 +135,6 @@ static inline void flush_icache_range(uintptr_t start, uintptr_t stop)
__builtin___clear_cache((char *) start, (char *) stop); __builtin___clear_cache((char *) start, (char *) stop);
} }
#define TCG_TARGET_DEFAULT_MO (0)
#endif #endif

View file

@ -206,4 +206,6 @@ static inline void flush_icache_range(uintptr_t start, uintptr_t stop)
cacheflush ((void *)start, stop-start, ICACHE); cacheflush ((void *)start, stop-start, ICACHE);
} }
#define TCG_TARGET_DEFAULT_MO (0)
#endif #endif

View file

@ -125,4 +125,6 @@ extern bool have_isa_3_00;
void flush_icache_range(uintptr_t start, uintptr_t stop); void flush_icache_range(uintptr_t start, uintptr_t stop);
#define TCG_TARGET_DEFAULT_MO (0)
#endif #endif

View file

@ -133,6 +133,8 @@ extern uint64_t s390_facilities;
#define TCG_TARGET_EXTEND_ARGS 1 #define TCG_TARGET_EXTEND_ARGS 1
#define TCG_TARGET_DEFAULT_MO (TCG_MO_ALL & ~TCG_MO_ST_LD)
enum { enum {
TCG_AREG0 = TCG_REG_R10, TCG_AREG0 = TCG_REG_R10,
}; };

View file

@ -162,6 +162,8 @@ extern bool use_vis3_instructions;
#define TCG_AREG0 TCG_REG_I0 #define TCG_AREG0 TCG_REG_I0
#define TCG_TARGET_DEFAULT_MO (0)
#ifdef _MSC_VER #ifdef _MSC_VER
#include <windows.h> #include <windows.h>
static inline void flush_icache_range(uintptr_t start, uintptr_t stop) static inline void flush_icache_range(uintptr_t start, uintptr_t stop)