Merge pull request #232 from rafalste/cache_mode_string

Add string representation for cache mode
This commit is contained in:
rafalste 2019-12-16 15:08:47 +01:00 committed by GitHub
commit 8af406274d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,8 @@
# SPDX-License-Identifier: BSD-3-Clause-Clear
#
from enum import IntEnum, Enum
from enum import IntEnum
from aenum import Enum
from test_utils.size import Size, Unit
from datetime import timedelta
@ -18,13 +19,16 @@ class CacheLineSize(IntEnum):
class CacheMode(Enum):
WT = 0
WB = 1
WA = 2
PT = 3
WO = 4
WT = "Write-Through"
WB = "Write-Back"
WA = "Write-Around"
PT = "Pass-Through"
WO = "Write-Only"
DEFAULT = WT
def __str__(self):
return self.value
class SeqCutOffPolicy(Enum):
full = 0