summaryrefslogtreecommitdiff
path: root/riscv/riscv_jalr_seq.sail
diff options
context:
space:
mode:
Diffstat (limited to 'riscv/riscv_jalr_seq.sail')
-rw-r--r--riscv/riscv_jalr_seq.sail19
1 files changed, 0 insertions, 19 deletions
diff --git a/riscv/riscv_jalr_seq.sail b/riscv/riscv_jalr_seq.sail
deleted file mode 100644
index fcf9526e..00000000
--- a/riscv/riscv_jalr_seq.sail
+++ /dev/null
@@ -1,19 +0,0 @@
-/* The definition for the sequential model. */
-
-function clause execute (RISCV_JALR(imm, rs1, rd)) = {
-/* For the sequential model, the memory-model definition doesn't work directly
- if rs1 = rd. We would effectively have to keep a regfile for reads and another for
- writes, and swap on instruction completion. This could perhaps be optimized in
- some manner, but for now, we just keep a reordered definition to improve simulator
- performance.
-*/
- let newPC : xlenbits = (X(rs1) + EXTS(imm))[63..1] @ 0b0;
- if newPC[1] & (~ (haveRVC())) then {
- handle_mem_exception(newPC, E_Fetch_Addr_Align);
- false;
- } else {
- X(rd) = nextPC;
- nextPC = newPC;
- true
- }
-}