ext: Update DRAMPower
Review Request #3525 - Created June 22, 2016 and submitted
| Information | |
|---|---|
| Matthias Jung | |
| gem5 | |
| Reviewers | |
| Default | |
| andysan | |
Sync DRAMPower to external tool
This patch syncs the DRAMPower library of gem5 to the external
one on github (https://github.com/ravenrd/DRAMPower) of which
I am a maintainer.The version used is the commit:
902a00a1797c48a9df97ec88868f20e847680ae6
from 07. May. 2016.
Everything compiles.
Change Summary:
Summary Changed
Summary: |
|
|---|
Change Summary:
Description Changed
Description: |
|
|---|
Ship It!
I realise I am commenting on DRAMPower changes here, so feel free to ignore.
There seems to be an awful lot of changes from unsigned to signed types, which feels rather unintuitive. Why not uint64_t if the value is truly unsigned? It seems odd to remove that clear communication of intent.
There also seems to be quite a few static_cast<size_t> cause by the above change, which clutters the code. If the bank, for example, is unsigned this should not be needed.
-
ext/drampower/src/CmdScheduler.cc (Diff revision 1) -
this is rather unconventional
max<int64_t>(0, ...)
the construct appears in a few places
-
ext/drampower/src/CommandAnalysis.h (Diff revision 1) -
really no point making the int parameter const
-
ext/drampower/src/MemArchitectureSpec.h (Diff revision 1) -
cstdint rather?
-
ext/drampower/src/MemArchitectureSpec.h (Diff revision 1) -
why are these signed?
-
ext/drampower/src/MemCommand.cc (Diff revision 1) -
max<int64_t>(...
Ship It!
