From 007424c39a287eed771cc586f829904d0bf8dfa8 Mon Sep 17 00:00:00 2001 From: l-kent Date: Mon, 2 Dec 2024 16:01:55 +1000 Subject: [PATCH] fix issue with looking up cell from globalMapping --- src/main/scala/analysis/RegionInjector.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/analysis/RegionInjector.scala b/src/main/scala/analysis/RegionInjector.scala index 8fb83c5ae..c2199ed8c 100644 --- a/src/main/scala/analysis/RegionInjector.scala +++ b/src/main/scala/analysis/RegionInjector.scala @@ -263,7 +263,7 @@ class RegionInjectorDSA(override val program: Program, DSATopDown: mutable.Map[P // need to check if nodes match too dsg.globalMapping.foreach { (range, field) => - val cell = dsg.find(field.node.cells(0)) + val cell = dsg.find(field.node.getCell(field.offset)) if (mergedRegions.contains(cell)) { program.initialMemoryLookup(range.start) match { case Some(section) =>