x86: Fix the multiplication microops.
authorGabe Black <gabeblack@google.com>
Tue, 16 May 2017 02:39:51 +0000 (19:39 -0700)
committerAnthony Gutierrez <anthony.gutierrez@amd.com>
Tue, 16 May 2017 20:02:03 +0000 (20:02 +0000)
commitc1ec4c4f8c22864e6e6c0d5a6d833f413d3a58d7
tree671a151f495a9f277a336dae0cc0e2e3992d1050
parent05c486c5ebf95cffc7435c16c45120a28c42b2fb
x86: Fix the multiplication microops.

If the operands were 64 bit, an intermediate calculation could lose a
carry bit. This change rearranges that intermediate calculation if the
operand width is large, and reworks the microop implementation in general
in an attempt to make it easier to understand.

Change-Id: Ib36333f3f2695a33cd9623e43682de22ebd2e7ea
Reviewed-on: https://gem5-review.googlesource.com/3381
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-by: Anthony Gutierrez <anthony.gutierrez@amd.com>
Maintainer: Anthony Gutierrez <anthony.gutierrez@amd.com>
src/arch/x86/isa/microops/regop.isa