mem: Move the Rank construction logic to the Rank constructor
authorSean Wilson <spwilson2@wisc.edu>
Mon, 12 Jun 2017 19:20:01 +0000 (14:20 -0500)
committerSean Wilson <spwilson2@wisc.edu>
Tue, 20 Jun 2017 18:03:21 +0000 (18:03 +0000)
commit3d46619c34f1fc470fcc65b83fe678a70e89be30
treed3f5409a6011069bb83b49020b435442a08fa045
parent6de8267fbf74f6be13e9381fe03d9014c211e1e8
mem: Move the Rank construction logic to the Rank constructor

This change was made so Rank objects have their name assigned
when they are instantiated. Therefore, they can initialize their
member objects with their name and it is less likely to change during
runtime.

(NOTE: I would recommend hiding the fields which would cause the name to
change behind getters. Since modification of `Rank.rank` during runtime
will cause the `name()` to change.)

Change-Id: Id51c3553b40e489792c57950e18b8ce927e43173
Signed-off-by: Sean Wilson <spwilson2@wisc.edu>
Reviewed-on: https://gem5-review.googlesource.com/3742
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
src/mem/dram_ctrl.cc
src/mem/dram_ctrl.hh