Use memcpy for word copy on blackfin to avoid alignment errors.

This commit is contained in:
MelwareDE 2009-07-21 13:26:19 +00:00
parent 8b5d4bfc1b
commit ee3422402f
1 changed files with 8 additions and 0 deletions

View File

@ -430,10 +430,18 @@ static unsigned char *cpars[] = {
#else
#ifdef __bfin__ /* Blackfin */
#define wordTLcpy(x,y) memcpy(x,y,2);
#else
#define wordTLcpy(x,y) *(_cword *)(x)=*(_cword *)(y);
#endif
#define dwordTLcpy(x,y) memcpy(x,y,4);
#ifdef __bfin__ /* Blackfin */
#define wordTRcpy(x,y) memcpy(y,x,2);
#else
#define wordTRcpy(x,y) *(_cword *)(y)=*(_cword *)(x);
#endif
#define dwordTRcpy(x,y) memcpy(y,x,4);
#define qwordTLcpy(x,y) memcpy(x,y,8);