Index: src/base/cpu.h |
diff --git a/src/base/cpu.h b/src/base/cpu.h |
index eb51674df53c445a336a2f84e17f9bf0732c4de9..13324730e82c0fc260cfc1a8730d7d60c1d98100 100644 |
--- a/src/base/cpu.h |
+++ b/src/base/cpu.h |
@@ -55,6 +55,18 @@ class CPU V8_FINAL { |
static const int ARM_CORTEX_A12 = 0xc0c; |
static const int ARM_CORTEX_A15 = 0xc0f; |
+ // PPC-specific part codes |
+ int cache_line_size() const { return cache_line_size_; } |
+ enum { |
+ PPC_POWER5, |
+ PPC_POWER6, |
+ PPC_POWER7, |
+ PPC_POWER8, |
+ PPC_G4, |
+ PPC_G5, |
+ PPC_PA6T |
+ }; |
+ |
// General features |
bool has_fpu() const { return has_fpu_; } |
@@ -88,6 +100,7 @@ class CPU V8_FINAL { |
int implementer_; |
int architecture_; |
int part_; |
+ int cache_line_size_; |
bool has_fpu_; |
bool has_cmov_; |
bool has_sahf_; |