aboutsummaryrefslogtreecommitdiff
path: root/target-ppc/exec.h
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2006-12-23 00:49:32 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2006-12-23 00:49:32 +0000
commit70ead4341212ecb3181d5c780284cef0fc7b51fc (patch)
tree18a3130f15211d95b66e319eec1aab7a929f8d1b /target-ppc/exec.h
parent5bf089345be113089881163914a4d448f5365480 (diff)
downloadqemu-70ead4341212ecb3181d5c780284cef0fc7b51fc.zip
qemu-70ead4341212ecb3181d5c780284cef0fc7b51fc.tar.gz
qemu-70ead4341212ecb3181d5c780284cef0fc7b51fc.tar.bz2
Use memory barriers in FORCE_RET / RETURN.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2273 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-ppc/exec.h')
-rw-r--r--target-ppc/exec.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/target-ppc/exec.h b/target-ppc/exec.h
index 3ef0968..89171f9 100644
--- a/target-ppc/exec.h
+++ b/target-ppc/exec.h
@@ -38,9 +38,9 @@ register uint32_t T2 asm(AREG3);
#define FT2 (env->ft2)
#if defined (DEBUG_OP)
-#define RETURN() __asm__ __volatile__("nop");
+# define RETURN() __asm__ __volatile__("nop" : : : "memory");
#else
-#define RETURN() __asm__ __volatile__("");
+# define RETURN() __asm__ __volatile__("" : : : "memory");
#endif
#include "cpu.h"