intel: decoder: split out getting the next field and decoding it
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 2 Aug 2017 21:33:28 +0000 (22:33 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 1 Nov 2017 13:19:20 +0000 (13:19 +0000)
commitf5e5ca1e210c2e0f505ea154ca553275157dda73
tree25e0a6ef667d1383b886ed3740d699f455b86108
parentffa011d1e3e6f57ce8a546c6a5210b15bde582d1
intel: decoder: split out getting the next field and decoding it

Due to the new way we handle fields, we need *not* to forget the first
field when decoding instructions. The issue was that the advance
function was called first and skipped the first field.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Scott D Phillips <scott.d.phillips@intel.com>
src/intel/common/gen_decoder.c