Open64 (mfef90, whirl2f, and IR tools)
TAG: version-openad; SVN changeset: 916
|
00001 /* 00002 00003 Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved. 00004 00005 This program is free software; you can redistribute it and/or modify it 00006 under the terms of version 2 of the GNU General Public License as 00007 published by the Free Software Foundation. 00008 00009 This program is distributed in the hope that it would be useful, but 00010 WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00012 00013 Further, this software is distributed without any warranty that it is 00014 free of the rightful claim of any third person regarding infringement 00015 or the like. Any license provided herein, whether implied or 00016 otherwise, applies only to this software file. Patent licenses, if 00017 any, provided herein do not apply to combinations of this program with 00018 other software, or any other product whatsoever. 00019 00020 You should have received a copy of the GNU General Public License along 00021 with this program; if not, write the Free Software Foundation, Inc., 59 00022 Temple Place - Suite 330, Boston MA 02111-1307, USA. 00023 00024 Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pky, 00025 Mountain View, CA 94043, or: 00026 00027 http://www.sgi.com 00028 00029 For further information regarding this notice, see: 00030 00031 http://oss.sgi.com/projects/GenInfo/NoticeExplan 00032 00033 */ 00034 00035 00036 // This may look like C code, but it is really -*- C++ -*- 00037 // 00038 // ==================================================================== 00039 // ==================================================================== 00040 // 00041 // Revision history: 00042 // 14-Nov-96 - Original Version, copied from cache_parameters.cxx. 00043 // 00044 // Description: 00045 // 00046 // Target specific logic for config_cache.cxx. 00047 // 00048 // ==================================================================== 00049 // ==================================================================== 00050 00051 #ifdef _KEEP_RCS_ID 00052 static const char source_file[] = __FILE__; 00053 #endif /* _KEEP_RCS_ID */ 00054 00055 #include "defs.h" 00056 #include "errors.h" 00057 #include "config_cache.h" 00058 #include "config_lno.h" 00059 #include "config_targ.h" 00060 #include "config_platform.h" 00061 00062 void MHD::Initialize() 00063 { 00064 if (Target == TARGET_ITANIUM) { 00065 00066 Non_Blocking_Loads = TRUE; 00067 Loop_Overhead_Base = 18; 00068 Loop_Overhead_Memref = 1; 00069 TLB_Trustworthiness = 75; 00070 TLB_NoBlocking_Model = TRUE; 00071 00072 L[0] = MHD_LEVEL(MHD_TYPE_CACHE, // Type 00073 96*1024, // Size 00074 64, // Line Size 00075 21, // Clean Miss Penalty 00076 21, // Dirty Miss Penalty 00077 6, // Associativity 00078 96, // TLB Entries 00079 32*1024, // Page Size 00080 50, // TLB Clean Miss Penalty ? 00081 50, // TLB Dirty Miss Penalty ? 00082 3.0, // Typical Outstanding Loads ? 00083 0.8, // Load_OP_Overlap_1 ? 00084 0.4, // Load_OP_Overlap_2 ? 00085 50); // Pct_Excess_Writes_Nonhidable ? 00086 00087 // TODO: this might be too generous: in multiple processor situations, 00088 // there is a cost to loading the shared bus/memory. 00089 L[1] = MHD_LEVEL(MHD_TYPE_CACHE, 00090 4*1024*1024, 00091 64, 00092 120, // ? 00093 200, // ? 00094 4, 00095 -1, 00096 -1, 00097 -1, 00098 -1, 00099 (LNO_Run_Prefetch ? 1.8 : 1.0), // ? 00100 (LNO_Run_Prefetch ? 0.7 : 0.1), // ? 00101 (LNO_Run_Prefetch ? 0.3 : 0.05), // ? 00102 (LNO_Run_Prefetch ? 25 : 50)); // ? 00103 00104 #ifdef Is_True_On 00105 if (LNO_Verbose) 00106 printf ("Target Processor: TARGET_ITANIUM. %lld (%d), %lld (%d)\n", 00107 L[0].Effective_Size, L[0].Line_Size, 00108 L[1].Effective_Size, L[1].Line_Size); 00109 #endif 00110 } else { 00111 FmtAssert(FALSE, ("Unknown target in MHD::Initialize\n")); 00112 } 00113 }