Skip to content

Commit 2554792

Browse files
committed
Bugfix cm.jalt
1 parent 5894afa commit 2554792

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

riscv/mmu.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ class mmu_t
303303
T ALWAYS_INLINE fetch_jump_table(reg_t addr) {
304304
T res = 0;
305305
for (size_t i = 0; i < sizeof(T) / sizeof(insn_parcel_t); i++)
306-
res |= (T)fetch_insn_parcel(addr + i * sizeof(insn_parcel_t)) << (i * sizeof(insn_parcel_t));
306+
res |= (T)fetch_insn_parcel(addr + i * sizeof(insn_parcel_t)) << (i * sizeof(insn_parcel_t) * 8);
307307

308308
// table accesses use data endianness, not instruction (little) endianness
309309
return target_big_endian ? to_be(res) : res;

0 commit comments

Comments
 (0)