Move cache line size calculation directly into CPU::FlushICache.
authorsvenpanne@chromium.org <svenpanne@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 2 May 2014 12:35:51 +0000 (12:35 +0000)
committersvenpanne@chromium.org <svenpanne@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 2 May 2014 12:35:51 +0000 (12:35 +0000)
commit461bb09b4aca295a408cc3c5a563db374929327f
treea5e3d944b04b7f2724e3aad40f3c2faf54601c03
parentb4c1eda0327fbcb17dfde26d4c1296c3fb56118e
Move cache line size calculation directly into CPU::FlushICache.

This disentagles the initialization/dependency mess quite a bit and
makes things vastly simpler. If the 'mrs' on every flush is too
expensive (which it is hopefully not), the cache line sizes will have
to be instance variables of the CPU class and FlushICache will have to
be a member function. This would involve some more or less tricky
refactorings, which we shouldn't do until we are *really* forced to
do.

BUG=359977
LOG=y
R=rodolph.perfetta@gmail.com

Review URL: https://codereview.chromium.org/269543016

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@21119 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/arm64/cpu-arm64.cc
src/arm64/cpu-arm64.h