X-Git-Url: https://git.libre-soc.org/?p=rv32.git;a=blobdiff_plain;f=riscvdefs.py;h=14267c5be3650d0fe7ab4157d9f97817039fdac1;hp=e7a2ab319fb64f6f6d076cca5e17934e9ebac730;hb=4c82b31e3ed6215777984396e4ab0e65b8ea73f6;hpb=d364e8c2247fd1914b63f51e19fce1584f91ad39 diff --git a/riscvdefs.py b/riscvdefs.py index e7a2ab3..14267c5 100644 --- a/riscvdefs.py +++ b/riscvdefs.py @@ -1,4 +1,3 @@ - """ /* * Copyright 2018 Jacob Lifshay @@ -84,14 +83,17 @@ funct3_blt = Constant(0x4, 3) funct3_bge = Constant(0x5, 3) funct3_bltu = Constant(0x6, 3) funct3_bgeu = Constant(0x7, 3) + funct3_lb = Constant(0x0, 3) funct3_lh = Constant(0x1, 3) funct3_lw = Constant(0x2, 3) funct3_lbu = Constant(0x4, 3) funct3_lhu = Constant(0x5, 3) + funct3_sb = Constant(0x0, 3) funct3_sh = Constant(0x1, 3) funct3_sw = Constant(0x2, 3) + funct3_addi = Constant(0x0, 3) funct3_slli = Constant(0x1, 3) funct3_slti = Constant(0x2, 3) @@ -100,6 +102,7 @@ funct3_xori = Constant(0x4, 3) funct3_srli_srai = Constant(0x5, 3) funct3_ori = Constant(0x6, 3) funct3_andi = Constant(0x7, 3) + funct3_add_sub = Constant(0x0, 3) funct3_sll = Constant(0x1, 3) funct3_slt = Constant(0x2, 3) @@ -108,8 +111,10 @@ funct3_xor = Constant(0x4, 3) funct3_srl_sra = Constant(0x5, 3) funct3_or = Constant(0x6, 3) funct3_and = Constant(0x7, 3) + funct3_fence = Constant(0x0, 3) funct3_fence_i = Constant(0x1, 3) + funct3_ecall_ebreak = Constant(0x0, 3) funct3_csrrw = Constant(0x1, 3) funct3_csrrs = Constant(0x2, 3)