diff options
author | Andrew Waterman <andrew@sifive.com> | 2024-05-31 01:22:34 -0700 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2024-05-31 01:22:34 -0700 |
commit | 148e6d63e036a611537f7afbee771d9b83d348fb (patch) | |
tree | fbff5a98e67376533041f8ae30f3e5ac43b6c64f /riscv | |
parent | 3a70f84b8a2249c92d35c2229b48ca5735a543fa (diff) | |
download | riscv-isa-sim-148e6d63e036a611537f7afbee771d9b83d348fb.zip riscv-isa-sim-148e6d63e036a611537f7afbee771d9b83d348fb.tar.gz riscv-isa-sim-148e6d63e036a611537f7afbee771d9b83d348fb.tar.bz2 |
No need to check if Zicfilp is enabled before checking ELP
ELP will be zero if Zicfilp is not enabled.
Diffstat (limited to 'riscv')
-rw-r--r-- | riscv/processor.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/riscv/processor.cc b/riscv/processor.cc index 7a63f3c..0564731 100644 --- a/riscv/processor.cc +++ b/riscv/processor.cc @@ -993,9 +993,7 @@ const char* processor_t::get_symbol(uint64_t addr) void processor_t::execute_insn_prehook(insn_t insn) { - if (extension_enabled(EXT_ZICFILP)) { - zicfilp_check_if_lpad_required(state.elp, insn); - } + zicfilp_check_if_lpad_required(state.elp, insn); } void processor_t::disasm(insn_t insn) |