X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Farch%2Fisa_parser.py;h=8eb90eff6a263dd8dd6bf9ea47f2ec67d9678135;hb=47cb25b30eb57cc898f95cb904dedb623fe2bc1c;hp=757c72c761f243396e51b7e5ba54f135e1825200;hpb=5a48087df96d8d1ddf6ce61ede50f62a005ff943;p=gem5.git diff --git a/src/arch/isa_parser.py b/src/arch/isa_parser.py index 757c72c76..8eb90eff6 100755 --- a/src/arch/isa_parser.py +++ b/src/arch/isa_parser.py @@ -1289,7 +1289,7 @@ class OperandList(object): return self.__internalConcatAttrs(attr_name, filter, []) def sort(self): - self.items.sort(lambda a, b: a.sort_pri - b.sort_pri) + self.items.sort(key=lambda a: a.sort_pri) class SubOperandList(OperandList): '''Find all the operands in the given code block. Returns an operand