amends template to fix branching instructions

This commit is contained in:
Eyck-Alexander Jentzsch 2023-05-22 17:00:36 +02:00
parent c792f50427
commit ce5b2e60b9

View File

@ -208,8 +208,10 @@ private:
}
auto cur_pc_val = tu.constant(pc.val, traits::reg_bit_widths[traits::PC]);
pc=pc+4;
gen_set_pc(tu, pc, traits::NEXT_PC);
tu.open_scope();<%instr.behavior.eachLine{%>
${it}<%}%>
tu.close_scope();
vm_base<ARCH>::gen_sync(tu, POST_SYNC,${idx});
gen_trap_check(tu);
return returnValue;