aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-07-12 18:39:45 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-07-12 18:39:45 +0000
commit1b039c09fe69c9f9c72a4671de60562fb564c02a (patch)
tree931eb62742f4fc7eb323f879bccc5de3b937678c
parentfbf59244b87852ffac7c3ab6a6d57b3a6326f37c (diff)
OS X port
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1007 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--target-ppc/translate.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/target-ppc/translate.c b/target-ppc/translate.c
index c3706f007e..a2ac41900e 100644
--- a/target-ppc/translate.c
+++ b/target-ppc/translate.c
@@ -276,11 +276,12 @@ static inline uint32_t MASK (uint32_t start, uint32_t end)
return ret;
}
-#if defined(__linux__)
+#if defined(__APPLE__)
#define OPCODES_SECTION \
- __attribute__ ((section(".opcodes"), unused, aligned (8) ))
+ __attribute__ ((section("__TEXT,__opcodes"), unused, aligned (8) ))
#else
-#define OPCODES_SECTION
+#define OPCODES_SECTION \
+ __attribute__ ((section(".opcodes"), unused, aligned (8) ))
#endif
#define GEN_OPCODE(name, op1, op2, op3, invl, _typ) \