stop IdleDet from affecting save states
[picodrive.git] / cpu / sh2 / compiler.c
index 3a2b708..7bd9de0 100644 (file)
@@ -1017,7 +1017,8 @@ static void rcache_unlock_all(void)
     reg_temp[i].flags &= ~HRF_LOCKED;
 }
 
-static inline u32 rcache_used_hreg_mask(void)
+#ifdef DRC_CMP
+static u32 rcache_used_hreg_mask(void)
 {
   u32 mask = 0;
   int i;
@@ -1028,6 +1029,7 @@ static inline u32 rcache_used_hreg_mask(void)
 
   return mask;
 }
+#endif
 
 static void rcache_clean(void)
 {