diff --git a/lib/sbi/sbi_misaligned_ldst.c b/lib/sbi/sbi_misaligned_ldst.c index 400372cd..b59efa01 100644 --- a/lib/sbi/sbi_misaligned_ldst.c +++ b/lib/sbi/sbi_misaligned_ldst.c @@ -72,7 +72,6 @@ int sbi_misaligned_load_handler(u32 hartid, ulong mcause, shift = 8 * (sizeof(ulong) - len); } else if ((insn & INSN_MASK_LHU) == INSN_MATCH_LHU) { len = 2; -#ifdef __riscv_compressed #if __riscv_xlen >= 64 } else if ((insn & INSN_MASK_C_LD) == INSN_MATCH_C_LD) { len = 8; @@ -108,7 +107,6 @@ int sbi_misaligned_load_handler(u32 hartid, ulong mcause, fp = 1; len = 4; #endif -#endif #endif } else { uptrap.epc = regs->mepc; @@ -189,7 +187,6 @@ int sbi_misaligned_store_handler(u32 hartid, ulong mcause, #endif } else if ((insn & INSN_MASK_SH) == INSN_MATCH_SH) { len = 2; -#ifdef __riscv_compressed #if __riscv_xlen >= 64 } else if ((insn & INSN_MASK_C_SD) == INSN_MATCH_C_SD) { len = 8; @@ -221,7 +218,6 @@ int sbi_misaligned_store_handler(u32 hartid, ulong mcause, len = 4; val.data_ulong = GET_F32_RS2C(insn, regs); #endif -#endif #endif } else { uptrap.epc = regs->mepc;