x86: Move miscreg initialization to the ISA class.
authorGabe Black <gabeblack@google.com>
Thu, 9 Jan 2020 08:53:15 +0000 (00:53 -0800)
committerGabe Black <gabeblack@google.com>
Tue, 14 Jan 2020 02:19:19 +0000 (02:19 +0000)
commit2012a0c6519a7198e7158f9bc07b97b98fdd357a
tree6303430fab5b0994bc2d2a27d835e8233067beba
parent7085b8561478fcb416fc1eaaaeb778f89dd4d3c2
x86: Move miscreg initialization to the ISA class.

The initCPU function was setting a lot of values to zero or other
initial values, but that's something the ISA object can do as part of
its clear() method. This gets rid of a lot of code that was
individually zeroing registers, and also centralizes responsibility
for those registers in the ISA.

Change-Id: Iafcffd3f9329c39f77009b38b1696f91c36c117e
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/24185
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/x86/isa.cc
src/arch/x86/utility.cc