From d5518cd4d9804498204ce8e79ac04870f383966e Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Sun, 24 Apr 2011 16:35:13 -0700 Subject: [xcc,sim,opcodes] added more RVC instructions --- riscv/insns/c_addi.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'riscv/insns/c_addi.h') diff --git a/riscv/insns/c_addi.h b/riscv/insns/c_addi.h index 4a5a0af..c716f69 100644 --- a/riscv/insns/c_addi.h +++ b/riscv/insns/c_addi.h @@ -1,2 +1,10 @@ require_rvc; -CRD = sext_xprlen(CRS2 + CIMM6); +if(CRD_REGNUM == 0) +{ + reg_t temp = npc; + npc = CRS1; + if(CIMM6 & 0x20) + RA = temp; +} +else + CRD = sext_xprlen(CRS2 + CIMM6); -- cgit v1.1