summaryrefslogtreecommitdiff
path: root/src/arch/alpha/ipr.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/alpha/ipr.hh')
-rw-r--r--src/arch/alpha/ipr.hh9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/arch/alpha/ipr.hh b/src/arch/alpha/ipr.hh
index 17518c0fe..51c1489b8 100644
--- a/src/arch/alpha/ipr.hh
+++ b/src/arch/alpha/ipr.hh
@@ -218,6 +218,15 @@ namespace AlphaISA
NumInternalProcRegs // number of IPR registers
};
+ inline bool IprIsWritable(int index)
+ {
+ return index < minReadOnlyIpr || index > maxReadOnlyIpr;
+ }
+
+ inline bool IprIsReadable(int index)
+ {
+ return index < minWriteOnlyIpr || index > maxWriteOnlyIpr;
+ }
extern md_ipr_names MiscRegIndexToIpr[NumInternalProcRegs];
extern int IprToMiscRegIndex[MaxInternalProcRegs];