Enable correct handling of the BTS instruction (opcode 0f ab) The code was

there but #ifdefed out. Insead of BTS, BT was executed. This patch
    enables the BTS function and hooks it up the the correct opcode. (ATI
    Technologies Inc.)
This commit is contained in:
Felix Kuehling 2006-03-15 18:43:32 +00:00
parent b726aa502a
commit 21f7f2fb11
2 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,12 @@
2006-03-15 Felix Kuehling <fkuehlin@ati.com>
* hw/xfree86/x86emu/ops2.c: (x86emuOp2_bts_R):
Enable correct handling of the BTS instruction (opcode 0f ab)
The code was there but #ifdefed out. Insead of BTS, BT was executed.
This patch enables the BTS function and hooks it up the the correct
opcode.
(ATI Technologies Inc.)
2006-03-15 Felix Kuehling <fxkuehl@gmx.de>
* GL/mesa/shader/slang/Makefile.am:

View File

@ -699,10 +699,9 @@ static void x86emuOp2_pop_GS(u8 X86EMU_UNUSED(op2))
END_OF_INSTR();
}
#if 0
/****************************************************************************
REMARKS:
Handles opcode 0x0f,0xaa
Handles opcode 0x0f,0xab
****************************************************************************/
static void x86emuOp2_bts_R(u8 X86EMU_UNUSED(op2))
{
@ -838,7 +837,6 @@ static void x86emuOp2_bts_R(u8 X86EMU_UNUSED(op2))
DECODE_CLEAR_SEGOVR();
END_OF_INSTR();
}
#endif
/****************************************************************************
REMARKS:
@ -2711,7 +2709,7 @@ void (*x86emu_optab2[256])(u8) =
/* 0xa8 */ x86emuOp2_push_GS,
/* 0xa9 */ x86emuOp2_pop_GS,
/* 0xaa */ x86emuOp2_illegal_op,
/* 0xab */ x86emuOp2_bt_R,
/* 0xab */ x86emuOp2_bts_R,
/* 0xac */ x86emuOp2_shrd_IMM,
/* 0xad */ x86emuOp2_shrd_CL,
/* 0xae */ x86emuOp2_illegal_op,