unicorn icon indicating copy to clipboard operation
unicorn copied to clipboard

tcg is generating AVX code on platforms that don't support AVX instruction set and causing #UD exception.

Open hzqst opened this issue 3 years ago • 3 comments

Description tcg is generating the following code on platforms that don't support AVX instruction and causing the program termination due to #UD exception (at vzeroupper). image

How to repro the issue on Windows bcdedit /set xsavedisable 1, reboot and run test_x86.exe

How to repro the issue if I don't want to change bcd configs get a chip that don't support AVX instruction set. e.g. Intel G4560

Current unexcepted result multiple unhandled #UD exceptions throwed while running test_x86.exe : 333

Excepted result No exceptions shoule be there while running test_x86.exe.

Version 2.0.0.rc1 ~ 2.0.0.rc7

hzqst avatar Apr 23 '22 13:04 hzqst

Confirmed it's a known bug since AVX1/AVX2 is not correctly detected.

wtdcode avatar Apr 23 '22 21:04 wtdcode

Hi, is there a workaround for this? Can I hardcode that detection to compile a working version for my laptop or something?

LFriede avatar Jun 10 '22 18:06 LFriede

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days.

github-actions[bot] avatar Aug 10 '22 05:08 github-actions[bot]

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days.

github-actions[bot] avatar Oct 10 '22 05:10 github-actions[bot]

having the same issue, any work around?

invlpg avatar Nov 09 '22 02:11 invlpg

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days.

github-actions[bot] avatar Jan 08 '23 05:01 github-actions[bot]

Fixed in 3199dd88dee094c3fc456971e5f469c22cb1160d

wtdcode avatar Feb 07 '23 00:02 wtdcode

Fixed in 3199dd8

did this get merged into master yet? im still having issues with this

CR3Swapper avatar Sep 01 '23 08:09 CR3Swapper

Fixed in 3199dd8

did this get merged into master yet? im still having issues with this

Not yet, 2.1.0 still on the way.

wtdcode avatar Sep 01 '23 08:09 wtdcode