cpu: Track flat register indices in the Minor CPU with a vector.
authorGabe Black <gabe.black@gmail.com>
Tue, 8 Dec 2020 01:43:58 +0000 (17:43 -0800)
committerGabe Black <gabe.black@gmail.com>
Wed, 10 Feb 2021 06:25:06 +0000 (06:25 +0000)
commit776822d147461d6fc6fbcb43c84dfb2ea8552641
tree67fd7d294cce866c180efd021e40399a8465cb27
parent08aa5351c0a17b2346ed06a9390620733ce21b29
cpu: Track flat register indices in the Minor CPU with a vector.

That avoids having to know the maximum number of dest registers there
can be in any instruction, and will likely not affect the performance of
the Minor CPU overall.

Change-Id: I4e49695ba06365d52eb4ce128d5cbb30db665bd7
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/38387
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com>
src/cpu/minor/decode.cc
src/cpu/minor/dyn_inst.cc
src/cpu/minor/dyn_inst.hh
src/cpu/minor/fetch2.cc