From 571abaccbf192f4e7b0e71ebac118f9c3f193305 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Tue, 30 Nov 2021 13:42:10 +0000 Subject: [PATCH] sv_analysis: use is instead of eq for enums --- src/openpower/sv/sv_analysis.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/openpower/sv/sv_analysis.py b/src/openpower/sv/sv_analysis.py index 013ba8ab..7cfc65f3 100644 --- a/src/openpower/sv/sv_analysis.py +++ b/src/openpower/sv/sv_analysis.py @@ -685,10 +685,10 @@ def process_csvs(format): csvcols = ['insn', 'Ptype', 'Etype'] csvcols += ['in1', 'in2', 'in3', 'out', 'out2', 'CR in', 'CR out'] - if format == Format.VHDL: + if format is Format.VHDL: # and a nice microwatt VHDL file file_path = find_wiki_file("sv_decode.vhdl") - elif format == Format.BINUTILS: + elif format is Format.BINUTILS: file_path = find_wiki_file("binutils.c") with open(file_path, 'w') as stream: @@ -710,7 +710,7 @@ def output_autogen_disclaimer(format, stream): def output(format, svt, csvcols, insns, csvs_svp64, stream): output_autogen_disclaimer(format, stream) - if format == Format.BINUTILS: + if format is Format.BINUTILS: stream.write("/* TODO: implement proper support */\n") return -- 2.30.2