Commit 1b039c09fe69c9f9c72a4671de60562fb564c02a
1 parent
fbf59244
OS X port
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1007 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
4 additions
and
3 deletions
target-ppc/translate.c
... | ... | @@ -276,11 +276,12 @@ static inline uint32_t MASK (uint32_t start, uint32_t end) |
276 | 276 | return ret; |
277 | 277 | } |
278 | 278 | |
279 | -#if defined(__linux__) | |
279 | +#if defined(__APPLE__) | |
280 | 280 | #define OPCODES_SECTION \ |
281 | - __attribute__ ((section(".opcodes"), unused, aligned (8) )) | |
281 | + __attribute__ ((section("__TEXT,__opcodes"), unused, aligned (8) )) | |
282 | 282 | #else |
283 | -#define OPCODES_SECTION | |
283 | +#define OPCODES_SECTION \ | |
284 | + __attribute__ ((section(".opcodes"), unused, aligned (8) )) | |
284 | 285 | #endif |
285 | 286 | |
286 | 287 | #define GEN_OPCODE(name, op1, op2, op3, invl, _typ) \ | ... | ... |