instead of setting pc to sim_end_pc, we should set r14.