* Caller knows that the regs handled in one transaction are of same size.
*/
#define FETCH_REGS(state, regnum, count) \
- bcopy ((char *)state+reg_offset[ regnum ], \
- ®isters[REGISTER_BYTE (regnum)], \
- count*sizeof (REGISTER_TYPE))
+ memcpy (®isters[REGISTER_BYTE (regnum)], \
+ (char *)state+reg_offset[ regnum ], \
+ count*REGISTER_SIZE)
/* Store COUNT contiguous registers to thread STATE starting from REGNUM */
#define STORE_REGS(state, regnum, count) \
- bcopy (®isters[REGISTER_BYTE (regnum)], \
- (char *)state+reg_offset[ regnum ], \
- count*sizeof (REGISTER_TYPE))
+ memcpy ((char *)state+reg_offset[ regnum ], \
+ ®isters[REGISTER_BYTE (regnum)], \
+ count*REGISTER_SIZE)
#define REGS_ALL -1
#define REGS_NORMAL 1
* should go to threads frame pointer. If not true, this
* fails badly!!!!!
*/
- bcopy (®isters[REGISTER_BYTE (FP_REGNUM)],
- ®isters[REGISTER_BYTE (MACH_FP_REGNUM)],
- REGISTER_RAW_SIZE (FP_REGNUM));
+ memcpy (®isters[REGISTER_BYTE (MACH_FP_REGNUM)],
+ ®isters[REGISTER_BYTE (FP_REGNUM)],
+ REGISTER_RAW_SIZE (FP_REGNUM));
#endif
/* Save gdb's regs 1..31 to thread saved regs 1..31