Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
x86_x64::Cache Struct Reference

#include <cache.h>

Public Types

enum  Type { kNull, kData, kInstruction, kUnified }
 

Public Member Functions

void Initialize (size_t level, Type type)
 
bool Validate () const
 
u64 TotalSize () const
 

Public Attributes

size_t level
 1..maxLevels More...
 
Type type
 never kNull More...
 
size_t numEntries
 if 0, the cache is disabled and all other values are zero More...
 
size_t entrySize
 NB: cache entries are lines, TLB entries are pages. More...
 
size_t associativity
 = fullyAssociative or the actual ways of associativity More...
 
size_t sharedBy
 how many logical processors share this cache? More...
 

Static Public Attributes

static const size_t maxLevels = 4
 
static const size_t fullyAssociative = 0xFF
 

Detailed Description

Definition at line 28 of file cache.h.

Member Enumeration Documentation

Enumerator
kNull 
kData 
kInstruction 
kUnified 

Definition at line 30 of file cache.h.

Member Function Documentation

void x86_x64::Cache::Initialize ( size_t  level,
Type  type 
)
inline

Definition at line 74 of file cache.h.

u64 x86_x64::Cache::TotalSize ( ) const
inline

Definition at line 116 of file cache.h.

bool x86_x64::Cache::Validate ( ) const
inline

Definition at line 86 of file cache.h.

Member Data Documentation

size_t x86_x64::Cache::associativity

= fullyAssociative or the actual ways of associativity

Definition at line 67 of file cache.h.

size_t x86_x64::Cache::entrySize

NB: cache entries are lines, TLB entries are pages.

Definition at line 62 of file cache.h.

const size_t x86_x64::Cache::fullyAssociative = 0xFF
static

Definition at line 42 of file cache.h.

size_t x86_x64::Cache::level

1..maxLevels

Definition at line 47 of file cache.h.

const size_t x86_x64::Cache::maxLevels = 4
static

Definition at line 40 of file cache.h.

size_t x86_x64::Cache::numEntries

if 0, the cache is disabled and all other values are zero

Definition at line 57 of file cache.h.

size_t x86_x64::Cache::sharedBy

how many logical processors share this cache?

Definition at line 72 of file cache.h.

Type x86_x64::Cache::type

never kNull

Definition at line 52 of file cache.h.


The documentation for this struct was generated from the following file: