Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i#5725: Set consistent x86 vendor decoding default #6438

Merged
merged 3 commits into from
Nov 10, 2023

Conversation

derekbruening
Copy link
Contributor

@derekbruening derekbruening commented Nov 9, 2023

If we initialize the proc_get_vendor() to VENDOR_UNKNOWN we get contradictory decoding results for x86 opcodes that vary between VENDOR_AMD and VENDOR_INTEL (because some of our decoding code checks one and some checks the other), so we pick one (VENDOR_INTEL) for a stable self-consistent default. We set this statically and we override the underlying hardware in proc_init(). The user can use proc_set_vendor() (after an explicit init) to override if desired.

Fixes #5725

If we initialize the proc_get_vendor() to VENDOR_UNKNOWN we get
contradictory decoding results for x86 opcodes that vary between
VENDOR_AMD and VENDOR_INTEL (because some of our decoding code checks
one and some checks the other), so we pick one (VENDOR_INTEL) for a
stable self-consistent default.

Fixes #5725
@derekbruening
Copy link
Contributor Author

ub22 x32: off.simple #6416
ub20 x64: floatpc #2267
win32: floatpc #2267

The api.dis and decenc #6411, #5725 did not show up (and were fixed in local AMD testing).

@derekbruening derekbruening merged commit 8bc660c into master Nov 10, 2023
11 of 15 checks passed
@derekbruening derekbruening deleted the i5725-amd-decode-tests branch November 10, 2023 00:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

strange decoder and other test failures in some x86-64 GA CI runs
2 participants