implements csr mem as std::array
This commit is contained in:
		| @@ -884,8 +884,7 @@ protected: | |||||||
|  |  | ||||||
|     instrumentation_if* get_instrumentation_if() override { return &instr_if; }; |     instrumentation_if* get_instrumentation_if() override { return &instr_if; }; | ||||||
|  |  | ||||||
|     using csr_type = util::sparse_array<typename traits<BASE>::reg_t, 1ULL << 12, 12>; |     using csr_type = std::array<typename traits<BASE>::reg_t, 1ULL << 12>; | ||||||
|     using csr_page_type = typename csr_type::page_type; |  | ||||||
|     csr_type csr; |     csr_type csr; | ||||||
|  |  | ||||||
|     std::unordered_map<unsigned, rd_csr_f> csr_rd_cb; |     std::unordered_map<unsigned, rd_csr_f> csr_rd_cb; | ||||||
|   | |||||||
| @@ -39,7 +39,6 @@ | |||||||
| #include <iss/iss.h> | #include <iss/iss.h> | ||||||
|  |  | ||||||
| #include <array> | #include <array> | ||||||
| #include <memory> |  | ||||||
| #ifndef FMT_HEADER_ONLY | #ifndef FMT_HEADER_ONLY | ||||||
| #define FMT_HEADER_ONLY | #define FMT_HEADER_ONLY | ||||||
| #endif | #endif | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user