Skip to content

Commit

Permalink
Fixed build errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
ssunny7 committed Mar 14, 2017
1 parent 1d52bc0 commit 3d29a56
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
23 changes: 12 additions & 11 deletions dyninstAPI/src/codegen-aarch64.h
Expand Up @@ -37,6 +37,18 @@ class codeGen;

class insnCodeGen {
public:

enum MoveOp {
MovOp_MOVK = 0xE5,
MovOp_MOVN = 0x25,
MovOp_MOVZ = 0xA5
};

enum LoadStore {
Load,
Store
};

static instructUnion *insnPtr(codeGen &gen);
//static instructUnion *ptrAndInc(codeGen &gen);

Expand Down Expand Up @@ -173,17 +185,6 @@ class insnCodeGen {
static bool modifyData(Address target,
NS_aarch64::instruction &insn,
codeGen &gen);

enum MoveOp {
MovOp_MOVK = 0xE5,
MovOp_MOVN = 0x25,
MovOp_MOVZ = 0xA5
};

enum LoadStore {
Load,
Store
};
};

#endif
2 changes: 1 addition & 1 deletion dyninstAPI/src/emit-aarch64.h
Expand Up @@ -227,7 +227,7 @@ class EmitterAARCH64SaveRegs {
public:
virtual ~EmitterAARCH64SaveRegs() {}

unsigned saveGPRegisters(baseTramp *bt, codeGen &gen, registerSpace *theRegSpace, int numReqGPRs = -1, int &offset);
unsigned saveGPRegisters(baseTramp *bt, codeGen &gen, registerSpace *theRegSpace, int &offset, int numReqGPRs = -1);

unsigned saveFPRegisters(codeGen &gen, registerSpace *theRegSpace, int &offset);

Expand Down
2 changes: 1 addition & 1 deletion dyninstAPI/src/inst-aarch64.C
Expand Up @@ -171,7 +171,7 @@ void EmitterAARCH64SaveRegs::saveFPRegister(codeGen &gen, Register reg, int save

/********************************* Public methods *********************************************/

unsigned EmitterAARCH64SaveRegs::saveGPRegisters(baseTramp *bt, codeGen &gen, registerSpace *theRegSpace, int numReqGPRs, int &offset) {
unsigned EmitterAARCH64SaveRegs::saveGPRegisters(baseTramp *bt, codeGen &gen, registerSpace *theRegSpace, int &offset, int numReqGPRs) {
unsigned ret = 0;
if(numReqGPRs == -1)
numReqGPRs = theRegSpace->numGPRs();
Expand Down

0 comments on commit 3d29a56

Please sign in to comment.