mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-18 05:12:33 +08:00
2002-02-04 Michael Snyder <msnyder@redhat.com>
* gdb.base/ovlymgr.c (ovly_copy): Generalize for targets other than d10v and m32r.
This commit is contained in:
@ -185,11 +185,6 @@ D10VTranslate (unsigned long logical,
|
||||
static void
|
||||
ovly_copy (unsigned long dst, unsigned long src, long size)
|
||||
{
|
||||
#ifdef __M32R__
|
||||
memcpy ((void *) dst, (void *) src, size);
|
||||
return;
|
||||
#endif /* M32R */
|
||||
|
||||
#ifdef __D10V__
|
||||
unsigned long *s, *d, tmp;
|
||||
short dmap_src, dmap_dst;
|
||||
@ -220,6 +215,9 @@ ovly_copy (unsigned long dst, unsigned long src, long size)
|
||||
D10VTranslate (dst, &dmap_dst, &d);
|
||||
}
|
||||
DMAP = dmap_save;
|
||||
#else
|
||||
memcpy ((void *) dst, (void *) src, size);
|
||||
#endif /* D10V */
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user