unicorn-engine / unicorn

Unicorn CPU emulator framework (ARM, AArch64, M68K, Mips, Sparc, PowerPC, RiscV, S390x, TriCore, X86)
http://www.unicorn-engine.org
GNU General Public License v2.0
7.67k stars 1.35k forks source link

How to update MXCSR automatically? #2006

Open wtdcode opened 2 months ago

wtdcode commented 2 months ago

Discussed in https://github.com/unicorn-engine/unicorn/discussions/1981

Originally posted by **ALanovaya** July 23, 2024 I am emulating code on x86 that contains instructions working with floating point numbers, but for some reason during emulation the mxcsr register is not updated in any way, although I specifically emulated examples (for example, division by zero), where mxcsr was definitely supposed to change, but this did not happen Why is that ?