libipt, ild: fix a0-a3 MOV decode

The width of the displacement operand of the a0-a3 MOV instruction depends on
the address-size, not the operand-size.  Fix the respective case in
compute_disp_dec() and add helper functions to determine the effective address
size.

We seem to have gotten this wrong also in our ild unit tests.  Fix them and add
some more.

Change-Id: Ib2b5e57884ee8b2faeefb45959ea3ef2e433385a
Signed-off-by: Markus Metzger <markus.t.metzger@intel.com>
2 files changed
tree: cb1d9abd88baf5c0ae27e27a5657cfa802859257
  1. doc/
  2. include/
  3. libipt/
  4. ptunit/
  5. .gitignore
  6. CMakeLists.txt
  7. LICENSE
  8. README