Skip to content

Commit

Permalink
Remove translation for emulation shadow pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Haines committed Dec 16, 2021
1 parent 1e47ddf commit 9b903fb
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions dyninstAPI/src/IAPI_to_AST.C
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,7 @@ void ASTFactory::visit(Dereference* )
{
AstNodePtr effaddr = m_stack.back();
m_stack.pop_back();
// We need to translate the addr to handle emulation shadow pages
// before we dereference
std::vector<AstNodePtr> args;
args.push_back(effaddr);
args.push_back(AstNode::operandNode(AstNode::Constant, (void *) 0xdeadbeef));
args.push_back(AstNode::operandNode(AstNode::Constant, (void *) 0xcafebabe));
AstNodePtr funcCall = AstNode::funcCallNode("RTtranslateMemory", args);
m_stack.push_back(AstNode::operandNode(AstNode::DataIndir, funcCall));
m_stack.push_back(AstNode::operandNode(AstNode::DataIndir, effaddr));
}

void ASTFactory::visit(Immediate* i)
Expand Down

0 comments on commit 9b903fb

Please sign in to comment.