update generated TGC-C VM

This commit is contained in:
Eyck Jentzsch 2021-09-29 00:44:17 +02:00
parent aa84a27a5b
commit 17ee7b138d

View File

@ -517,7 +517,7 @@ private:
// execute instruction
try {
{
int32_t new_pc = *(X+rs1) + (int16_t)sext<12>(imm);
int32_t new_pc = (*(X+rs1) + (int16_t)sext<12>(imm)) & ~ 1;
if(new_pc % traits::INSTR_ALIGNMENT) {
raise(0, 0);
}