[RV64_DYNAREC] Fixed pending flags for large 8 & 16 bit const shifts (#1728)

This commit is contained in:
xctan 2024-08-10 15:17:02 +08:00 committed by GitHub
parent 2a07636623
commit 4187581be5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -80,6 +80,9 @@ void emit_shl8c(dynarec_rv64_t* dyn, int ninst, int s1, uint32_t c, int s3, int
}
}
MV(s1, xZR);
IFX(X_PEND) {
SB(s1, xEmu, offsetof(x64emu_t, res));
}
// OF nop
// SF nop
// AF nop
@ -391,6 +394,9 @@ void emit_shl16c(dynarec_rv64_t* dyn, int ninst, int s1, uint32_t c, int s3, int
}
}
MV(s1, xZR);
IFX(X_PEND) {
SH(s1, xEmu, offsetof(x64emu_t, res));
}
// OF nop
// SF nop
// AF nop