added default load TP and relocation in identifier

This commit is contained in:
JanLJL
2019-12-18 16:56:20 +01:00
parent d88617109f
commit bbb004a2aa
12 changed files with 25 additions and 3 deletions

View File

@@ -155,7 +155,7 @@ class MachineModel(object):
ld_tp = [m for m in self._data['load_throughput'] if self._match_mem_entries(memory, m)]
if len(ld_tp) > 0:
return ld_tp[0]['port_pressure']
return None
return self._data['load_throughput_default']
def _match_mem_entries(self, mem, i_mem):
if self._data['isa'].lower() == 'aarch64':
@@ -490,6 +490,11 @@ class MachineModel(object):
or (i_mem['offset'] is None and mem['offset']['value'] == '0')
)
)
or (
mem['offset'] is not None
and 'identifier' in mem['offset']
and i_mem['offset'] == 'id'
)
)
# check index
and (