From 82b5ca824534661602d43764152516b9a5f8526b Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 29 Sep 2018 12:06:10 +0100 Subject: [PATCH] also arrange for id_regs.py to identify compressed instruction usage --- id_regs.py | 35 ++++++++++++++++++++++++++++------- riscv/sv_decode.h | 5 +++++ 2 files changed, 33 insertions(+), 7 deletions(-) diff --git a/id_regs.py b/id_regs.py index b40e5ce..6b8a678 100644 --- a/id_regs.py +++ b/id_regs.py @@ -39,13 +39,22 @@ def list_insns(): res.append((os.path.join(insns_dir, fname), insn)) return res -intpatterns = ['WRITE_RD', 'RS1', 'RS2', 'RS3'] +cintpatterns = [ 'WRITE_RVC_RS1S', 'WRITE_RVC_RS2S', + 'RVC_RS1', 'RVC_RS2', 'RVC_RS1S', 'RVC_RS2S', ] +cfloatpatterns = [ 'WRITE_RVC_FRS2S', 'RVC_FRS2 ', 'RVC_FRS2S '] +intpatterns = ['WRITE_RD' , 'RS1', 'RS2', 'RS3'] floatpatterns = ['WRITE_FRD', 'FRS1', 'FRS2', 'FRS3'] patterns = intpatterns + floatpatterns +patterns += cintpatterns +patterns += cfloatpatterns + +allfloats = floatpatterns + cfloatpatterns +floatmask = (1<