corrects illegal instruction for llvm

This commit is contained in:
Eyck-Alexander Jentzsch 2024-07-18 14:04:23 +02:00
parent 236d12d7f5
commit d42d2ce533
2 changed files with 6 additions and 2 deletions

View File

@ -214,7 +214,9 @@ private:
this->set_tval(instr);
this->gen_raise_trap(0, 2); // illegal instruction trap
this->gen_sync(iss::POST_SYNC, instr_descr.size());
this->gen_instr_epilogue(this->leave_blk);
bb = this->leave_blk;
this->gen_instr_epilogue(bb);
this->builder.CreateBr(bb);
return std::make_tuple(BRANCH, nullptr);
}
//decoding functionality

View File

@ -4863,7 +4863,9 @@ private:
this->set_tval(instr);
this->gen_raise_trap(0, 2); // illegal instruction trap
this->gen_sync(iss::POST_SYNC, instr_descr.size());
this->gen_instr_epilogue(this->leave_blk);
bb = this->leave_blk;
this->gen_instr_epilogue(bb);
this->builder.CreateBr(bb);
return std::make_tuple(BRANCH, nullptr);
}
//decoding functionality