Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1162)

Unified Diff: src/ppc/macro-assembler-ppc.cc

Issue 1806893002: Reland PPC portion of "Detect cache line size on Linux for PPC hosts." (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/ppc/cpu-ppc.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ppc/macro-assembler-ppc.cc
diff --git a/src/ppc/macro-assembler-ppc.cc b/src/ppc/macro-assembler-ppc.cc
index 2c9aa258721a3ab14b417953aedf704a22fb5574..100ed2f328837674838aa5018ca0d1d7a71fcd3e 100644
--- a/src/ppc/macro-assembler-ppc.cc
+++ b/src/ppc/macro-assembler-ppc.cc
@@ -3453,39 +3453,6 @@ void MacroAssembler::CallCFunctionHelper(Register function,
}
}
-void MacroAssembler::FlushICache(Register address, size_t size,
- Register scratch) {
- if (CpuFeatures::IsSupported(INSTR_AND_DATA_CACHE_COHERENCY)) {
- sync();
- icbi(r0, address);
- isync();
- return;
- }
-
- Label done;
-
- dcbf(r0, address);
- sync();
- icbi(r0, address);
- isync();
-
- // This code handles ranges which cross a single cacheline boundary.
- // scratch is last cacheline which intersects range.
- const int kCacheLineSizeLog2 = WhichPowerOf2(CpuFeatures::cache_line_size());
-
- DCHECK(size > 0 && size <= (size_t)(1 << kCacheLineSizeLog2));
- addi(scratch, address, Operand(size - 1));
- ClearRightImm(scratch, scratch, Operand(kCacheLineSizeLog2));
- cmpl(scratch, address);
- ble(&done);
-
- dcbf(r0, scratch);
- sync();
- icbi(r0, scratch);
- isync();
-
- bind(&done);
-}
void MacroAssembler::DecodeConstantPoolOffset(Register result,
Register location) {
« no previous file with comments | « src/ppc/cpu-ppc.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698