arch-x86: Use popCount from bitfields.hh.
authorGabe Black <gabe.black@gmail.com>
Sat, 13 Feb 2021 01:25:24 +0000 (17:25 -0800)
committerGabe Black <gabe.black@gmail.com>
Sat, 13 Feb 2021 08:46:05 +0000 (08:46 +0000)
commite16301f96b46799a5a9b1c43bf312aa19171f617
treefd31c488ab8c7b0c2cdf71f902de4fe4b1626f82
parent13cda5a73442565abb3222d3197faa790ce7e016
arch-x86: Use popCount from bitfields.hh.

Use popCount from bitfields.hh rather than call __builtin_popcountl
directly. That will ensure the instruction works whether or not that
builtin is available.

Change-Id: I947b35bb832b768936b489a58ee324adb8a90b5e
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/41354
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/x86/isa/microops/regop.isa