cpu,arch: Delegate fetching ROM microops to the decoder.
authorGabe Black <gabeblack@google.com>
Tue, 18 Aug 2020 07:25:39 +0000 (00:25 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 25 Aug 2020 12:41:20 +0000 (12:41 +0000)
commita3e113239b76956218bc89ff530b93d615aeeacc
treed6b6f59f32ebb5d60919dd23d5c726b9543926d1
parent9154f23d2c2f0bd11d1a6710eaab56a3dcb4250c
cpu,arch: Delegate fetching ROM microops to the decoder.

In most cases, the microcode ROM doesn't actually do anything. The
structural existence of a microcode ROM doesn't make sense in the
general case, and in architectures that know they have one and need to
interact with it, they can cast their decoder into an arch specific type
and access the ROM that way.

Change-Id: I25b67bfe65df1fdb84eb5bc894cfcb83da1ce64b
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/32898
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/generic/SConscript
src/arch/generic/decoder.cc [new file with mode: 0644]
src/arch/generic/decoder.hh
src/arch/x86/decoder.cc
src/arch/x86/decoder.hh
src/cpu/checker/cpu_impl.hh
src/cpu/o3/fetch_impl.hh
src/cpu/simple/base.cc