[Segt] force contiguous memory for segment table
authorDongju Chae <dongju.chae@samsung.com>
Mon, 13 Dec 2021 08:22:43 +0000 (17:22 +0900)
committer채동주/On-Device Lab(SR)/Staff Engineer/삼성전자 <dongju.chae@samsung.com>
Tue, 14 Dec 2021 09:24:46 +0000 (18:24 +0900)
This patch forces contiguous memory for segment table
to use iowrite32 in kernel driver.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
src/core/ne-mem.cc

index d8a106a4555f3c40f6aade705b68f46810125a9a..f580d5eb7e08b286a30e805f5d1e8fd37736e53a 100644 (file)
@@ -74,6 +74,7 @@ class MemDefault : public MemAllocator {
 
     SegmentTable *segt = new SegmentTable (impl);
     segt->setDriverAPI (api_);
+    segt->setContiguous (true);
     return segt;
   }
 };