----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: http://reviews.gem5.org/r/2339/#review5270 -----------------------------------------------------------
This looks like a step in the right direction, but how about taking another step and just embedding all this logic in the Packet constructor? That seems like it would be even cleaner from the caller's perspective. If necessary, we could use an additional constructor flag or an alternate constructor to provide a path to set the memory command which would not get refined. - Steve Reinhardt On Aug. 13, 2014, 7:07 a.m., Andreas Hansson wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > http://reviews.gem5.org/r/2339/ > ----------------------------------------------------------- > > (Updated Aug. 13, 2014, 7:07 a.m.) > > > Review request for Default. > > > Repository: gem5 > > > Description > ------- > > Changeset 10306:8de97ea1af30 > --------------------------- > mem: Refactor assignment of Packet types > > Put the packet type swizzling (that is currently done in a lot of places) > into a refineCommand() member function. > > > Diffs > ----- > > src/cpu/checker/cpu.cc 79fde1c67ed8 > src/cpu/inorder/resources/cache_unit.cc 79fde1c67ed8 > src/cpu/o3/lsq_unit.hh 79fde1c67ed8 > src/cpu/o3/lsq_unit_impl.hh 79fde1c67ed8 > src/cpu/ozone/lw_lsq.hh 79fde1c67ed8 > src/cpu/ozone/lw_lsq_impl.hh 79fde1c67ed8 > src/cpu/simple/atomic.cc 79fde1c67ed8 > src/cpu/simple/timing.cc 79fde1c67ed8 > src/mem/packet.hh 79fde1c67ed8 > > Diff: http://reviews.gem5.org/r/2339/diff/ > > > Testing > ------- > > > Thanks, > > Andreas Hansson > > _______________________________________________ gem5-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/gem5-dev
