Skip to content

Commit

Permalink
Merge pull request #25 from shaqed/main
Browse files Browse the repository at this point in the history
Add TC option to uc_get_pc function
  • Loading branch information
wtdcode authored May 5, 2024
2 parents 63aab0f + 442d53e commit 764b66b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions unicornafl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,8 @@ static uint64_t uc_get_pc(uc_engine* uc) {
uc_reg_read(uc, UC_S390X_REG_PC, &pc);
} else if (arch == UC_ARCH_ARM64) {
uc_reg_read(uc, UC_ARM64_REG_PC, &pc);
} else if (arch == UC_ARCH_TRICORE) {
uc_reg_read(uc, UC_TRICORE_REG_PC, &pc);
}

return pc;
Expand Down

0 comments on commit 764b66b

Please sign in to comment.