提交 933dc6eb 编写于 作者: B bellard

Mac OS X port


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@998 c046a42c-6fe2-441c-8c8c-71466251a162
上级 1e6cae95
...@@ -276,9 +276,15 @@ static inline uint32_t MASK (uint32_t start, uint32_t end) ...@@ -276,9 +276,15 @@ static inline uint32_t MASK (uint32_t start, uint32_t end)
return ret; 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) \ #define GEN_OPCODE(name, op1, op2, op3, invl, _typ) \
__attribute__ ((section(".opcodes"), unused, aligned (8) )) \ OPCODES_SECTION static opcode_t opc_##name = { \
static opcode_t opc_##name = { \
.opc1 = op1, \ .opc1 = op1, \
.opc2 = op2, \ .opc2 = op2, \
.opc3 = op3, \ .opc3 = op3, \
...@@ -290,8 +296,7 @@ static opcode_t opc_##name = { \ ...@@ -290,8 +296,7 @@ static opcode_t opc_##name = { \
} }
#define GEN_OPCODE_MARK(name) \ #define GEN_OPCODE_MARK(name) \
__attribute__ ((section(".opcodes"), unused, aligned (8) )) \ OPCODES_SECTION static opcode_t opc_##name = { \
static opcode_t opc_##name = { \
.opc1 = 0xFF, \ .opc1 = 0xFF, \
.opc2 = 0xFF, \ .opc2 = 0xFF, \
.opc3 = 0xFF, \ .opc3 = 0xFF, \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册