1
0
Fork 0
forked from len0rd/rockbox

MCF5249 isn't the only Coldfire CPU

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9355 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2006-03-30 10:13:39 +00:00
parent e62152ddf9
commit e514901665

View file

@ -48,7 +48,7 @@ struct scan scan IBSS_ATTR;
#define WV (scan.wv) #define WV (scan.wv)
byte patpix[4096][8][8] 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 */ __attribute__ ((aligned(16))) /* to profit from burst mode */
#endif #endif
; ;
@ -109,7 +109,7 @@ fb_data *vdest;
void updatepatpix(void) void updatepatpix(void)
{ {
int i, j; 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; int k, a, c;
#endif #endif
byte *vram = lcd.vbank[0]; byte *vram = lcd.vbank[0];
@ -192,7 +192,7 @@ void updatepatpix(void)
: /* clobbers */ : /* clobbers */
"r0", "r1", "r2" "r0", "r1", "r2"
); );
#elif CONFIG_CPU == MCF5249 && !defined(SIMULATOR) #elif defined(CPU_COLDFIRE) && !defined(SIMULATOR)
asm volatile ( asm volatile (
"move.b (%2),%%d2 \n" "move.b (%2),%%d2 \n"
"move.b (1,%2),%%d1 \n" "move.b (1,%2),%%d1 \n"
@ -347,7 +347,7 @@ void updatepatpix(void)
: /* clobbers */ : /* clobbers */
"r0", "r1" "r0", "r1"
); );
#elif CONFIG_CPU == MCF5249 && !defined(SIMULATOR) #elif defined(CPU_COLDFIRE) && !defined(SIMULATOR)
asm volatile ( asm volatile (
"movem.l (%0),%%d0-%%d3 \n" "movem.l (%0),%%d0-%%d3 \n"
"move.l %%d0,%%d4 \n" "move.l %%d0,%%d4 \n"
@ -532,7 +532,7 @@ void bg_scan(void)
if (cnt <= 0) return; if (cnt <= 0) return;
while (cnt >= 8) while (cnt >= 8)
{ {
#if CONFIG_CPU == MCF5249 && !defined(SIMULATOR) #if defined(CPU_COLDFIRE) && !defined(SIMULATOR)
asm volatile ( asm volatile (
"move.l (%1)+,(%0)+ \n" "move.l (%1)+,(%0)+ \n"
"move.l (%1)+,(%0)+ \n" "move.l (%1)+,(%0)+ \n"
@ -567,7 +567,7 @@ void wnd_scan(void)
while (cnt >= 8) while (cnt >= 8)
{ {
#if CONFIG_CPU == MCF5249 && !defined(SIMULATOR) #if defined(CPU_COLDFIRE) && !defined(SIMULATOR)
asm volatile ( asm volatile (
"move.l (%1)+,(%0)+ \n" "move.l (%1)+,(%0)+ \n"
"move.l (%1)+,(%0)+ \n" "move.l (%1)+,(%0)+ \n"
@ -675,7 +675,7 @@ void bg_scan_color(void)
while (cnt >= 8) while (cnt >= 8)
{ {
src = patpix[*(tile++)][V]; src = patpix[*(tile++)][V];
#if CONFIG_CPU == MCF5249 && !defined(SIMULATOR) #if defined(CPU_COLDFIRE) && !defined(SIMULATOR)
asm volatile ( asm volatile (
"move.l (%2)+,%%d1 \n" "move.l (%2)+,%%d1 \n"