summaryrefslogtreecommitdiff
path: root/rtl/core
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2022-10-08 19:50:36 -0600
committerAlejandro Soto <alejandro@34project.org>2022-10-08 19:50:36 -0600
commit4ea1cd32da476616c66799d210913b001772a1e2 (patch)
treed6c22b2716a000c89f569c9c2070b587822d89b8 /rtl/core
parentdab6e68a8396475af5acbf53397f93c6b52e2e71 (diff)
Fix writes to PC
Diffstat (limited to '')
-rw-r--r--rtl/core/arm810.sv2
1 files changed, 1 insertions, 1 deletions
diff --git a/rtl/core/arm810.sv b/rtl/core/arm810.sv
index ca98dde..d3b2c6f 100644
--- a/rtl/core/arm810.sv
+++ b/rtl/core/arm810.sv
@@ -20,7 +20,7 @@ module arm810
(
.branch(explicit_branch | wr_pc),
.flush(0), //TODO
- .target(wr_pc ? wr_value[29:0] : branch_target),
+ .target(wr_pc ? wr_value[31:2] : branch_target),
.addr(insn_addr),
.fetched(insn_ready),
.fetch_data(insn_data_rd),