Skip to content

Commit 3678067

Browse files
committed
limits instantiated memory in ISS to 16GB
1 parent d4659ec commit 3678067

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/iss/mem/memory_with_htif.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ template <typename PLAT> struct neumann_memory_with_htif : public memory_elem {
112112
// Currently no type erasure for the sparse_array is available, so all memories
113113
// have the largest possible size. Memory footprint should still be small as it
114114
// a sparse array
115-
using mem_type = util::sparse_array<uint8_t, arch::traits<PLAT>::max_mem_size>;
115+
using mem_type = util::sparse_array < uint8_t,
116+
arch::traits<PLAT>::max_mem_size<1ull << 36 ? arch::traits<PLAT>::max_mem_size : (1ull << 36)>;
116117
std::array<mem_type, arch::traits<PLAT>::mem_sizes.size()> memories{};
117118
arch::priv_if<reg_t> hart_if;
118119
};

0 commit comments

Comments
 (0)