x86: enable SSE. this fixes issue #3
This commit is contained in:
parent
4701fb80b4
commit
7ca9a07e1b
|
@ -123,11 +123,11 @@ void x86_reg_reset(uch handle)
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
case UC_MODE_32:
|
case UC_MODE_32:
|
||||||
env->hflags |= HF_CS32_MASK | HF_SS32_MASK;
|
env->hflags |= HF_CS32_MASK | HF_SS32_MASK | HF_OSFXSR_MASK;
|
||||||
env->cr[0] = CR0_PE_MASK; // protected mode
|
env->cr[0] = CR0_PE_MASK; // protected mode
|
||||||
break;
|
break;
|
||||||
case UC_MODE_64:
|
case UC_MODE_64:
|
||||||
env->hflags |= HF_CS32_MASK | HF_SS32_MASK | HF_CS64_MASK | HF_LMA_MASK;
|
env->hflags |= HF_CS32_MASK | HF_SS32_MASK | HF_CS64_MASK | HF_LMA_MASK | HF_OSFXSR_MASK;
|
||||||
env->hflags &= ~(HF_ADDSEG_MASK);
|
env->hflags &= ~(HF_ADDSEG_MASK);
|
||||||
env->cr[0] = CR0_PE_MASK; // protected mode
|
env->cr[0] = CR0_PE_MASK; // protected mode
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue