update generated TGC-C VM
This commit is contained in:
parent
aa84a27a5b
commit
17ee7b138d
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user