mirror of
https://github.com/JonathanSalwan/Triton
synced 2026-08-17 10:23:04 -04:00
Merge pull request #1445 from Garfield1002/master
fix: popcnt flags calculation
This commit is contained in:
commit
8183c68fd5
1 changed files with 13 additions and 0 deletions
|
|
@ -12138,6 +12138,19 @@ namespace triton {
|
|||
/* Spread taint */
|
||||
expr->isTainted = this->taintEngine->taintAssignment(dst, src);
|
||||
|
||||
/* Update symbolic flags */
|
||||
this->clearFlag_s(inst, this->architecture->getRegister(ID_REG_X86_OF),
|
||||
"Clears overflow flag");
|
||||
this->clearFlag_s(inst, this->architecture->getRegister(ID_REG_X86_SF),
|
||||
"Clears sign flag");
|
||||
this->clearFlag_s(inst, this->architecture->getRegister(ID_REG_X86_AF),
|
||||
"Clears auxiliary flag");
|
||||
this->clearFlag_s(inst, this->architecture->getRegister(ID_REG_X86_CF),
|
||||
"Clears carry flag");
|
||||
this->clearFlag_s(inst, this->architecture->getRegister(ID_REG_X86_PF),
|
||||
"Clears parity flag");
|
||||
this->zf_s(inst, expr, dst, true);
|
||||
|
||||
/* Update the symbolic control flow */
|
||||
this->controlFlow_s(inst);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue