From: Kyle Roarty Date: Thu, 13 Aug 2020 19:09:45 +0000 (-0500) Subject: configs: Remove unneeded variable assignments in apu_se X-Git-Tag: v20.1.0.0~315 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=58a7be0d463ace658e56e60940f5f959fb0884f2;p=gem5.git configs: Remove unneeded variable assignments in apu_se This patch removes: A line assigning a variable to itself An assignment to a variable (chroot) that is never used. The above assignment also caused an error, "'NoneType' object has no attribute 'startswith'" Change-Id: Ib93c25fee4a0f7c1440de8067b086d8b96614796 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/32654 Reviewed-by: Matt Sinclair Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power Tested-by: kokoro --- diff --git a/configs/example/apu_se.py b/configs/example/apu_se.py index fcec7c140..25c148e49 100644 --- a/configs/example/apu_se.py +++ b/configs/example/apu_se.py @@ -334,8 +334,6 @@ for i in range(n_cu): shader.CUs = compute_units ########################## Creating the CPU system ######################## -options.num_cpus = options.num_cpus - # The shader core will be whatever is after the CPU cores are accounted for shader_idx = options.num_cpus @@ -616,7 +614,6 @@ else: ########################## Start simulation ######################## -chroot = os.path.expanduser(options.chroot) redirect_paths = [RedirectPath(src = "/proc", dests = ["%s/fs/proc" % m5.options.outdir]), RedirectPath(src = "/sys",