Skip to content

Commit 690d220

Browse files
author
Rafael Stahl
authored
Merge pull request tum-ei-eda#78 from PhilippvK/minor_fixes
Minor fixes
2 parents b826322 + 474a6a3 commit 690d220

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

examples/bare_etiss_processor/get_metrics.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,6 @@ def printSz(sz, unknown_msg=""):
153153

154154
cfg = config["IntConfigurations"]
155155

156-
if len(cfg) != 4:
157-
raise RuntimeError("Only 2 memory segments are supported (ROM + RAM)")
158-
159156
# ROM Start/Size is currently not used
160157
# romStart = cfg["simple_mem_system.memseg_origin_00"]
161158
# romSize = cfg["simple_mem_system.memseg_length_00"]
@@ -195,7 +192,7 @@ def printSz(sz, unknown_msg=""):
195192
"rom_rodata": staticSizes["rom_rodata"],
196193
"rom_code": staticSizes["rom_code"],
197194
"rom_misc": staticSizes["rom_misc"],
198-
"ram": ramSize + s.usage() + h.usage() if trace_available else ramSize,
195+
"ram": (ramSize + s.usage() + h.usage()) if trace_available else ramSize,
199196
"ram_data": staticSizes["ram_data"],
200197
"ram_zdata": staticSizes["ram_zdata"],
201198
"ram_stack": s.usage() if trace_available else None,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
humanize
2-
elftools
2+
pyelftools
33
argparse

0 commit comments

Comments
 (0)