diff options
Diffstat (limited to 'riscv/decode.h')
-rw-r--r-- | riscv/decode.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/decode.h b/riscv/decode.h index 596a2ad..8fc8ada 100644 --- a/riscv/decode.h +++ b/riscv/decode.h @@ -206,7 +206,7 @@ private: } while(0) #define set_pc_and_serialize(x) \ - do { reg_t __npc = (x); \ + do { reg_t __npc = (x) & p->pc_alignment_mask(); \ npc = PC_SERIALIZE_AFTER; \ STATE.pc = __npc; \ } while(0) |