diff options
| author | plafosse <peter@vector35.com> | 2015-07-26 14:27:20 -0400 |
|---|---|---|
| committer | plafosse <peter@vector35.com> | 2015-07-26 14:27:20 -0400 |
| commit | 37bc7f679b870b169726e746b75e573db1f3e268 (patch) | |
| tree | 937a67b631e10c76208c343bf07279ec3ec922c3 /architecture.cpp | |
| parent | 8901295fceabdd598e6f63e81ba79d6c5e503f4a (diff) | |
Adding support for branch delay slots
Diffstat (limited to 'architecture.cpp')
| -rw-r--r-- | architecture.cpp | 3 |
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; |
