comparison 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
comparison
equal deleted inserted replaced
3786:498c6cf70f7e 3787:6ae7a1561b53
41 class ICache : public AbstractICache { 41 class ICache : public AbstractICache {
42 public: 42 public:
43 #ifdef AMD64 43 #ifdef AMD64
44 enum { 44 enum {
45 stub_size = 64, // Size of the icache flush stub in bytes 45 stub_size = 64, // Size of the icache flush stub in bytes
46 line_size = 32, // Icache line size in bytes 46 line_size = 64, // Icache line size in bytes
47 log2_line_size = 5 // log2(line_size) 47 log2_line_size = 6 // log2(line_size)
48 }; 48 };
49 49
50 // Use default implementation 50 // Use default implementation
51 #else 51 #else
52 enum { 52 enum {