python: Add is_subset to the AddrRange param class (#993)

This will just call the _m5.range.isSubset method

Change-Id: If747819a008a8ed20796b4efd42a42e5c3a8d7d9

Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
This commit is contained in:
Giacomo Travaglini
2024-04-04 08:12:30 +01:00
committed by GitHub
parent ffd0680a2c
commit 0c6543d781

View File

@@ -1,4 +1,4 @@
# Copyright (c) 2012-2014, 2017-2019, 2021 Arm Limited
# Copyright (c) 2012-2014, 2017-2019, 2021, 2024 Arm Limited
# All rights reserved.
#
# The license below extends only to copyright in the software and shall
@@ -1036,6 +1036,9 @@ class AddrRange(ParamValue):
return list([AddrRange(r.start(), r.end()) for r in pybind_include])
def is_subset(self, addr_range):
return self.getValue().isSubset(addr_range.getValue())
# Boolean parameter type. Python doesn't let you subclass bool, since
# it doesn't want to let you create multiple instances of True and