From 6a5ee2239579cc16492e761aa464937f37401724 Mon Sep 17 00:00:00 2001 From: Pirmin Vogel Date: Tue, 12 Nov 2019 17:25:51 +0100 Subject: [PATCH] [rtl/controller] Remove redundant check in execption handling This commit turns the last case in the exception handling if/else block from an `else if` to an `else`. This is not changing functional behavior as the same condition is checked previously, but removes a `MISSING_ELSE` coverage hole reported by @udinator. Signed-off-by: Pirmin Vogel --- rtl/ibex_controller.sv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtl/ibex_controller.sv b/rtl/ibex_controller.sv index 07b64e35ef..732bc84c63 100644 --- a/rtl/ibex_controller.sv +++ b/rtl/ibex_controller.sv @@ -540,7 +540,7 @@ module ibex_controller ( exc_cause_o = EXC_CAUSE_STORE_ACCESS_FAULT; csr_mtval_o = lsu_addr_last_i; - end else if (load_err_q) begin + end else begin // load_err_q exc_cause_o = EXC_CAUSE_LOAD_ACCESS_FAULT; csr_mtval_o = lsu_addr_last_i; end