aboutsummaryrefslogtreecommitdiff
path: root/target-ppc
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-07-10 15:33:29 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-07-10 15:33:29 +0000
commit933dc6ebc4b908be93929ac80399ba315ba626cd (patch)
treec7a0622113f49ea1b7d4e933e096756995e28585 /target-ppc
parent1e6cae953d6a37216359b79e05d23e1bf4dc6bbe (diff)
Mac OS X port
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@998 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-ppc')
-rw-r--r--target-ppc/translate.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/target-ppc/translate.c b/target-ppc/translate.c
index e09e9a7fd1..c3706f007e 100644
--- a/target-ppc/translate.c
+++ b/target-ppc/translate.c
@@ -276,9 +276,15 @@ static inline uint32_t MASK (uint32_t start, uint32_t end)
return ret;
}
+#if defined(__linux__)
+#define OPCODES_SECTION \
+ __attribute__ ((section(".opcodes"), unused, aligned (8) ))
+#else
+#define OPCODES_SECTION
+#endif
+
#define GEN_OPCODE(name, op1, op2, op3, invl, _typ) \
-__attribute__ ((section(".opcodes"), unused, aligned (8) )) \
-static opcode_t opc_##name = { \
+OPCODES_SECTION static opcode_t opc_##name = { \
.opc1 = op1, \
.opc2 = op2, \
.opc3 = op3, \
@@ -290,8 +296,7 @@ static opcode_t opc_##name = { \
}
#define GEN_OPCODE_MARK(name) \
-__attribute__ ((section(".opcodes"), unused, aligned (8) )) \
-static opcode_t opc_##name = { \
+OPCODES_SECTION static opcode_t opc_##name = { \
.opc1 = 0xFF, \
.opc2 = 0xFF, \
.opc3 = 0xFF, \