old-cross-binutils/gdb/sparc64-tdep.h
Mark Kettenis 8b39fe56a2 Rewrite FreeBSD/sparc64 native configuration.
* sparcbsd-nat.c, sparcbsd-nat.h: New files.
* sparc64fbsd-nat.c: New file.
* sparc64fbsd-tdep.c: New file.
* sparc64-tdep.c sparc64-tdep.h: New files.
* Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
sparc64fbsd-tdep.o): New dependencies.
(SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
and sparc64fbsd-tdep.c.
(sparc64_tdep_h, sparcbsd_nat_h): New variables.
* config/sparc/fbsd.mh: Remove copyright notice.
(NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
sparcbsd-nat.o.
* config/sparc/fbsd.mt: Remove copyright notice.
(TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
solib-legacy.o.  Add sparc64-tdep.o and sparc64fbsd-tdep.o.
* config/sparc/nm-fbsd.h: Don't include "elf/common.h".
(SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
* config/sparc/tm-fbsd.h: Don't include "solib.h" and
"sparc/tm-sp64.h".
(SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
(GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2003-08-21 20:38:46 +00:00

103 lines
3.2 KiB
C

/* Target-dependent code for UltraSPARC.
Copyright 2003 Free Software Foundation, Inc.
This file is part of GDB.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#ifndef SPARC64_TDEP_H
#define SPARC62_TDEP_H 1
/* Register numbers of various important registers. */
enum sparc_regnum
{
SPARC_G0_REGNUM, /* %g0 */
SPARC_G1_REGNUM,
SPARC_G2_REGNUM,
SPARC_G3_REGNUM,
SPARC_G4_REGNUM,
SPARC_G5_REGNUM,
SPARC_G6_REGNUM,
SPARC_G7_REGNUM, /* %g7 */
SPARC_O0_REGNUM, /* %o0 */
SPARC_O1_REGNUM,
SPARC_O2_REGNUM,
SPARC_O3_REGNUM,
SPARC_O4_REGNUM,
SPARC_O5_REGNUM,
SPARC_SP_REGNUM, /* %sp (%o6) */
SPARC_O7_REGNUM, /* %o7 */
SPARC_L0_REGNUM, /* %l0 */
SPARC_L1_REGNUM,
SPARC_L2_REGNUM,
SPARC_L3_REGNUM,
SPARC_L4_REGNUM,
SPARC_L5_REGNUM,
SPARC_L6_REGNUM,
SPARC_L7_REGNUM, /* %l7 */
SPARC_I0_REGNUM, /* %i0 */
SPARC_I1_REGNUM,
SPARC_I2_REGNUM,
SPARC_I3_REGNUM,
SPARC_I4_REGNUM,
SPARC_I5_REGNUM,
SPARC_FP_REGNUM, /* %fp (%i6) */
SPARC_I7_REGNUM, /* %i7 */
SPARC_F0_REGNUM, /* %f0 */
SPARC_F31_REGNUM = SPARC_F0_REGNUM + 31 /* %f31 */
};
enum sparc64_regnum
{
SPARC64_F32_REGNUM = SPARC_F0_REGNUM + 32, /* %f32 */
SPARC64_F62_REGNUM = SPARC64_F32_REGNUM + 15, /* %f62 */
SPARC64_PC_REGNUM, /* %pc */
SPARC64_NPC_REGNUM, /* %npc */
SPARC64_STATE_REGNUM,
SPARC64_FSR_REGNUM, /* %fsr */
SPARC64_FPRS_REGNUM, /* %fprs */
SPARC64_Y_REGNUM, /* %y */
/* Pseudo registers. */
SPARC64_CWP_REGNUM, /* %cwp */
SPARC64_PSTATE_REGNUM, /* %pstate */
SPARC64_ASI_REGNUM, /* %asi */
SPARC64_CCR_REGNUM, /* %ccr */
SPARC64_D0_REGNUM, /* %d0 */
SPARC64_D10_REGNUM = SPARC64_D0_REGNUM + 5, /* %d10 */
SPARC64_D30_REGNUM = SPARC64_D0_REGNUM + 15, /* %d30 */
SPARC64_D32_REGNUM = SPARC64_D0_REGNUM + 16, /* %d30 */
SPARC64_D62_REGNUM = SPARC64_D0_REGNUM + 31, /* %d62 */
SPARC64_Q0_REGNUM, /* %q0 */
SPARC64_Q8_REGNUM = SPARC64_Q0_REGNUM + 2, /* %q8 */
SPARC64_Q28_REGNUM = SPARC64_Q0_REGNUM + 7, /* %q28 */
SPARC64_Q32_REGNUM = SPARC64_Q0_REGNUM + 8, /* %q32 */
SPARC64_Q60_REGNUM = SPARC64_Q0_REGNUM + 15 /* %q60 */
};
extern void sparc64_supply_rwindow (CORE_ADDR sp, int regnum);
extern void sparc64_fill_rwindow (CORE_ADDR sp, int regnum);
/* Functions exported from sparc64fbsd-tdep.c. */
extern void sparc64fbsd_supply_reg (const char *regs, int regnum);
extern void sparc64fbsd_fill_reg (char *regs, int regnum);
extern void sparc64fbsd_supply_fpreg (const char *regs, int regnum);
extern void sparc64fbsd_fill_fpreg (char *regs, int regnum);
#endif /* sparc64-tdep.h */