diff options
author | Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com> | 2020-10-30 16:25:41 +0000 |
---|---|---|
committer | Rui Miguel Silva <rui.silva@arm.com> | 2020-11-09 17:58:52 +0000 |
commit | 7342c80a5b821bc25d937c3a671c4fca11edc978 (patch) | |
tree | 946135fcd2c6ad8b6ac9d6cbffeb552be9b360bf | |
parent | 975a0860a69f7571038026483efac09ff0805ebb (diff) |
corstone: replacing write_memory call with --data FVP option
The reason behind the replacement is that --data is more efficient
than write_memory function.
Change-Id: I0488c05a25bea5f12397252e7212a35387d28316
Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
-rw-r--r-- | iot/scripts/test/fvp_wrapper.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/iot/scripts/test/fvp_wrapper.py b/iot/scripts/test/fvp_wrapper.py index 7fc21db..3d0e509 100644 --- a/iot/scripts/test/fvp_wrapper.py +++ b/iot/scripts/test/fvp_wrapper.py @@ -318,6 +318,10 @@ class FVPWrapper(object): g_fvp_cmd.append("-C") g_fvp_cmd.append(param+"="+param_val) + for param,param_val in self.fvp_data.items() : + g_fvp_cmd.append("--data") + g_fvp_cmd.append(param+"="+param_val) + print("FVP commandline:") print(g_fvp_cmd) @@ -345,12 +349,6 @@ class FVPWrapper(object): cpu = self.fvp.get_cpus()[0] - for key,value in self.fvp_data.items(): - fop = open(value[:-11], "rb") - image = bytearray(fop.read()) - location = value[len(value)-10:len(value)] - cpu.write_memory(int(location,0), image) - except Exception as e: show_exception_details(e,self.fvp_path,self.fvp_params) |