From e51490166568744e7838804d890e27cb15cee400 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Thu, 30 Mar 2006 10:13:39 +0000 Subject: MCF5249 isn't the only Coldfire CPU git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9355 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/rockboy/lcd.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'apps/plugins/rockboy') 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" -- cgit v1.2.3