1
0
Fork 0

reg_eip is 32 bit(jmarsh)

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3856
This commit is contained in:
Peter Veenstra 2014-01-12 12:54:58 +00:00
parent 3ddbfe949a
commit 7c25fb4684

View file

@ -490,7 +490,8 @@ static INLINE void dyn_set_eip_end(void) {
// set reg_eip to the start of the next instruction plus an offset (imm)
static INLINE void dyn_set_eip_end(HostReg reg,Bit32u imm=0) {
gen_mov_word_to_reg(reg,&reg_eip,decode.big_op);
gen_mov_word_to_reg(reg,&reg_eip,true); //get_extend_word will mask off the upper bits
//gen_mov_word_to_reg(reg,&reg_eip,decode.big_op);
gen_add_imm(reg,(Bit32u)(decode.code-decode.code_start+imm));
if (!decode.big_op) gen_extend_word(false,reg);
}