Update Init config usage and remove WI cache mode

This commit is contained in:
Katarzyna Lapinska
2020-01-24 09:07:33 +01:00
parent cc77929a5d
commit 8204fa8a56
2 changed files with 4 additions and 7 deletions

View File

@@ -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):