| 166 | | === void setICacheInfo( size_t line_size, size_t assoc, size_t n_lines ) === |
| | 166 | === void setCacheInfo( const struct CacheInfo &info ) === |
| | 167 | |
| | 168 | Informs the Iss avout the cache caracteristics. New fields could be added in the Iss2::CacheInfo definition. Current definition is: |
| | 169 | {{{ |
| | 170 | struct CacheInfo |
| | 171 | { |
| | 172 | bool has_mmu; |
| | 173 | size_t icache_line_size; |
| | 174 | size_t icache_assoc; |
| | 175 | size_t icache_n_lines; |
| | 176 | size_t dcache_line_size; |
| | 177 | size_t dcache_assoc; |
| | 178 | size_t dcache_n_lines; |
| | 179 | }; |
| | 180 | }}} |
| | 181 | |
| | 182 | This function supersedes the two folling deprecated ones. |
| | 183 | |
| | 184 | For backwards compatibility, default implementation of setCacheInfo() calls setICacheInfo and setDCacheInfo. |
| | 185 | |
| | 186 | === void setICacheInfo( size_t line_size, size_t assoc, size_t n_lines ) [deprecated] === |