if not key.startswith("Num_"):
self._sub_classes[key] = value
-
+rp_list = ObjectList(getattr(m5.objects, 'BaseReplacementPolicy', None))
bp_list = ObjectList(getattr(m5.objects, 'BranchPredictor', None))
cpu_list = CPUList(getattr(m5.objects, 'BaseCPU', None))
hwp_list = ObjectList(getattr(m5.objects, 'BasePrefetcher', None))
ObjectList.hwp_list.print()
sys.exit(0)
+def _listRPTypes(option, opt, value, parser):
+ ObjectList.rp_list.print()
+ sys.exit(0)
+
def _listIndirectBPTypes(option, opt, value, parser):
ObjectList.indirect_bp_list.print()
sys.exit(0)
parser.add_option("--indirect-bp-type", type="choice", default=None,
choices=ObjectList.indirect_bp_list.get_names(),
help = "type of indirect branch predictor to run with")
+
+ parser.add_option("--list-rp-types",
+ action="callback", callback=_listRPTypes,
+ help="List available replacement policy types")
+
parser.add_option("--list-hwp-types",
action="callback", callback=_listHWPTypes,
help="List available hardware prefetcher types")