From 8a40c15a5fb9a49757e482ce7e604c4ff9990975 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 15 Oct 2018 07:49:26 +0100 Subject: [PATCH] add rvc_sp redirection/offset overload also found weird bug where RVC_FRS1/2 were not being detected, how it was not found earlier is a mystery, code should not have compiled! --- id_regs.py | 18 ++++++++++-------- riscv/insn_template_sv.cc | 4 ++-- riscv/sv_decode.h | 14 +++++++++++--- 3 files changed, 23 insertions(+), 13 deletions(-) diff --git a/id_regs.py b/id_regs.py index 3563f60..8a96032 100644 --- a/id_regs.py +++ b/id_regs.py @@ -39,9 +39,10 @@ def list_insns(): res.append((os.path.join(insns_dir, fname), insn)) return res -cintpatterns = [ 'WRITE_RVC_RS1S', 'WRITE_RVC_RS2S', - 'RVC_RS1', 'RVC_RS2', 'RVC_RS1S', 'RVC_RS2S', ] -cfloatpatterns = [ 'WRITE_RVC_FRS2S', 'RVC_FRS2 ', 'RVC_FRS2S '] +cintpatterns = [ 'WRITE_RVC_RS1S', 'WRITE_RVC_RS2S', 'RVC_SP', + '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 @@ -50,16 +51,17 @@ patterns += cfloatpatterns allfloats = floatpatterns + cfloatpatterns floatmask = (1<