gem5/src/cpu/inorder/resources
Gabe Black b7b545bc38 Decode: Pull instruction decoding out of the StaticInst class into its own.
This change pulls the instruction decoding machinery (including caches) out of
the StaticInst class and puts it into its own class. This has a few intrinsic
benefits. First, the StaticInst code, which has gotten to be quite large, gets
simpler. Second, the code that handles decode caching is now separated out
into its own component and can be looked at in isolation, making it easier to
understand. I took the opportunity to restructure the code a bit which will
hopefully also help.

Beyond that, this change also lays some ground work for each ISA to have its
own, potentially stateful decode object. We'd be able to include less
contextualizing information in the ExtMachInst objects since that context
would be applied at the decoder. Also, the decoder could "know" ahead of time
that all the instructions it's going to see are going to be, for instance, 64
bit mode, and it will have one less thing to check when it decodes them.
Because the decode caching mechanism has been separated out, it's now possible
to have multiple caches which correspond to different types of decoding
context. Having one cache for each element of the cross product of different
configurations may become prohibitive, so it may be desirable to clear out the
cache when relatively static state changes and not to have one for each
setting.

Because the decode function is no longer universally accessible as a static
member of the StaticInst class, a new function was added to the ThreadContexts
that returns the applicable decode object.
2011-09-09 02:30:01 -07:00
..
agen_unit.cc inorder: dont handle multiple faults on same cycle 2011-06-19 21:43:40 -04:00
agen_unit.hh includes: sort all includes 2011-04-15 10:44:06 -07:00
bpred_unit.cc inorder: branch predictor update 2011-06-19 21:43:37 -04:00
bpred_unit.hh includes: sort all includes 2011-04-15 10:44:06 -07:00
branch_predictor.cc inorder: add necessary debug flag header files 2011-06-19 21:43:41 -04:00
branch_predictor.hh includes: sort all includes 2011-04-15 10:44:06 -07:00
cache_unit.cc InOder: Fix a compile error. 2011-06-20 02:29:14 -07:00
cache_unit.hh InOrder: Make cache_unit.hh include hashmap.hh explicitly, not transitively. 2011-08-16 02:47:15 -07:00
decode_unit.cc inorder: add necessary debug flag header files 2011-06-19 21:43:41 -04:00
decode_unit.hh inorder: remove decode squash 2011-06-19 21:43:37 -04:00
execution_unit.cc inorder: add necessary debug flag header files 2011-06-19 21:43:41 -04:00
execution_unit.hh inorder: handle serializing instructions 2011-06-19 21:43:41 -04:00
fetch_seq_unit.cc inorder: add necessary debug flag header files 2011-06-19 21:43:41 -04:00
fetch_seq_unit.hh inorder: implement trap handling 2011-06-19 21:43:36 -04:00
fetch_unit.cc Decode: Pull instruction decoding out of the StaticInst class into its own. 2011-09-09 02:30:01 -07:00
fetch_unit.hh Decode: Pull instruction decoding out of the StaticInst class into its own. 2011-09-09 02:30:01 -07:00
graduation_unit.cc inorder: use trapPending flag to manage traps 2011-06-19 21:43:41 -04:00
graduation_unit.hh inorder: dont handle multiple faults on same cycle 2011-06-19 21:43:40 -04:00
inst_buffer.cc trace: reimplement the DTRACE function so it doesn't use a vector 2011-04-15 10:44:32 -07:00
inst_buffer.hh includes: sort all includes 2011-04-15 10:44:06 -07:00
mem_dep_unit.hh includes: sort all includes 2011-04-15 10:44:06 -07:00
mult_div_unit.cc inorder: dont handle multiple faults on same cycle 2011-06-19 21:43:40 -04:00
mult_div_unit.hh inorder: bug in mdu 2011-06-19 21:43:38 -04:00
resource_list.hh includes: sort all includes 2011-04-15 10:44:06 -07:00
tlb_unit.cc includes: sort all includes 2011-04-15 10:44:06 -07:00
tlb_unit.hh includes: sort all includes 2011-04-15 10:44:06 -07:00
use_def.cc inorder: SE mode TLB faults 2011-06-19 21:43:42 -04:00
use_def.hh inorder: handle serializing instructions 2011-06-19 21:43:41 -04:00