cpu: Factor MaxInst(SrcDest)Regs out of the trace CPU.
authorGabe Black <gabe.black@gmail.com>
Tue, 8 Dec 2020 01:39:02 +0000 (17:39 -0800)
committerGabe Black <gabe.black@gmail.com>
Wed, 10 Feb 2021 06:07:09 +0000 (06:07 +0000)
commit08aa5351c0a17b2346ed06a9390620733ce21b29
treec28bf343a251833f88a89b133825f0eebbf5403f
parentf7e0115882321a5d63450aa6d1354c1de04afca9
cpu: Factor MaxInst(SrcDest)Regs out of the trace CPU.

Manage register and ROB dependencies using lists instead of arrays to
better support random removals, and avoid having to know the global
maximum number of registers in an instruction.

Change-Id: Ie9f30c61bac52ad31745a1011f62c95622908d2f
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/38386
Reviewed-by: Gabe Black <gabe.black@gmail.com>
Maintainer: Gabe Black <gabe.black@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/cpu/trace/trace_cpu.cc
src/cpu/trace/trace_cpu.hh