From 17e9b802820521693780cc0968926d375d288ca9 Mon Sep 17 00:00:00 2001 From: JanLJL Date: Thu, 2 May 2024 16:30:11 +0200 Subject: [PATCH] formattign --- osaca/semantics/hw_model.py | 8 ++++---- tests/test_parser_AArch64.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/osaca/semantics/hw_model.py b/osaca/semantics/hw_model.py index 3e2c7b5..7d0173d 100644 --- a/osaca/semantics/hw_model.py +++ b/osaca/semantics/hw_model.py @@ -261,10 +261,10 @@ class MachineModel(object): elif o["class"] == "prfop": new_operands.append( PrefetchOperand( - type_id=o["type"] if "type" in o else None, - target=o["target"] if "target" in o else None, - policy=o["policy"] if "policy" in o else None, - ) + type_id=o["type"] if "type" in o else None, + target=o["target"] if "target" in o else None, + policy=o["policy"] if "policy" in o else None, + ) ) else: new_operands.append(o) diff --git a/tests/test_parser_AArch64.py b/tests/test_parser_AArch64.py index aebe58d..c895c99 100755 --- a/tests/test_parser_AArch64.py +++ b/tests/test_parser_AArch64.py @@ -234,7 +234,7 @@ class TestParserAArch64(unittest.TestCase): instruction_form_5 = InstructionForm( mnemonic="prfm", operands=[ - PrefetchOperand(type_id=["PLD"],target=["L1"],policy=["KEEP"]), + PrefetchOperand(type_id=["PLD"], target=["L1"], policy=["KEEP"]), MemoryOperand( offset=ImmediateOperand(value=2048), base=RegisterOperand(prefix="x", name="26"),