Skip to content
Snippets Groups Projects
Commit b2919b32 authored by lnx build's avatar lnx build Committed by Gerrit - the friendly Code Review server
Browse files

Merge "lrdpv2: cachedumplib: Change LLC support for sdm845" into opensource-tools.lnx.1.0

parents 6ef502b9 b27124de
No related branches found
No related tags found
No related merge requests found
......@@ -571,40 +571,39 @@ class LLC_SYSTEM_CACHE_KRYO3XX(CacheDumpType_v1):
"""Refer to documentation:LLC_HDD"""
def __init__(self):
super(LLC_SYSTEM_CACHE_KRYO3XX, self).__init__()
self.tableformat.addColumn('G0 Valid')
self.tableformat.addColumn('G0 Dirty')
self.tableformat.addColumn('G1 Valid')
self.tableformat.addColumn('G1 Dirty')
self.tableformat.addColumn('SCID')
self.tableformat.addColumn('ECC')
self.tableformat.addColumn('Tag address')
self.unsupported_header_offset = 0
self.TagSize = 2
self.LineSize = 16
self.tableformat.addColumn('Valid')
self.tableformat.addColumn('Dirty')
self.tableformat.addColumn('SCID ')
self.tableformat.addColumn('Tag Data ')
self.tableformat.addColumn('ECC ')
self.tableformat.addColumn('Physical address1')
self.tableformat.addColumn('Physical address2')
self.unsupported_header_offset = 12
self.TagSize = 7
self.LineSize = 0x10
self.NumSets = 0x400
self.NumWays = 12
self.NumWays = 0x0C
def parse_tag_fn(self, output, data, nset, nway):
if self.TagSize != 2:
if self.TagSize != 7:
raise Exception('cache tag size mismatch')
G0_valid = data[0] & 0x1
G1_valid = (data[0] >> 2) & 0x1
G0_dirty = (data[0] >> 3) & 0x1
G1_dirty = (data[0] >> 4) & 0x1
SCID = (data[0] >> 7) & 0x1f
ECC_bits = (data[0] >> 14) & 0x7f
DONE_bit = (data[1] >> 28) & 0x1
addr = data[1] & 0x3fffffff
Valid = data[0]
Dirty = data[1]
SCID = data[2]
Tag_Addr = data[3]
ECC_bits = data[4]
Phy_Addr_Upper = data[5]
Phy_Addr_Lower = data[6]
output.append(G0_valid)
output.append(G0_dirty)
output.append(G1_valid)
output.append(G1_dirty)
output.append(Valid)
output.append(Dirty)
output.append(SCID)
output.append(Tag_Addr)
output.append(ECC_bits)
output.append(addr)
output.append(Phy_Addr_Upper)
output.append(Phy_Addr_Lower)
L1_DCache_KRYO2XX_SILVER = L1_DCache_A53
L1_ICache_KYRO2XX_SILVER = L1_ICache_A53
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment