|
@@ -79,7 +79,7 @@
|
|
|
|
|
|
/* constant arrays to do several instructions in just one function */
|
|
|
|
|
|
-#ifdef DEBUG
|
|
|
+#ifdef CONFIG_X86EMU_DEBUG
|
|
|
static char *x86emu_GenOpName[8] = {
|
|
|
"ADD", "OR", "ADC", "SBB", "AND", "SUB", "XOR", "CMP"};
|
|
|
#endif
|
|
@@ -160,7 +160,7 @@ static u32 (*opcD1_long_operation[])(u32 s, u8 d) =
|
|
|
sar_long,
|
|
|
};
|
|
|
|
|
|
-#ifdef DEBUG
|
|
|
+#ifdef CONFIG_X86EMU_DEBUG
|
|
|
|
|
|
static char *opF6_names[8] =
|
|
|
{ "TEST\t", "", "NOT\t", "NEG\t", "MUL\t", "IMUL\t", "DIV\t", "IDIV\t" };
|
|
@@ -1281,7 +1281,7 @@ void x86emuOp_opc80_byte_RM_IMM(u8 X86EMU_UNUSED(op1))
|
|
|
*/
|
|
|
START_OF_INSTR();
|
|
|
FETCH_DECODE_MODRM(mod, rh, rl);
|
|
|
-#ifdef DEBUG
|
|
|
+#ifdef CONFIG_X86EMU_DEBUG
|
|
|
if (DEBUG_DECODE()) {
|
|
|
/* XXX DECODE_PRINTF may be changed to something more
|
|
|
general, so that it is important to leave the strings
|
|
@@ -1359,7 +1359,7 @@ void x86emuOp_opc81_word_RM_IMM(u8 X86EMU_UNUSED(op1))
|
|
|
*/
|
|
|
START_OF_INSTR();
|
|
|
FETCH_DECODE_MODRM(mod, rh, rl);
|
|
|
-#ifdef DEBUG
|
|
|
+#ifdef CONFIG_X86EMU_DEBUG
|
|
|
if (DEBUG_DECODE()) {
|
|
|
/* XXX DECODE_PRINTF may be changed to something more
|
|
|
general, so that it is important to leave the strings
|
|
@@ -1475,7 +1475,7 @@ void x86emuOp_opc82_byte_RM_IMM(u8 X86EMU_UNUSED(op1))
|
|
|
*/
|
|
|
START_OF_INSTR();
|
|
|
FETCH_DECODE_MODRM(mod, rh, rl);
|
|
|
-#ifdef DEBUG
|
|
|
+#ifdef CONFIG_X86EMU_DEBUG
|
|
|
if (DEBUG_DECODE()) {
|
|
|
/* XXX DECODE_PRINTF may be changed to something more
|
|
|
general, so that it is important to leave the strings
|
|
@@ -1551,7 +1551,7 @@ void x86emuOp_opc83_word_RM_IMM(u8 X86EMU_UNUSED(op1))
|
|
|
*/
|
|
|
START_OF_INSTR();
|
|
|
FETCH_DECODE_MODRM(mod, rh, rl);
|
|
|
-#ifdef DEBUG
|
|
|
+#ifdef CONFIG_X86EMU_DEBUG
|
|
|
if (DEBUG_DECODE()) {
|
|
|
/* XXX DECODE_PRINTF may be changed to something more
|
|
|
general, so that it is important to leave the strings
|
|
@@ -3083,7 +3083,7 @@ void x86emuOp_opcC0_byte_RM_MEM(u8 X86EMU_UNUSED(op1))
|
|
|
*/
|
|
|
START_OF_INSTR();
|
|
|
FETCH_DECODE_MODRM(mod, rh, rl);
|
|
|
-#ifdef DEBUG
|
|
|
+#ifdef CONFIG_X86EMU_DEBUG
|
|
|
if (DEBUG_DECODE()) {
|
|
|
/* XXX DECODE_PRINTF may be changed to something more
|
|
|
general, so that it is important to leave the strings
|
|
@@ -3158,7 +3158,7 @@ void x86emuOp_opcC1_word_RM_MEM(u8 X86EMU_UNUSED(op1))
|
|
|
*/
|
|
|
START_OF_INSTR();
|
|
|
FETCH_DECODE_MODRM(mod, rh, rl);
|
|
|
-#ifdef DEBUG
|
|
|
+#ifdef CONFIG_X86EMU_DEBUG
|
|
|
if (DEBUG_DECODE()) {
|
|
|
/* XXX DECODE_PRINTF may be changed to something more
|
|
|
general, so that it is important to leave the strings
|
|
@@ -3630,7 +3630,7 @@ void x86emuOp_opcD0_byte_RM_1(u8 X86EMU_UNUSED(op1))
|
|
|
*/
|
|
|
START_OF_INSTR();
|
|
|
FETCH_DECODE_MODRM(mod, rh, rl);
|
|
|
-#ifdef DEBUG
|
|
|
+#ifdef CONFIG_X86EMU_DEBUG
|
|
|
if (DEBUG_DECODE()) {
|
|
|
/* XXX DECODE_PRINTF may be changed to something more
|
|
|
general, so that it is important to leave the strings
|
|
@@ -3701,7 +3701,7 @@ void x86emuOp_opcD1_word_RM_1(u8 X86EMU_UNUSED(op1))
|
|
|
*/
|
|
|
START_OF_INSTR();
|
|
|
FETCH_DECODE_MODRM(mod, rh, rl);
|
|
|
-#ifdef DEBUG
|
|
|
+#ifdef CONFIG_X86EMU_DEBUG
|
|
|
if (DEBUG_DECODE()) {
|
|
|
/* XXX DECODE_PRINTF may be changed to something more
|
|
|
general, so that it is important to leave the strings
|
|
@@ -3803,7 +3803,7 @@ void x86emuOp_opcD2_byte_RM_CL(u8 X86EMU_UNUSED(op1))
|
|
|
*/
|
|
|
START_OF_INSTR();
|
|
|
FETCH_DECODE_MODRM(mod, rh, rl);
|
|
|
-#ifdef DEBUG
|
|
|
+#ifdef CONFIG_X86EMU_DEBUG
|
|
|
if (DEBUG_DECODE()) {
|
|
|
/* XXX DECODE_PRINTF may be changed to something more
|
|
|
general, so that it is important to leave the strings
|
|
@@ -3876,7 +3876,7 @@ void x86emuOp_opcD3_word_RM_CL(u8 X86EMU_UNUSED(op1))
|
|
|
*/
|
|
|
START_OF_INSTR();
|
|
|
FETCH_DECODE_MODRM(mod, rh, rl);
|
|
|
-#ifdef DEBUG
|
|
|
+#ifdef CONFIG_X86EMU_DEBUG
|
|
|
if (DEBUG_DECODE()) {
|
|
|
/* XXX DECODE_PRINTF may be changed to something more
|
|
|
general, so that it is important to leave the strings
|
|
@@ -4859,7 +4859,7 @@ void x86emuOp_opcFE_byte_RM(u8 X86EMU_UNUSED(op1))
|
|
|
/* Yet another special case instruction. */
|
|
|
START_OF_INSTR();
|
|
|
FETCH_DECODE_MODRM(mod, rh, rl);
|
|
|
-#ifdef DEBUG
|
|
|
+#ifdef CONFIG_X86EMU_DEBUG
|
|
|
if (DEBUG_DECODE()) {
|
|
|
/* XXX DECODE_PRINTF may be changed to something more
|
|
|
general, so that it is important to leave the strings
|
|
@@ -4923,7 +4923,7 @@ void x86emuOp_opcFF_word_RM(u8 X86EMU_UNUSED(op1))
|
|
|
/* Yet another special case instruction. */
|
|
|
START_OF_INSTR();
|
|
|
FETCH_DECODE_MODRM(mod, rh, rl);
|
|
|
-#ifdef DEBUG
|
|
|
+#ifdef CONFIG_X86EMU_DEBUG
|
|
|
if (DEBUG_DECODE()) {
|
|
|
/* XXX DECODE_PRINTF may be changed to something more
|
|
|
general, so that it is important to leave the strings
|