Branch: refs/heads/thaines/aarch64_fix_calcUsedRegs Home: https://github.com/dyninst/dyninst Commit: 06045ead21bd99e73d503fd6d629f917a2a6f71e https://github.com/dyninst/dyninst/commit/06045ead21bd99e73d503fd6d629f917a2a6f71e Author: Tim Haines <thaines.as...@gmail.com> Date: 2024-12-19 (Thu, 19 Dec 2024)
Changed paths: M dyninstAPI/src/inst-aarch64.C M dyninstAPI/src/parse-aarch64.C Log Message: ----------- Fix register calculation in parse_func::calcUsedRegs for aarch64 The MachRegister ids are no longer guaranteed to be sequential, so performing arithmetic on them may not be valid. Because 'registerSlot' uses aarch64Registers_t to represent registers, MachRegisters need to be transformed using the conversion maps in RegisterConversion-aarch64.C. Those maps use the the base registers x<N> for GPRs and q<N> for FPRs, so the registers are correspondingly transformed before being stored in parse_func::usedRegisters. To unsubscribe from these emails, change your notification settings at https://github.com/dyninst/dyninst/settings/notifications _______________________________________________ Dyninst-api mailing list Dyninst-api@cs.wisc.edu https://lists.cs.wisc.edu/mailman/listinfo/dyninst-api