summaryrefslogtreecommitdiff
path: root/architecture.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'architecture.cpp')
-rw-r--r--architecture.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/architecture.cpp b/architecture.cpp
index 60585826..6c7e0e4c 100644
--- a/architecture.cpp
+++ b/architecture.cpp
@@ -14,10 +14,11 @@ InstructionInfo::InstructionInfo()
}
-void InstructionInfo::AddBranch(BNBranchType type, uint64_t target, Architecture* arch)
+void InstructionInfo::AddBranch(BNBranchType type, uint64_t target, Architecture* arch, bool hasDelaySlot)
{
if (branchCount >= BN_MAX_INSTRUCTION_BRANCHES)
return;
+ branchDelay = hasDelaySlot;
branchType[branchCount] = type;
branchTarget[branchCount] = target;
branchArch[branchCount++] = arch ? arch->GetArchitectureObject() : nullptr;