Update Init config usage and remove WI cache mode
This commit is contained in:
@@ -26,7 +26,6 @@ class CacheMode(Enum):
|
||||
WA = "Write-Around"
|
||||
PT = "Pass-Through"
|
||||
WO = "Write-Only"
|
||||
WI = "Write-Invalidate"
|
||||
DEFAULT = WT
|
||||
|
||||
def __str__(self):
|
||||
@@ -44,15 +43,12 @@ class CacheMode(Enum):
|
||||
return CacheModeTrait.InsertWrite | CacheModeTrait.LazyFlush
|
||||
elif cache_mode == CacheMode.WA:
|
||||
return CacheModeTrait.InsertRead
|
||||
elif cache_mode == CacheMode.WI:
|
||||
return CacheModeTrait.InsertRead | CacheModeTrait.WriteInvalidate
|
||||
|
||||
|
||||
class CacheModeTrait(IntFlag):
|
||||
InsertWrite = 1
|
||||
InsertRead = 2
|
||||
LazyFlush = 4
|
||||
WriteInvalidate = 8
|
||||
|
||||
|
||||
class SeqCutOffPolicy(Enum):
|
||||
|
Reference in New Issue
Block a user