Fix large cache support on amd64 arch
Merge pull request #1947 from Gelmir/x64_cache_fix

Fix large cache support on amd64 arch