KVM: PPC: Book3s PR: Allow access to unprivileged MMCR2 register
[deliverable/linux.git] / arch / powerpc / include / asm / reg.h
index 40f3615bf94072ef3f65679166ab5cd58562c49c..978dada662aec866ad84355982d0788f1251d96b 100644 (file)
 #define   MMCR0_FCHV   0x00000001UL /* freeze conditions in hypervisor mode */
 #define SPRN_MMCR1     798
 #define SPRN_MMCR2     785
+#define SPRN_UMMCR2    769
 #define SPRN_MMCRA     0x312
 #define   MMCRA_SDSYNC 0x80000000UL /* SDAR synced with SIAR */
 #define   MMCRA_SDAR_DCACHE_MISS 0x40000000UL
@@ -1256,15 +1257,6 @@ static inline void msr_check_and_clear(unsigned long bits)
                __msr_check_and_clear(bits);
 }
 
-static inline unsigned long mfvtb (void)
-{
-#ifdef CONFIG_PPC_BOOK3S_64
-       if (cpu_has_feature(CPU_FTR_ARCH_207S))
-               return mfspr(SPRN_VTB);
-#endif
-       return 0;
-}
-
 #ifdef __powerpc64__
 #if defined(CONFIG_PPC_CELL) || defined(CONFIG_PPC_FSL_BOOK3E)
 #define mftb()         ({unsigned long rval;                           \
This page took 0.024501 seconds and 5 git commands to generate.