From 8728c26c7fe41baa12f64a5f56ee1f32f836ee7b Mon Sep 17 00:00:00 2001 From: "Daniel R. Carvalho" Date: Sun, 8 Nov 2020 15:38:04 +0100 Subject: [PATCH] configs: Fix MemorySize division The memory size is expected to be an integer. Jira: https://gem5.atlassian.net/browse/GEM5-806 Change-Id: I44b2d423a3478d2598950779222151f09970cbd8 Signed-off-by: Daniel R. Carvalho Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/37255 Maintainer: Bobby R. Bruce Tested-by: kokoro Reviewed-by: Srikant Bharadwaj --- configs/topologies/MeshDirCorners_XY.py | 2 +- configs/topologies/Mesh_XY.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configs/topologies/MeshDirCorners_XY.py b/configs/topologies/MeshDirCorners_XY.py index 7d065de5b..e0aea5212 100644 --- a/configs/topologies/MeshDirCorners_XY.py +++ b/configs/topologies/MeshDirCorners_XY.py @@ -218,6 +218,6 @@ class MeshDirCorners_XY(SimpleTopology): for n in numa_nodes: if n: FileSystemConfig.register_node(n, - MemorySize(options.mem_size) / num_numa_nodes, i) + MemorySize(options.mem_size) // num_numa_nodes, i) i += 1 diff --git a/configs/topologies/Mesh_XY.py b/configs/topologies/Mesh_XY.py index 64a850616..faec1e3c3 100644 --- a/configs/topologies/Mesh_XY.py +++ b/configs/topologies/Mesh_XY.py @@ -178,4 +178,4 @@ class Mesh_XY(SimpleTopology): def registerTopology(self, options): for i in range(options.num_cpus): FileSystemConfig.register_node([i], - MemorySize(options.mem_size) / options.num_cpus, i) + MemorySize(options.mem_size) // options.num_cpus, i) -- 2.30.2