configs: Use proper keywordargs for RedirectPath in apu_se
authorKyle Roarty <kyleroarty1716@gmail.com>
Thu, 13 Aug 2020 19:31:36 +0000 (14:31 -0500)
committerKyle Roarty <kyleroarty1716@gmail.com>
Fri, 14 Aug 2020 02:07:46 +0000 (02:07 +0000)
RedirectPath uses app_path and host_paths instead of src and dests.
This patch fixes that in apu_se.

The patch also changes the formatting for those lines, as simply
replacing dests with host_paths put the lines over the 80 char limit.

Change-Id: If7e4c41f2f52bc3d5aa26465c786294f9b68f8d3
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/32655
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Reviewed-by: Matt Sinclair <mattdsinclair@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
configs/example/apu_se.py

index 25c148e499b5c0aa2f25335688bf99149048236d..b629058f0c500f7fb9fc5f138d0f5b44db735693 100644 (file)
@@ -614,12 +614,15 @@ else:
 
 ########################## Start simulation ########################
 
-redirect_paths = [RedirectPath(src = "/proc",
-                               dests = ["%s/fs/proc" % m5.options.outdir]),
-                  RedirectPath(src = "/sys",
-                               dests = ["%s/fs/sys"  % m5.options.outdir]),
-                  RedirectPath(src = "/tmp",
-                               dests = ["%s/fs/tmp"  % m5.options.outdir])]
+redirect_paths = [RedirectPath(app_path = "/proc",
+                               host_paths =
+                                ["%s/fs/proc" % m5.options.outdir]),
+                  RedirectPath(app_path = "/sys",
+                               host_paths =
+                                ["%s/fs/sys"  % m5.options.outdir]),
+                  RedirectPath(app_path = "/tmp",
+                               host_paths =
+                                ["%s/fs/tmp"  % m5.options.outdir])]
 
 system.redirect_paths = redirect_paths