Skip to content

Commit

Permalink
Fix the handling of trap instruction on ARM for register liveness ana…
Browse files Browse the repository at this point in the history
…lysis
  • Loading branch information
mxz297 committed Oct 6, 2019
1 parent 2955713 commit ce93c6e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dataflowAPI/src/liveness.C
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,9 @@ ReadWriteInfo LivenessAnalyzer::calcRWSets(Instruction curInsn, Block *blk, Addr
if (curInsn.getOperation().getID() == power_op_svcs) {
isSyscall = true;
}
if (curInsn.getOperation().getID() == aarch64_op_svc) {
isSyscall = true;
}
if (isInterrupt || isSyscall) {
ret.read |= (abi->getSyscallReadRegisters());
ret.written |= (abi->getSyscallWrittenRegisters());
Expand Down

0 comments on commit ce93c6e

Please sign in to comment.