mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 02:09:44 +02:00
Decompiler support for default data space
This commit is contained in:
parent
660062691a
commit
46e8a54948
21 changed files with 97 additions and 65 deletions
|
@ -7348,7 +7348,7 @@ RulePtrFlow::RulePtrFlow(const string &g,Architecture *conf)
|
|||
: Rule( g, 0, "ptrflow")
|
||||
{
|
||||
glb = conf;
|
||||
hasTruncations = glb->getDefaultSpace()->isTruncated();
|
||||
hasTruncations = glb->getDefaultDataSpace()->isTruncated();
|
||||
}
|
||||
|
||||
void RulePtrFlow::getOpList(vector<uint4> &oplist) const
|
||||
|
@ -7486,7 +7486,7 @@ int4 RulePtrFlow::applyOp(PcodeOp *op,Funcdata &data)
|
|||
case CPUI_CALLIND:
|
||||
case CPUI_BRANCHIND:
|
||||
vn = op->getIn(0);
|
||||
spc = data.getArch()->getDefaultSpace();
|
||||
spc = data.getArch()->getDefaultCodeSpace();
|
||||
if (vn->getSize() > spc->getAddrSize()) {
|
||||
vn = truncatePointer(spc,op,vn,0,data);
|
||||
madeChange = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue