Changes between Version 6 and Version 7 of Component/Iss2Api


Ignore:
Timestamp:
Nov 2, 2009, 1:18:44 PM (14 years ago)
Author:
Nicolas Pouillon
Comment:

Factorize setCacheInfo method

Legend:

Unmodified
Added
Removed
Modified
  • Component/Iss2Api

    v6 v7  
    164164Their implementation is optional.
    165165
    166 === void setICacheInfo( size_t line_size, size_t assoc, size_t n_lines ) ===
     166=== void setCacheInfo( const struct CacheInfo &info ) ===
     167
     168Informs the Iss avout the cache caracteristics. New fields could be added in the Iss2::CacheInfo definition. Current definition is:
     169{{{
     170struct 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
     182This function supersedes the two folling deprecated ones.
     183
     184For 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] ===
    167187
    168188Inform the Iss about the instruction cache caracteristics
    169189
    170 === void setDCacheInfo( size_t line_size, size_t assoc, size_t n_lines ) ===
     190=== void setDCacheInfo( size_t line_size, size_t assoc, size_t n_lines ) [deprecated] ===
    171191
    172192Inform the Iss about the data cache caracteristics