Review Board 2.0.15


CPU: Merge the predecoder and decoder.

Review Request #1195 - Created May 14, 2012 and submitted

Information
Gabe Black
gem5
default
Reviewers
Default
Changeset 9023:ea2094694097
---------------------------
CPU: Merge the predecoder and decoder.

These classes are always used together, and merging them will give the ISAs
more flexibility in how they cache things and manage the process.

   
Review request changed
Updated (May 26, 2012, 6:46 a.m.)

Status: Closed (submitted)

Posted (May 26, 2012, 7:17 a.m.)



  
src/cpu/checker/cpu_impl.hh (Diff revision 2)
 
 
My only concern with the Checker code is: does getName() have a chance for aliasing between instructions with slightly different binary representations but have the same mnemonic?  Otherwise removing the dependency on machInst allows the Checker to be more easily adapted to checking other ISAs besides ARM.
  1. Yes it does a chance for aliasing, but getName isn't being used for comparison, only for the warning text. This should actually make it more easily adapted to other ISAs because it doesn't make assumptions about whether an ExtMachInst can be cast back to a MachInst.