提交 8fa364be 编写于 作者: Z Zihao Yu

riscv{32,64},exec: do not mask the LSB in jalr for a non-interpreter engine

* the hardware will do this for us
上级 133cb2aa
......@@ -9,7 +9,9 @@ static inline make_EHelper(jal) {
static inline make_EHelper(jalr) {
rtl_addi(s, s0, dsrc1, id_src2->imm);
#ifdef __ENGINE_interpreter__
rtl_andi(s, s0, s0, ~0x1u);
#endif
rtl_jr(s, s0);
rtl_li(s, ddest, s->seq_pc);
......
......@@ -9,7 +9,9 @@ static inline make_EHelper(jal) {
static inline make_EHelper(jalr) {
rtl_addi(s, s0, dsrc1, id_src2->imm);
#ifdef __ENGINE_interpreter__
rtl_andi(s, s0, s0, ~0x1lu);
#endif
rtl_jr(s, s0);
rtl_li(s, ddest, s->seq_pc);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册