summaryrefslogtreecommitdiff
path: root/python/variable.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/variable.py')
-rw-r--r--python/variable.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/variable.py b/python/variable.py
index 7b4121bf..ec8f050d 100644
--- a/python/variable.py
+++ b/python/variable.py
@@ -114,6 +114,10 @@ class RegisterValue:
return ConstantDataRegisterValue(reg_value.value, 0, RegisterValueType(reg_value.state), confidence=confidence, size=reg_value.size)
assert False, f"RegisterValueType {reg_value.state} not handled"
+ @classmethod
+ def to_BNRegisterValue(cls, reg_value: 'RegisterValue') -> core.BNRegisterValue:
+ return reg_value._to_core_struct()
+
@dataclass(frozen=True, eq=False)
class Undetermined(RegisterValue):