summaryrefslogtreecommitdiffstats
path: root/src/usr/diag/prdf/common/plat/mem/prdfMemMark.H
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/diag/prdf/common/plat/mem/prdfMemMark.H')
-rw-r--r--src/usr/diag/prdf/common/plat/mem/prdfMemMark.H9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/usr/diag/prdf/common/plat/mem/prdfMemMark.H b/src/usr/diag/prdf/common/plat/mem/prdfMemMark.H
index 8474b5ce8..4958ec985 100644
--- a/src/usr/diag/prdf/common/plat/mem/prdfMemMark.H
+++ b/src/usr/diag/prdf/common/plat/mem/prdfMemMark.H
@@ -80,6 +80,15 @@ class MemMark
/** @return The Galois field representing this mark. */
uint8_t getGalois() const { return iv_galois; }
+ /** @return The Galois field associated with the chip this mark is in.
+ * Will correspond to the rightmost/least index symbol in the chip. You
+ * must check for a valid symbol before calling this function. */
+ uint8_t getChipGalois() const
+ {
+ PRDF_ASSERT( iv_symbol.isValid() );
+ return symbol2Galois[(iv_symbol.getSymbol()/4)*4];
+ }
+
/** @return The symbol representing this mark. */
MemSymbol getSymbol() const { return iv_symbol; }
OpenPOWER on IntegriCloud