From 71f4339b60addfa55ce2de1ccceb40aabe63cc31 Mon Sep 17 00:00:00 2001 From: Robert Norton Date: Wed, 16 Aug 2017 14:31:25 +0100 Subject: riscv: fix warnings because of unneeded catch-all cases in types.hgen. --- risc-v/hgen/types.hgen | 2 -- 1 file changed, 2 deletions(-) diff --git a/risc-v/hgen/types.hgen b/risc-v/hgen/types.hgen index 87fc9b95..3c4ae55a 100644 --- a/risc-v/hgen/types.hgen +++ b/risc-v/hgen/types.hgen @@ -107,14 +107,12 @@ let pp_riscv_load_op (unsigned, width) = match (unsigned, width) with | (false, RISCVWORD) -> "lw" | (true, RISCVWORD) -> "lwu" | (_, RISCVDOUBLE) -> "ld" - | _ -> failwith "unexpected load op" let pp_riscv_store_op width = match width with | RISCVBYTE -> "sb" | RISCVHALF -> "sh" | RISCVWORD -> "sw" | RISCVDOUBLE -> "sd" -| _ -> failwith "unexpected store op" let pp_riscv_fence_option = function | 0b0011 -> "rw" -- cgit v1.2.3