X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=cpu%2Fdrc%2Fcmn.c;h=a07dcbddff53a6747d8d35a27c3ffe4488a829cf;hb=4cdacae8ddd5aae15a7b670efffd5688ec97371f;hp=cfb0219c3a947384e5eddb22fbeda3137f805f36;hpb=570dde615d960c9f9ba8e15d95634816ad544c77;p=picodrive.git diff --git a/cpu/drc/cmn.c b/cpu/drc/cmn.c index cfb0219..a07dcbd 100644 --- a/cpu/drc/cmn.c +++ b/cpu/drc/cmn.c @@ -10,7 +10,11 @@ #include #include "cmn.h" +#ifdef _MSC_VER +u8 tcache[DRC_TCACHE_SIZE]; +#else u8 __attribute__((aligned(4096))) tcache[DRC_TCACHE_SIZE]; +#endif void drc_cmn_init(void) @@ -20,6 +24,7 @@ void drc_cmn_init(void) tcache, sizeof(tcache), ret); #ifdef __arm__ + if (PicoOpt & POPT_EN_DRC) { static int test_done; if (!test_done)