isa: Add parameter to pick different decoder inside ISA
Review Request #3033 - Created Aug. 12, 2015 and submitted
| Information | |
|---|---|
| Curtis Dunham | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
The decoder is responsible for splitting instructions in micro
operations (uops). Given that different micro architectures may split
operations differently, this patch allows to specify which micro
architecture each isa implements, so different cores in the system can
split instructions differently, also decoupling uop splitting
(microArch) from ISA (Arch). This is done making the decodification
calls templates that receive a type 'DecoderFlavour' that maps the
name of the operation to the class that implements it. This way there
is only one selection point (converting the command line enum to the
appropriate DecodeFeatures object). In addition, there is no explicit
code replication: template instantiation hides that, and the compiler
should be able to resolve a number of things at compile-time.
-
src/arch/arm/isa/formats/neon64.isa (Diff revision 1) -
Can I see how the template is being used?
-
src/arch/arm/isa/insts/neon64.isa (Diff revision 1) -
We can drop this.
Any final thoughts?
