some portability cleanups
[picodrive.git] / cpu / drc / cmn.c
index cfb0219..acff42c 100644 (file)
@@ -10,7 +10,7 @@
 #include <pico/pico_int.h>
 #include "cmn.h"
 
-u8 __attribute__((aligned(4096))) tcache[DRC_TCACHE_SIZE];
+u8 ALIGNED(4096) tcache[DRC_TCACHE_SIZE];
 
 
 void drc_cmn_init(void)
@@ -20,6 +20,7 @@ void drc_cmn_init(void)
     tcache, sizeof(tcache), ret);
 
 #ifdef __arm__
+  if (PicoOpt & POPT_EN_DRC)
   {
     static int test_done;
     if (!test_done)