diff --git a/src/python/m5/params.py b/src/python/m5/params.py index 32723a7860..f3a68ccc18 100644 --- a/src/python/m5/params.py +++ b/src/python/m5/params.py @@ -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