OSDN Git Service

intel/decoder: Use 'DWord Length' and 'bias' fields for packet length.
authorToni Lönnberg <toni.lonnberg@intel.com>
Mon, 29 Oct 2018 11:56:44 +0000 (13:56 +0200)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 30 Oct 2018 12:43:00 +0000 (12:43 +0000)
commitd5a938c58d058270990d5e077ed5b72384c001de
tree3eed44fba776089906f8f7891030bccab6748109
parenta09cbaffbfb1dcf0b6ae41bbba21ae9bfdfb8a3b
intel/decoder: Use 'DWord Length' and 'bias' fields for packet length.

Use the 'DWord Length' and 'bias' fields from the instruction definition to
parse the packet length from the command stream when possible. The hardcoded
mechanism is used whenever an instruction doesn't have this field.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/common/gen_decoder.c
src/intel/common/gen_decoder.h