From 6d443095f92d8ff5d7c9831e1e111ef605d637f0 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Sat, 6 Nov 2010 17:44:56 -0700 Subject: [PATCH] [opcodes] generate latex and verilog correctly --- riscv/execute.h | 134 ++++++++++++++++++++++++------------------------ 1 file changed, 67 insertions(+), 67 deletions(-) diff --git a/riscv/execute.h b/riscv/execute.h index ae8cfdf..be90e6f 100644 --- a/riscv/execute.h +++ b/riscv/execute.h @@ -31,6 +31,73 @@ switch((insn.bits >> 0x19) & 0x7f) #include "insns/jal.h" break; } + case 0x62: + { + switch((insn.bits >> 0x16) & 0x7) + { + case 0x0: + { + #include "insns/jalr_c.h" + break; + } + case 0x1: + { + #include "insns/jalr_r.h" + break; + } + case 0x2: + { + #include "insns/jalr_j.h" + break; + } + default: + { + #include "insns/unimp.h" + } + } + break; + } + case 0x63: + { + switch((insn.bits >> 0x16) & 0x7) + { + case 0x0: + { + #include "insns/beq.h" + break; + } + case 0x1: + { + #include "insns/bne.h" + break; + } + case 0x4: + { + #include "insns/blt.h" + break; + } + case 0x5: + { + #include "insns/bge.h" + break; + } + case 0x6: + { + #include "insns/bltu.h" + break; + } + case 0x7: + { + #include "insns/bgeu.h" + break; + } + default: + { + #include "insns/unimp.h" + } + } + break; + } case 0x68: { switch((insn.bits >> 0x16) & 0x7) @@ -629,73 +696,6 @@ switch((insn.bits >> 0x19) & 0x7f) #include "insns/lui.h" break; } - case 0x72: - { - switch((insn.bits >> 0x16) & 0x7) - { - case 0x0: - { - #include "insns/jalr_c.h" - break; - } - case 0x1: - { - #include "insns/jalr_r.h" - break; - } - case 0x2: - { - #include "insns/jalr_j.h" - break; - } - default: - { - #include "insns/unimp.h" - } - } - break; - } - case 0x73: - { - switch((insn.bits >> 0x16) & 0x7) - { - case 0x0: - { - #include "insns/beq.h" - break; - } - case 0x1: - { - #include "insns/bne.h" - break; - } - case 0x4: - { - #include "insns/blt.h" - break; - } - case 0x5: - { - #include "insns/bge.h" - break; - } - case 0x6: - { - #include "insns/bltu.h" - break; - } - case 0x7: - { - #include "insns/bgeu.h" - break; - } - default: - { - #include "insns/unimp.h" - } - } - break; - } case 0x74: { switch((insn.bits >> 0x16) & 0x7) -- 2.30.2