From 58a7be0d463ace658e56e60940f5f959fb0884f2 Mon Sep 17 00:00:00 2001 From: Kyle Roarty Date: Thu, 13 Aug 2020 14:09:45 -0500 Subject: [PATCH] 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 --- configs/example/apu_se.py | 3 --- 1 file changed, 3 deletions(-) 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", -- 2.30.2