From 8af3918655cb2852520ea387b3b1cc6d0aa5d1a9 Mon Sep 17 00:00:00 2001 From: Luca Colagrande Date: Fri, 12 Jul 2024 17:36:53 +0200 Subject: [PATCH] Correct linting --- util/trace/gen_trace.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/util/trace/gen_trace.py b/util/trace/gen_trace.py index 7ba137afd7..fb3351ed29 100755 --- a/util/trace/gen_trace.py +++ b/util/trace/gen_trace.py @@ -17,13 +17,11 @@ import sys import re -import math import argparse import json from ctypes import c_int32, c_uint32 from collections import deque, defaultdict import pathlib -from decimal import Decimal EXTRA_WB_WARN = 'WARNING: {} transactions still in flight for {}.' @@ -414,6 +412,7 @@ def flt_oper(insn: str, extras: dict, port: int) -> (str, str): return REG_ABI_NAMES_F[extras[oper_type]], flt_lit(enc, fmt, vlen=vlen) return reg, lit + def flt_decode(val: int, fmt: int) -> float: """Interprets the binary encoding of an integer as a FP value.