[DynInst_API:] [dyninst/dyninst] b6a340: Moved all register saving/restoring functions to o...


Date: Wed, 01 Mar 2017 14:51:31 -0800
From: Sunny Shah <shah28@xxxxxxxx>
Subject: [DynInst_API:] [dyninst/dyninst] b6a340: Moved all register saving/restoring functions to o...
  Branch: refs/heads/arm64/feature/relocation
  Home:   https://github.com/dyninst/dyninst
  Commit: b6a340b8508c74691d42e7468179c6765c0cd017
      https://github.com/dyninst/dyninst/commit/b6a340b8508c74691d42e7468179c6765c0cd017
  Author: Sunny Shah <shah28@xxxxxxxx>
  Date:   2017-03-01 (Wed, 01 Mar 2017)

  Changed paths:
    M common/src/arch-aarch64.h
    M dyninstAPI/src/emit-aarch64.h
    M dyninstAPI/src/inst-aarch64.C
    M dyninstAPI/src/inst-aarch64.h

  Log Message:
  -----------
  Moved all register saving/restoring functions to one of two new classes
and removed the definitions from the inst-aarch64 header.

This commit moves all functions that handle register saving/restoring
for the base tramp to one of two new classes: EmitterAARCH64SaveRegs and
EmitterAARCH64RestoreRegs. The class definitions go in the emit-aarch64
file with their implementation in the inst-aarch64 file.

baseTramp::generateSaves/generateRestores will have an instance of one
of these classes as appropriate and call only the public methods of the
class. None of the methods for saving/restoring individual regs are now
public: the only public methods are those that save/restore ALL
GPRs/FPRs/SPRs.


[← Prev in Thread] Current Thread [Next in Thread→]
  • [DynInst_API:] [dyninst/dyninst] b6a340: Moved all register saving/restoring functions to o..., Sunny Shah <=