diff options
author | Michael Snyder <msnyder@vmware.com> | 2002-02-05 03:44:25 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2002-02-05 03:44:25 +0000 |
commit | fe6fdd96e9e398466a8313819d23f15e02598bc4 (patch) | |
tree | b4ea93bfba688107566f0fee5a436ceb021f2b5b /gdb/testsuite/gdb.base/ovlymgr.c | |
parent | 899f54f5ee7e2daae5aefe04d215ea9eedb66dd6 (diff) | |
download | gdb-fe6fdd96e9e398466a8313819d23f15e02598bc4.zip gdb-fe6fdd96e9e398466a8313819d23f15e02598bc4.tar.gz gdb-fe6fdd96e9e398466a8313819d23f15e02598bc4.tar.bz2 |
2002-02-04 Michael Snyder <msnyder@redhat.com>
* gdb.base/ovlymgr.c (ovly_copy): Generalize for targets
other than d10v and m32r.
Diffstat (limited to 'gdb/testsuite/gdb.base/ovlymgr.c')
-rw-r--r-- | gdb/testsuite/gdb.base/ovlymgr.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gdb/testsuite/gdb.base/ovlymgr.c b/gdb/testsuite/gdb.base/ovlymgr.c index bdb90fe..0b04c54 100644 --- a/gdb/testsuite/gdb.base/ovlymgr.c +++ b/gdb/testsuite/gdb.base/ovlymgr.c @@ -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; } |