summary refs log tree commit diff stats
path: root/tcg/i386/tcg-target-mo.h
blob: 7567dc7248b6dc5b89fe48c3b63f7c8a796ae0ca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* SPDX-License-Identifier: MIT */
/*
 * Define target-specific memory model
 * Copyright (c) 2008 Fabrice Bellard
 */

#ifndef TCG_TARGET_MO_H
#define TCG_TARGET_MO_H

/*
 * This defines the natural memory order supported by this architecture
 * before guarantees made by various barrier instructions.
 *
 * The x86 has a pretty strong memory ordering which only really
 * allows for some stores to be re-ordered after loads.
 */
#define TCG_TARGET_DEFAULT_MO (TCG_MO_ALL & ~TCG_MO_ST_LD)

#endif