Skip to content

Commit 17d799d

Browse files
committed
corrects memory_with_htif
turns out IMEM is a label with no corresponding memory declaration
1 parent 855d24d commit 17d799d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/iss/mem/memory_with_htif.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,7 @@ template <typename PLAT> struct neumann_memory_with_htif : public memory_elem {
113113
// have the largest possible size. Memory footprint should still be small as it
114114
// a sparse array
115115
using mem_type = util::sparse_array<uint8_t, arch::traits<PLAT>::max_mem_size>;
116-
// We need one fewer memory as the IMEM maps to MEM in von Neumann architecture
117-
std::array<mem_type, arch::traits<PLAT>::mem_sizes.size() - 1> memories{};
116+
std::array<mem_type, arch::traits<PLAT>::mem_sizes.size()> memories{};
118117
arch::priv_if<reg_t> hart_if;
119118
};
120119
} // namespace mem

0 commit comments

Comments
 (0)