Index: src/base/cpu.h |
diff --git a/src/base/cpu.h b/src/base/cpu.h |
index fe8e1029757f0d37806247366b307eb3e3c13ad7..36b60acbc31d806d660681421ce960f265fdb3ab 100644 |
--- a/src/base/cpu.h |
+++ b/src/base/cpu.h |
@@ -48,6 +48,9 @@ class CPU FINAL { |
static const int QUALCOMM = 0x51; |
int architecture() const { return architecture_; } |
int part() const { return part_; } |
+ int cache_line_size() const { return cache_line_size_; } |
Sven Panne
2015/01/08 10:13:53
We need to be more specific here *which* kind of c
michael_dawson
2015/01/08 23:51:11
This change is an optimization only needed for som
|
+ |
+ // ARM-specific part codes |
static const int ARM_CORTEX_A5 = 0xc05; |
static const int ARM_CORTEX_A7 = 0xc07; |
static const int ARM_CORTEX_A8 = 0xc08; |
@@ -55,6 +58,17 @@ class CPU FINAL { |
static const int ARM_CORTEX_A12 = 0xc0c; |
static const int ARM_CORTEX_A15 = 0xc0f; |
+ // PPC-specific part codes |
+ enum { |
+ PPC_POWER5, |
+ PPC_POWER6, |
+ PPC_POWER7, |
+ PPC_POWER8, |
+ PPC_G4, |
+ PPC_G5, |
+ PPC_PA6T |
+ }; |
+ |
// General features |
bool has_fpu() const { return has_fpu_; } |
@@ -93,6 +107,7 @@ class CPU FINAL { |
int implementer_; |
int architecture_; |
int part_; |
+ int cache_line_size_; |
bool has_fpu_; |
bool has_cmov_; |
bool has_sahf_; |