mem: Fix name() helper for DRAM rank (#1410)
At the moment the method simply returns the rank number. This is not particularly useful when enabling debug flags as the beginning of the line prints something like: 1: <debug_message> whereas it should really be: system.dram.rank1: <debug_message> Change-Id: I0136dc3d182afa4ae2e5a719cb366d8d0f444667 Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
This commit is contained in:
committed by
GitHub
parent
217def7bf9
commit
d2c8754ab3
@@ -350,7 +350,11 @@ class DRAMInterface : public MemInterface
|
|||||||
Rank(const DRAMInterfaceParams &_p, int _rank,
|
Rank(const DRAMInterfaceParams &_p, int _rank,
|
||||||
DRAMInterface& _dram);
|
DRAMInterface& _dram);
|
||||||
|
|
||||||
const std::string name() const { return csprintf("%d", rank); }
|
const std::string
|
||||||
|
name() const
|
||||||
|
{
|
||||||
|
return csprintf("%s.rank%d", dram.name(), rank);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Kick off accounting for power and refresh states and
|
* Kick off accounting for power and refresh states and
|
||||||
|
|||||||
Reference in New Issue
Block a user