* remove-vx.c (vx_read_register, vx_write_register): collapse

ifdef I80960 else (assumes) m68k into parameterizable macros
	  VX_NUM_REGS and VX_SIZE_FPREGS.
	* config/m68k/tm-vx68.h, config/i960/tm-vx960.h (VX_NUM_REGS,
	  VX_SIZE_FPREGS): new definitions.
This commit is contained in:
K. Richard Pixley
1993-06-08 20:56:23 +00:00
parent 146212247c
commit 357992027a
4 changed files with 37 additions and 65 deletions

View File

@@ -40,3 +40,14 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
/* Breakpoint patching is handled at the target end in VxWorks. */
/* #define BREAKPOINT {0x00, 0x3e, 0x00, 0x66} */
/* Number of registers in a ptrace_getregs call. */
#define VX_NUM_REGS (16 + 16 + 3)
/* Number of registers in a ptrace_getfpregs call. */
/* @@ Can't use this -- the rdb library for the 960 target
doesn't support setting or retrieving FP regs. KR */
/* #define VX_SIZE_FPREGS (REGISTER_RAW_SIZE (FP0_REGNUM) * 4) */