1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 206 unchanged lines hidden (view full) --- 215 IPR_DC_MODE, 216 IPR_MAF_MODE, 217 218 NumInternalProcRegs // number of IPR registers 219 }; 220 221 inline bool IprIsWritable(int index) 222 { |
223 return index < MinReadOnlyIpr || index > MaxReadOnlyIpr; |
224 } 225 226 inline bool IprIsReadable(int index) 227 { |
228 return index < MinWriteOnlyIpr || index > MaxWriteOnlyIpr; |
229 } 230 231 extern md_ipr_names MiscRegIndexToIpr[NumInternalProcRegs]; 232 extern int IprToMiscRegIndex[MaxInternalProcRegs]; 233 234 void initializeIprTable(); 235} 236 237#endif |