Skip to content

Commit b1c98aa

Browse files
committed
Update execute.cpp
1 parent 023feac commit b1c98aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sim/simx/execute.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ void Emulator::execute(const Instr &instr, uint32_t wid, instr_trace_t *trace) {
657657
// RV32I: J
658658
trace->fu_type = FUType::ALU;
659659
trace->alu_type = AluType::BRANCH;
660-
next_pc = immsrc;
660+
next_pc = warp.PC + (immsrc >> 1);
661661
trace->fetch_stall = true;
662662
rd_write = true;
663663
break;

0 commit comments

Comments
 (0)