Mercurial > hg > truffle
diff src/cpu/x86/vm/icache_x86.hpp @ 3787:6ae7a1561b53
6990015: Incorrect Icache line size is used for 64 bit x86
Summary: correct Icache::line_size for x64 and add verification code into vm_version_x86.
Reviewed-by: never, phh
author | kvn |
---|---|
date | Tue, 28 Jun 2011 15:04:39 -0700 |
parents | f95d63e2154a |
children |
line wrap: on
line diff
--- a/src/cpu/x86/vm/icache_x86.hpp Tue Jun 28 14:30:27 2011 -0700 +++ b/src/cpu/x86/vm/icache_x86.hpp Tue Jun 28 15:04:39 2011 -0700 @@ -43,8 +43,8 @@ #ifdef AMD64 enum { stub_size = 64, // Size of the icache flush stub in bytes - line_size = 32, // Icache line size in bytes - log2_line_size = 5 // log2(line_size) + line_size = 64, // Icache line size in bytes + log2_line_size = 6 // log2(line_size) }; // Use default implementation