From 37bc7f679b870b169726e746b75e573db1f3e268 Mon Sep 17 00:00:00 2001 From: plafosse Date: Sun, 26 Jul 2015 14:27:20 -0400 Subject: Adding support for branch delay slots --- architecture.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'architecture.cpp') 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; -- cgit v1.3.1