x86: Fix VEX instruction decoding.
authorGabe Black <gabeblack@google.com>
Fri, 27 Oct 2017 20:46:58 +0000 (13:46 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 31 Oct 2017 02:04:33 +0000 (02:04 +0000)
commit1025ef1598b8b7c3d00b82d30458e375697b8eff
tree4b9b1b351f2295cff6a38aea7edca2c38dc412e5
parent44896ba35b0874b9925ebd7927e196d0eb639b5e
x86: Fix VEX instruction decoding.

When decoding VEX prefixed instructions, the x86 predecoder wasn't walking
past the opcode byte and so was also interpreting it as the modRM byte.

Reported-by: likunxi@fas.harvard.edu
Change-Id: I6d4bdabfa03411704c48d905c50c7b23072fc615
Reviewed-on: https://gem5-review.googlesource.com/5281
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
src/arch/x86/decoder.cc