Use memory barriers in FORCE_RET / RETURN.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2273 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
ths 2006-12-23 00:49:32 +00:00
parent 5bf089345b
commit 70ead43412
3 changed files with 5 additions and 5 deletions

View file

@ -188,7 +188,7 @@ extern int printf(const char *, ...);
#endif
/* force GCC to generate only one epilog at the end of the function */
#define FORCE_RET() asm volatile ("");
#define FORCE_RET() __asm__ __volatile__("" : : : "memory");
#ifndef OPPROTO
#define OPPROTO