fixed alias typo corrupting avx opcodes

This commit is contained in:
Stanislav Shwartsman 2013-08-27 19:45:31 +00:00
parent c5f72033ad
commit 5fe5bf1ed6
2 changed files with 2 additions and 2 deletions

View File

@ -1654,7 +1654,7 @@ modrm_done:
alias = sse_prefix;
}
#if BX_SUPPORT_AVX
else if (attr & BxAliasSSE) {
else if (attr & BxAliasVexW) {
// VexW alias could come with BxPrefixSSE
BX_ASSERT(had_vex != 0 || had_xop != 0);
alias = vex_w;

View File

@ -2085,7 +2085,7 @@ modrm_done:
alias = sse_prefix;
}
#if BX_SUPPORT_AVX
else if (attr & BxAliasSSE) {
else if (attr & BxAliasVexW) {
// VexW alias could come with BxPrefixSSE
BX_ASSERT(had_vex != 0 || had_xop != 0);
alias = vex_w;