Skip to content

Commit d25de8a

Browse files
committed
Arm backend: Handle memory mode corectly in test_model.py
This fix a bug that when you used non default memory mode the PTE was correctly build but the elf was still build with the default mode. Signed-off-by: Zingo Andersen <[email protected]> Change-Id: I1a7a70d6a161c740a2562814acc2cc7e99b410f5
1 parent 4717459 commit d25de8a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

backends/arm/test/test_model.py

+3
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ def build_ethosu_runtime(
176176
pte_file: str,
177177
target: str,
178178
system_config: str,
179+
memory_mode: str,
179180
extra_flags: str,
180181
elf_build_path: str,
181182
):
@@ -195,6 +196,7 @@ def build_ethosu_runtime(
195196
f"--target={target}",
196197
"--build_type=Release",
197198
f"--system_config={system_config}",
199+
f"--memory_mode={memory_mode}",
198200
extra_build_flag,
199201
f"--output={elf_build_path}",
200202
]
@@ -256,6 +258,7 @@ def run_elf_with_fvp(script_path: str, elf_file: str, target: str):
256258
pte_file,
257259
args.target,
258260
args.system_config,
261+
args.memory_mode,
259262
args.extra_flags,
260263
elf_build_path,
261264
)

0 commit comments

Comments
 (0)