bochs: #undef all macros from dis_tables.h

The file dis_tables.h does define several macros with very generic
names (I1, I2). These macros interfere in certain situations with the
boost headers. Therefore, we simply undef all those xmacro arguments,
like it should be done.

Change-Id: Iddf74f04ec016a7ea5de5a66543b670a8992a5d6
This commit is contained in:
Christian Dietrich
2014-10-21 17:06:12 +02:00
parent c24e54f2d4
commit cafbe1df75

View File

@ -195,9 +195,138 @@ const struct BxDisasmOpcodeInfo_t
//DanceOS
// workaround for include file clash with cpu/instr.h in conjunction with AspectC++
#undef Apw
#undef Apd
#undef AL_Reg
#undef CL_Reg
#undef AX_Reg
#undef DX_Reg
#undef EAX_Reg
#undef RAX_Reg
#undef CS
#undef DS
#undef ES
#undef SS
#undef FS
#undef GS
#undef Sw
#undef Td
#undef Cd
#undef Cq
#undef Dd
#undef Dq
#undef Reg8
#undef RX
#undef ERX
#undef RRX
#undef Eb
#undef Ew
#undef Ed
#undef Eq
#undef Ey
#undef Ebd
#undef Ewd
#undef Gb
#undef Gw
#undef Gd
#undef Gq
#undef Gy
#undef I1
#undef Ib
#undef Iw
#undef Id
#undef Iq
#undef Iw
#undef Ib
#undef IbIb
#undef IwIb
#undef sIbw
#undef sIbd
#undef sIbq
#undef sIdq
#undef ST0
#undef STi
#undef Rw
#undef Rd
#undef Rq
#undef Ry
#undef Pq
#undef Qd
#undef Qq
#undef Nq
#undef Vq
#undef Vdq
#undef Vss
#undef Vsd
#undef Vps
#undef Vpd
#undef Ups
#undef Upd
#undef Udq
#undef Ww
#undef Wd
#undef Wq
#undef Wdq
#undef Wss
#undef Wsd
#undef Wps
#undef Wpd
#undef Ob
#undef Ow
#undef Od
#undef Oq
#undef Ma
#undef Mp
#undef Ms
#undef Mx
#undef Mb
#undef Mw
#undef Md
#undef Mq
#undef Mt
#undef Mdq
#undef Mps
#undef Mpd
#undef Mss
#undef Msd
#undef Xb
#undef Xw
#undef Xd
#undef Xq
#undef Yb
#undef Yw
#undef Yd
#undef Yq
#undef sYq
#undef sYdq
#undef Jb
#undef Jw
#undef Jd
#undef XX
#endif