We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4659ec commit 3678067Copy full SHA for 3678067
1 file changed
src/iss/mem/memory_with_htif.h
@@ -112,7 +112,8 @@ template <typename PLAT> struct neumann_memory_with_htif : public memory_elem {
112
// Currently no type erasure for the sparse_array is available, so all memories
113
// have the largest possible size. Memory footprint should still be small as it
114
// a sparse array
115
- using mem_type = util::sparse_array<uint8_t, arch::traits<PLAT>::max_mem_size>;
+ 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)>;
117
std::array<mem_type, arch::traits<PLAT>::mem_sizes.size()> memories{};
118
arch::priv_if<reg_t> hart_if;
119
};
0 commit comments