[llvm-commits] CVS: reopt/lib/TraceCache/VirtualMem.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Mon Apr 26 14:51:02 PDT 2004
Changes in directory reopt/lib/TraceCache:
VirtualMem.cpp updated: 1.16 -> 1.17
---
Log message:
Document VirtualMem::writeBranchInstruction().
---
Diffs of the changes: (+7 -3)
Index: reopt/lib/TraceCache/VirtualMem.cpp
diff -u reopt/lib/TraceCache/VirtualMem.cpp:1.16 reopt/lib/TraceCache/VirtualMem.cpp:1.17
--- reopt/lib/TraceCache/VirtualMem.cpp:1.16 Fri Apr 23 16:25:10 2004
+++ reopt/lib/TraceCache/VirtualMem.cpp Mon Apr 26 14:49:59 2004
@@ -108,10 +108,14 @@
}
}
-//write branch inst, followed by a null inst in delay slot
-//
+/// writeBranchInstruction - Create a BA,A (Branch Always with Prediction
+/// with Annul bit set) instruction from LOCATION to TARGET, and write it to
+/// the address LOCATION. (The annul bit is set so that the branch's delay
+/// slot instruction will be annulled.)
+///
void VirtualMem::writeBranchInstruction(uint64_t location, uint64_t target){
- //create branch will annul bit set
+ // The first argument to getDepJumpInstr sets the annul bit and the "always"
+ // condition.
unsigned int instToWrite = getDepJumpInstr(0x30800000, target, location);
writeInstToVM(location, instToWrite);
}
More information about the llvm-commits
mailing list