summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2006-03-30 10:13:39 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2006-03-30 10:13:39 +0000
commite51490166568744e7838804d890e27cb15cee400 (patch)
tree714d4a79ccbc5f365b03dee423886d2c6233b153 /apps/plugins
parente62152ddf9a7b4f8f7a719f8a3bfc5f1bae83fe3 (diff)
MCF5249 isn't the only Coldfire CPU
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9355 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/rockboy/lcd.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/plugins/rockboy/lcd.c b/apps/plugins/rockboy/lcd.c
index 4fb4dd2dc0..55ae3eafba 100644
--- a/apps/plugins/rockboy/lcd.c
+++ b/apps/plugins/rockboy/lcd.c
@@ -48,7 +48,7 @@ struct scan scan IBSS_ATTR;
#define WV (scan.wv)
byte patpix[4096][8][8]
-#if CONFIG_CPU == MCF5249 && !defined(SIMULATOR)
+#if defined(CPU_COLDFIRE) && !defined(SIMULATOR)
__attribute__ ((aligned(16))) /* to profit from burst mode */
#endif
;
@@ -109,7 +109,7 @@ fb_data *vdest;
void updatepatpix(void)
{
int i, j;
-#if ((CONFIG_CPU != SH7034) && (CONFIG_CPU != MCF5249)) || defined(SIMULATOR)
+#if ((CONFIG_CPU != SH7034) && !defined(CPU_COLDFIRE)) || defined(SIMULATOR)
int k, a, c;
#endif
byte *vram = lcd.vbank[0];
@@ -192,7 +192,7 @@ void updatepatpix(void)
: /* clobbers */
"r0", "r1", "r2"
);
-#elif CONFIG_CPU == MCF5249 && !defined(SIMULATOR)
+#elif defined(CPU_COLDFIRE) && !defined(SIMULATOR)
asm volatile (
"move.b (%2),%%d2 \n"
"move.b (1,%2),%%d1 \n"
@@ -347,7 +347,7 @@ void updatepatpix(void)
: /* clobbers */
"r0", "r1"
);
-#elif CONFIG_CPU == MCF5249 && !defined(SIMULATOR)
+#elif defined(CPU_COLDFIRE) && !defined(SIMULATOR)
asm volatile (
"movem.l (%0),%%d0-%%d3 \n"
"move.l %%d0,%%d4 \n"
@@ -532,7 +532,7 @@ void bg_scan(void)
if (cnt <= 0) return;
while (cnt >= 8)
{
-#if CONFIG_CPU == MCF5249 && !defined(SIMULATOR)
+#if defined(CPU_COLDFIRE) && !defined(SIMULATOR)
asm volatile (
"move.l (%1)+,(%0)+ \n"
"move.l (%1)+,(%0)+ \n"
@@ -567,7 +567,7 @@ void wnd_scan(void)
while (cnt >= 8)
{
-#if CONFIG_CPU == MCF5249 && !defined(SIMULATOR)
+#if defined(CPU_COLDFIRE) && !defined(SIMULATOR)
asm volatile (
"move.l (%1)+,(%0)+ \n"
"move.l (%1)+,(%0)+ \n"
@@ -675,7 +675,7 @@ void bg_scan_color(void)
while (cnt >= 8)
{
src = patpix[*(tile++)][V];
-#if CONFIG_CPU == MCF5249 && !defined(SIMULATOR)
+#if defined(CPU_COLDFIRE) && !defined(SIMULATOR)
asm volatile (
"move.l (%2)+,%%d1 \n"