From: Luke Kenneth Casson Leighton Date: Tue, 23 Oct 2018 05:11:32 +0000 (+0100) Subject: add type store categorisation X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=77be322e8f89d6e954fbf512a5bf7a54420c3caa;p=riscv-isa-sim.git add type store categorisation --- diff --git a/id_regs.py b/id_regs.py index 3bbd0b8..ab31521 100644 --- a/id_regs.py +++ b/id_regs.py @@ -190,8 +190,12 @@ if __name__ == '__main__': txt += "#define INSN_TYPE_BRANCH\n" is_branch = 'STD' # standard branch if insn in ['lb', 'lbu', 'lw', 'lwu', 'ld', 'ldu']: + load_insn = True twin_predication = True txt += "#define INSN_TYPE_LOAD\n" + elif insn in ['sb', 'sbu', 'sw', 'swu', 'sd', 'sdu']: + twin_predication = True + txt += "#define INSN_TYPE_STORE\n" elif insn in ['c_lwsp', 'c_ldsp', 'c_lqsp', 'c_flwsp', 'c_fldsp']: twin_predication = True immed_offset = 'LD'