old-cross-binutils/gdb/config/i386/tm-sun386.h

206 lines
6.7 KiB
C
Raw Normal View History

/* Parameters for a Sun 386i target machine, for GDB, the GNU debugger.
Copyright 1986, 1987, 1991, 1992, 1993 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
1995-08-02 03:41:12 +00:00
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
* config/i386/tm-i386.h: New file containing generic i*86 target definitions. (TARGET_BYTE_ORDER): Moved here from tm-i386v.h. (IEEE_FLOAT): Moved here from tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Define default as 2. (FUNCTION_START_OFFSET): Moved here from tm-i386v.h. (SKIP_PROLOGUE): Moved here from tm-i386v.h. (SAVED_PC_AFTER_CALL): Moved here from tm-i386v.h. (INNER_THAN): Moved here from tm-i386v.h. (BREAKPOINT): Moved here from tm-i386v.h. (DECR_PC_AFTER_BREAK): Moved here from tm-i386v.h. (ABOUT_TO_RETURN): Moved here from tm-i386v.h. (REGISTER_SIZE): Moved here from tm-i386v.h. (NUM_REGS): Moved here from tm-i386v.h. (REGISTER_NAMES): Moved here from tm-i386v.h. (EXTRACT_STRUCT_VALUE_ADDRESS): Moved here from tm-i386v.h. (FP_REGNUM): Moved here from tm-i386v.h. (SP_REGNUM): Moved here from tm-i386v.h. (PC_REGNUM): Moved here from tm-i386v.h. (PS_REGNUM): Moved here from tm-i386v.h. (FP0_REGNUM): Moved here from tm-i386aix.h. (FPC_REGNUM): Moved here from tm-sun386.h. (REGISTER_BYTES): Moved here from tm-i386aix.h. (REGISTER_BYTE): Moved here from tm-i386aix.h. (REGISTER_RAW_SIZE): Moved here from tm-i386aix.h. (MAX_REGISTER_RAW_SIZE): Moved here from tm-i386aix.h. (REGISTER_VIRTUAL_SIZE): Moved here from tm-i386aix.h. (MAX_REGISTER_VIRTUAL_SIZE): Moved here from tm-i386aix.h. (EXTRACT_RETURN_VALUE): Moved here from tm-i386aix.h. (STORE_RETURN_VALUE): Moved here from tm-i386aix.h. (REGISTER_VIRTUAL_TYPE): Moved here from tm-i386v.h. (STORE_STRUCT_RETURN): Moved here from tm-i386v.h. (FRAME_CHAIN): Moved here from tm-i386v4.h. (FRAMELESS_FUNCTION_INVOCATION): Moved here from tm-i386v4.h. (FRAME_SAVED_PC): Moved here from tm-i386os9k.h (FRAME_ARGS_ADDRESS): Moved here from tm-i386v.h. (FRAME_LOCALS_ADDRESS): Moved here from tm-i386v.h. (FRAME_NUM_ARGS): Moved here from tm-i386sun.h. (FRAME_ARGS_SKIP): Moved here from tm-i386v.h. (FRAME_FIND_SAVED_REGS): Moved here from tm-i386v.h. (PUSH_DUMMY_FRAME): Moved here from tm-i386v.h. (POP_FRAME): Moved here from tm-i386v.h. (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Moved here from tm-i386v.h (print_387_control_word, print_387_status_word): Declare prototypes. (struct frame_info, struct frame_saved_regs): Forward decls for prototypes. (SP_ARG0): Moved here from tm-i386v.h. * config/i386/tm-i386v.h: (i386/tm-i386.h): Include. (TARGET_BYTE_ORDER): Remove. (IEEE_FLOAT): Remove. (START_INFERIOR_TRAPS_EXPECTED): Undef before redefine to 4. (FUNCTION_START_OFFSET): Remove. (SKIP_PROLOGUE): Remove. (i386_skip_prologue): Remove prototype. (SAVED_PC_AFTER_CALL): Remove. (INNER_THAN): Remove. (BREAKPOINT): Remove. (DECR_PC_AFTER_BREAK): Remove. (ABOUT_TO_RETURN): Remove. (REGISTER_SIZE): Remove. (NUM_REGS): Undef before redefine to 16 (no FP support). (REGISTER_NAMES): Undef before redefine. (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove. (REGISTER_BYTES): Undef before redefine. (REGISTER_BYTE): Undef before redefine. (REGISTER_RAW_SIZE): Undef before redefine. (REGISTER_VIRTUAL_SIZE): Undef before redefine. (MAX_REGISTER_RAW_SIZE): Undef before redefine. (MAX_REGISTER_VIRTUAL_SIZE): Undef before redefine. (REGISTER_VIRTUAL_TYPE): Undef before redefine. (STORE_STRUCT_RETURN): Undef before redefine. (EXTRACT_RETURN_VALUE): Undef before redefine. (STORE_RETURN_VALUE): Undef before redefine. (EXTRACT_STRUCT_VALUE_ADDRESS): Remove. (FRAME_CHAIN): Undef before redefine. (FRAMELESS_FUNCTION_INVOCATION): Undef before redefine. (FRAME_SAVED_PC): Undef before redefine. (FRAME_ARGS_ADDRESS): Remove. (FRAME_LOCALS_ADDRESS): Remove. (FRAME_NUM_ARGS): Undef before redefine. (FRAME_ARGS_SKIP): Remove. (FRAME_FIND_SAVED_REGS): Remove. (PUSH_DUMMY_FRAME): Remove. (POP_FRAME): Remove. (CALL_DUMMY): Remove. (CALL_DUMMY_LENGTH): Remove. (CALL_DUMMY_START_OFFSET): Remove. (CALL_DUMMY_BREAKPOINT_OFFSET): Remove (FIX_CALL_DUMMY): Remove. (print_387_control_word): Remove. (print_387_status_word): Remove. (SP_ARG0): Remove. * config/i386/tm-symmetry.h: (TM_SYMMETRY_H): Enclose file in test for define & define if needed. (START_INFERIOR_TRAPS_EXPECTED): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define back to 2. (DECR_PC_AFTER_BREAK): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define to 0. (MAX_REGISTER_RAW_SIZE): Remove. (FRAME_CHAIN): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Remove. (print_387_control_word, print_387_status_word): Remove prototypes. * config/i386/tm-ptx.h: (TM_PTX_H): Enclose file in test for define & define if needed. (START_INFERIOR_TRAPS_EXPECTED): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define back to 2. (DECR_PC_AFTER_BREAK): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define to 0. (SDB_REG_TO_REGNUM): Remove obsolete commented out define. (print_387_control_word, print_387_status_word): Remove prototypes. * config/i386/tm-linux.h: (TM_LINUX_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. * config/i386/tm-i386v4.h: (TM_I386V4_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FRAME_CHAIN): Moved to tm-i386.h. (FRAMELESS_FUNCTION_INVOCATION): Moved to tm-i386.h. (FRAME_SAVED_PC): Remove. (sigtramp_saved_pc): Define as i386v4_sigtramp_saved_pc. (FRAME_NUM_ARGS): Remove. * config/i386/tm-i386os9k.h: (TM_I386OS9K_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (NUM_REGS): Undefine before redefining. (FRAME_CHAIN): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Move to tm-i386.h. * config/i386/tm-i386nw.h: (TM_I386NW_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. * config/i386/tm-i386bsd.h: (TM_I386BSD_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Remove. * config/i386/tm-i386aix.h: (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FP_REGNUM): Remove. (SP_REGNUM): Remove. (PC_REGNUM): Remove. (PS_REGNUM): Remove. (FP0_REGNUM): Moved to tm-i386.h. (NUM_REGS): Remove. (REGISTER_NAMES): Remove. (REGISTER_BYTES): Moved to tm-i386.h. (REGISTER_BYTE): Moved to tm-i386.h. (REGISTER_RAW_SIZE): Moved to tm-i386.h. (MAX_REGISTER_RAW_SIZE): Moved to tm-i386.h. (REGISTER_VIRTUAL_SIZE): Moved to tm-i386.h. (REGISTER_VIRTUAL_TYPE): Removed. (EXTRACT_RETURN_VALUE): Moved to tm-i386.h. (STORE_RETURN_VALUE): Moved to tm-i386.h. * config/i386/tm-sun386.h: (TM_SUN386_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include. (TARGET_BYTE_ORDER): Remove. (FUNCTION_START_OFFSET): Remove. (SKIP_PROLOGUE): Remove. (SAVED_PC_AFTER_CALL): Remove. (INNER_THAN): Remove. (BREAKPOINT): Remove. (DECR_PC_AFTER_BREAK): Remove. (ABOUT_TO_RETURN): Remove. (REGISTER_SIZE): Remove. (NUM_REGS): Undefine before defining. (REGISTER_NAMES): Undefine before redefining. (REGISTER_BYTES): Undefine before redefining. (REGISTER_BYTE): Undefine before defining. (FP_REGNUM): Undefine before defining. (PC_REGNUM): Undefine before defining. (FPC_REGNUM): Undefine before defining. (REGISTER_RAW_SIZE): Undefine before defining. (FRAME_CHAIN): Undefine before defining. (FRAMELESS_FUNCTION_INVOCATION): Undefine before defining. (FRAME_SAVED_PC): Undefine before defining. (FRAME_NUM_ARGS): Moved to tm-i386.h. (MAX_REGISTER_RAW_SIZE): Remove. (MAX_REGISTER_VIRTUAL_SIZE): Remove. (STORE_STRUCT_RETURN): Remove. (EXTRACT_STRUCT_VALUE_ADDRESS): Remove. (FRAME_ARGS_ADDRESS): Remove. (FRAME_LOCALS_ADDRESS): Remove. (FRAME_NUM_ARGS): Undefine before defining. (FRAME_ARGS_SKIP): Remove. (FRAME_FIND_SAVED_REGS): Remove. (PUSH_DUMMY_FRAME): Remove. (POP_FRAME): Remove. (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET): Remove. (struct frame_info, struct frame_saved_regs): Remove forward decls for prototypes. * config/i386/tm-i386lynx.h (i386/tm-i386.h): Include instead of tm-i386v.h. * config/i386/tm-i386m3.h (i386/tm-i386.h): Include instead of tm-i386v.h.
1995-11-02 15:20:50 +00:00
#if !defined (TM_SUN386_H)
#define TM_SUN386_H 1
#include "i386/tm-i386.h"
#ifndef sun386
#define sun386
#endif
#define GDB_TARGET_IS_SUN386 1
#define SUNOS4
#define USE_MACHINE_REG_H
/* Perhaps some day this will work even without the following #define */
#define COFF_ENCAPSULATE
#ifdef COFF_ENCAPSULATE
/* Avoid conflicts between our include files and <sys/exec.h>
(maybe not needed anymore). */
#define _EXEC_
#endif
/* sun386 ptrace seems unable to change the frame pointer */
#define PTRACE_FP_BUG
/* Address of end of stack space. */
#define STACK_END_ADDR 0xfc000000
/* Number of machine registers */
* config/i386/tm-i386.h: New file containing generic i*86 target definitions. (TARGET_BYTE_ORDER): Moved here from tm-i386v.h. (IEEE_FLOAT): Moved here from tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Define default as 2. (FUNCTION_START_OFFSET): Moved here from tm-i386v.h. (SKIP_PROLOGUE): Moved here from tm-i386v.h. (SAVED_PC_AFTER_CALL): Moved here from tm-i386v.h. (INNER_THAN): Moved here from tm-i386v.h. (BREAKPOINT): Moved here from tm-i386v.h. (DECR_PC_AFTER_BREAK): Moved here from tm-i386v.h. (ABOUT_TO_RETURN): Moved here from tm-i386v.h. (REGISTER_SIZE): Moved here from tm-i386v.h. (NUM_REGS): Moved here from tm-i386v.h. (REGISTER_NAMES): Moved here from tm-i386v.h. (EXTRACT_STRUCT_VALUE_ADDRESS): Moved here from tm-i386v.h. (FP_REGNUM): Moved here from tm-i386v.h. (SP_REGNUM): Moved here from tm-i386v.h. (PC_REGNUM): Moved here from tm-i386v.h. (PS_REGNUM): Moved here from tm-i386v.h. (FP0_REGNUM): Moved here from tm-i386aix.h. (FPC_REGNUM): Moved here from tm-sun386.h. (REGISTER_BYTES): Moved here from tm-i386aix.h. (REGISTER_BYTE): Moved here from tm-i386aix.h. (REGISTER_RAW_SIZE): Moved here from tm-i386aix.h. (MAX_REGISTER_RAW_SIZE): Moved here from tm-i386aix.h. (REGISTER_VIRTUAL_SIZE): Moved here from tm-i386aix.h. (MAX_REGISTER_VIRTUAL_SIZE): Moved here from tm-i386aix.h. (EXTRACT_RETURN_VALUE): Moved here from tm-i386aix.h. (STORE_RETURN_VALUE): Moved here from tm-i386aix.h. (REGISTER_VIRTUAL_TYPE): Moved here from tm-i386v.h. (STORE_STRUCT_RETURN): Moved here from tm-i386v.h. (FRAME_CHAIN): Moved here from tm-i386v4.h. (FRAMELESS_FUNCTION_INVOCATION): Moved here from tm-i386v4.h. (FRAME_SAVED_PC): Moved here from tm-i386os9k.h (FRAME_ARGS_ADDRESS): Moved here from tm-i386v.h. (FRAME_LOCALS_ADDRESS): Moved here from tm-i386v.h. (FRAME_NUM_ARGS): Moved here from tm-i386sun.h. (FRAME_ARGS_SKIP): Moved here from tm-i386v.h. (FRAME_FIND_SAVED_REGS): Moved here from tm-i386v.h. (PUSH_DUMMY_FRAME): Moved here from tm-i386v.h. (POP_FRAME): Moved here from tm-i386v.h. (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Moved here from tm-i386v.h (print_387_control_word, print_387_status_word): Declare prototypes. (struct frame_info, struct frame_saved_regs): Forward decls for prototypes. (SP_ARG0): Moved here from tm-i386v.h. * config/i386/tm-i386v.h: (i386/tm-i386.h): Include. (TARGET_BYTE_ORDER): Remove. (IEEE_FLOAT): Remove. (START_INFERIOR_TRAPS_EXPECTED): Undef before redefine to 4. (FUNCTION_START_OFFSET): Remove. (SKIP_PROLOGUE): Remove. (i386_skip_prologue): Remove prototype. (SAVED_PC_AFTER_CALL): Remove. (INNER_THAN): Remove. (BREAKPOINT): Remove. (DECR_PC_AFTER_BREAK): Remove. (ABOUT_TO_RETURN): Remove. (REGISTER_SIZE): Remove. (NUM_REGS): Undef before redefine to 16 (no FP support). (REGISTER_NAMES): Undef before redefine. (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove. (REGISTER_BYTES): Undef before redefine. (REGISTER_BYTE): Undef before redefine. (REGISTER_RAW_SIZE): Undef before redefine. (REGISTER_VIRTUAL_SIZE): Undef before redefine. (MAX_REGISTER_RAW_SIZE): Undef before redefine. (MAX_REGISTER_VIRTUAL_SIZE): Undef before redefine. (REGISTER_VIRTUAL_TYPE): Undef before redefine. (STORE_STRUCT_RETURN): Undef before redefine. (EXTRACT_RETURN_VALUE): Undef before redefine. (STORE_RETURN_VALUE): Undef before redefine. (EXTRACT_STRUCT_VALUE_ADDRESS): Remove. (FRAME_CHAIN): Undef before redefine. (FRAMELESS_FUNCTION_INVOCATION): Undef before redefine. (FRAME_SAVED_PC): Undef before redefine. (FRAME_ARGS_ADDRESS): Remove. (FRAME_LOCALS_ADDRESS): Remove. (FRAME_NUM_ARGS): Undef before redefine. (FRAME_ARGS_SKIP): Remove. (FRAME_FIND_SAVED_REGS): Remove. (PUSH_DUMMY_FRAME): Remove. (POP_FRAME): Remove. (CALL_DUMMY): Remove. (CALL_DUMMY_LENGTH): Remove. (CALL_DUMMY_START_OFFSET): Remove. (CALL_DUMMY_BREAKPOINT_OFFSET): Remove (FIX_CALL_DUMMY): Remove. (print_387_control_word): Remove. (print_387_status_word): Remove. (SP_ARG0): Remove. * config/i386/tm-symmetry.h: (TM_SYMMETRY_H): Enclose file in test for define & define if needed. (START_INFERIOR_TRAPS_EXPECTED): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define back to 2. (DECR_PC_AFTER_BREAK): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define to 0. (MAX_REGISTER_RAW_SIZE): Remove. (FRAME_CHAIN): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Remove. (print_387_control_word, print_387_status_word): Remove prototypes. * config/i386/tm-ptx.h: (TM_PTX_H): Enclose file in test for define & define if needed. (START_INFERIOR_TRAPS_EXPECTED): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define back to 2. (DECR_PC_AFTER_BREAK): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define to 0. (SDB_REG_TO_REGNUM): Remove obsolete commented out define. (print_387_control_word, print_387_status_word): Remove prototypes. * config/i386/tm-linux.h: (TM_LINUX_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. * config/i386/tm-i386v4.h: (TM_I386V4_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FRAME_CHAIN): Moved to tm-i386.h. (FRAMELESS_FUNCTION_INVOCATION): Moved to tm-i386.h. (FRAME_SAVED_PC): Remove. (sigtramp_saved_pc): Define as i386v4_sigtramp_saved_pc. (FRAME_NUM_ARGS): Remove. * config/i386/tm-i386os9k.h: (TM_I386OS9K_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (NUM_REGS): Undefine before redefining. (FRAME_CHAIN): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Move to tm-i386.h. * config/i386/tm-i386nw.h: (TM_I386NW_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. * config/i386/tm-i386bsd.h: (TM_I386BSD_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Remove. * config/i386/tm-i386aix.h: (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FP_REGNUM): Remove. (SP_REGNUM): Remove. (PC_REGNUM): Remove. (PS_REGNUM): Remove. (FP0_REGNUM): Moved to tm-i386.h. (NUM_REGS): Remove. (REGISTER_NAMES): Remove. (REGISTER_BYTES): Moved to tm-i386.h. (REGISTER_BYTE): Moved to tm-i386.h. (REGISTER_RAW_SIZE): Moved to tm-i386.h. (MAX_REGISTER_RAW_SIZE): Moved to tm-i386.h. (REGISTER_VIRTUAL_SIZE): Moved to tm-i386.h. (REGISTER_VIRTUAL_TYPE): Removed. (EXTRACT_RETURN_VALUE): Moved to tm-i386.h. (STORE_RETURN_VALUE): Moved to tm-i386.h. * config/i386/tm-sun386.h: (TM_SUN386_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include. (TARGET_BYTE_ORDER): Remove. (FUNCTION_START_OFFSET): Remove. (SKIP_PROLOGUE): Remove. (SAVED_PC_AFTER_CALL): Remove. (INNER_THAN): Remove. (BREAKPOINT): Remove. (DECR_PC_AFTER_BREAK): Remove. (ABOUT_TO_RETURN): Remove. (REGISTER_SIZE): Remove. (NUM_REGS): Undefine before defining. (REGISTER_NAMES): Undefine before redefining. (REGISTER_BYTES): Undefine before redefining. (REGISTER_BYTE): Undefine before defining. (FP_REGNUM): Undefine before defining. (PC_REGNUM): Undefine before defining. (FPC_REGNUM): Undefine before defining. (REGISTER_RAW_SIZE): Undefine before defining. (FRAME_CHAIN): Undefine before defining. (FRAMELESS_FUNCTION_INVOCATION): Undefine before defining. (FRAME_SAVED_PC): Undefine before defining. (FRAME_NUM_ARGS): Moved to tm-i386.h. (MAX_REGISTER_RAW_SIZE): Remove. (MAX_REGISTER_VIRTUAL_SIZE): Remove. (STORE_STRUCT_RETURN): Remove. (EXTRACT_STRUCT_VALUE_ADDRESS): Remove. (FRAME_ARGS_ADDRESS): Remove. (FRAME_LOCALS_ADDRESS): Remove. (FRAME_NUM_ARGS): Undefine before defining. (FRAME_ARGS_SKIP): Remove. (FRAME_FIND_SAVED_REGS): Remove. (PUSH_DUMMY_FRAME): Remove. (POP_FRAME): Remove. (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET): Remove. (struct frame_info, struct frame_saved_regs): Remove forward decls for prototypes. * config/i386/tm-i386lynx.h (i386/tm-i386.h): Include instead of tm-i386v.h. * config/i386/tm-i386m3.h (i386/tm-i386.h): Include instead of tm-i386v.h.
1995-11-02 15:20:50 +00:00
#undef NUM_REGS
#define NUM_REGS 35
* config/i386/tm-i386.h: New file containing generic i*86 target definitions. (TARGET_BYTE_ORDER): Moved here from tm-i386v.h. (IEEE_FLOAT): Moved here from tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Define default as 2. (FUNCTION_START_OFFSET): Moved here from tm-i386v.h. (SKIP_PROLOGUE): Moved here from tm-i386v.h. (SAVED_PC_AFTER_CALL): Moved here from tm-i386v.h. (INNER_THAN): Moved here from tm-i386v.h. (BREAKPOINT): Moved here from tm-i386v.h. (DECR_PC_AFTER_BREAK): Moved here from tm-i386v.h. (ABOUT_TO_RETURN): Moved here from tm-i386v.h. (REGISTER_SIZE): Moved here from tm-i386v.h. (NUM_REGS): Moved here from tm-i386v.h. (REGISTER_NAMES): Moved here from tm-i386v.h. (EXTRACT_STRUCT_VALUE_ADDRESS): Moved here from tm-i386v.h. (FP_REGNUM): Moved here from tm-i386v.h. (SP_REGNUM): Moved here from tm-i386v.h. (PC_REGNUM): Moved here from tm-i386v.h. (PS_REGNUM): Moved here from tm-i386v.h. (FP0_REGNUM): Moved here from tm-i386aix.h. (FPC_REGNUM): Moved here from tm-sun386.h. (REGISTER_BYTES): Moved here from tm-i386aix.h. (REGISTER_BYTE): Moved here from tm-i386aix.h. (REGISTER_RAW_SIZE): Moved here from tm-i386aix.h. (MAX_REGISTER_RAW_SIZE): Moved here from tm-i386aix.h. (REGISTER_VIRTUAL_SIZE): Moved here from tm-i386aix.h. (MAX_REGISTER_VIRTUAL_SIZE): Moved here from tm-i386aix.h. (EXTRACT_RETURN_VALUE): Moved here from tm-i386aix.h. (STORE_RETURN_VALUE): Moved here from tm-i386aix.h. (REGISTER_VIRTUAL_TYPE): Moved here from tm-i386v.h. (STORE_STRUCT_RETURN): Moved here from tm-i386v.h. (FRAME_CHAIN): Moved here from tm-i386v4.h. (FRAMELESS_FUNCTION_INVOCATION): Moved here from tm-i386v4.h. (FRAME_SAVED_PC): Moved here from tm-i386os9k.h (FRAME_ARGS_ADDRESS): Moved here from tm-i386v.h. (FRAME_LOCALS_ADDRESS): Moved here from tm-i386v.h. (FRAME_NUM_ARGS): Moved here from tm-i386sun.h. (FRAME_ARGS_SKIP): Moved here from tm-i386v.h. (FRAME_FIND_SAVED_REGS): Moved here from tm-i386v.h. (PUSH_DUMMY_FRAME): Moved here from tm-i386v.h. (POP_FRAME): Moved here from tm-i386v.h. (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Moved here from tm-i386v.h (print_387_control_word, print_387_status_word): Declare prototypes. (struct frame_info, struct frame_saved_regs): Forward decls for prototypes. (SP_ARG0): Moved here from tm-i386v.h. * config/i386/tm-i386v.h: (i386/tm-i386.h): Include. (TARGET_BYTE_ORDER): Remove. (IEEE_FLOAT): Remove. (START_INFERIOR_TRAPS_EXPECTED): Undef before redefine to 4. (FUNCTION_START_OFFSET): Remove. (SKIP_PROLOGUE): Remove. (i386_skip_prologue): Remove prototype. (SAVED_PC_AFTER_CALL): Remove. (INNER_THAN): Remove. (BREAKPOINT): Remove. (DECR_PC_AFTER_BREAK): Remove. (ABOUT_TO_RETURN): Remove. (REGISTER_SIZE): Remove. (NUM_REGS): Undef before redefine to 16 (no FP support). (REGISTER_NAMES): Undef before redefine. (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove. (REGISTER_BYTES): Undef before redefine. (REGISTER_BYTE): Undef before redefine. (REGISTER_RAW_SIZE): Undef before redefine. (REGISTER_VIRTUAL_SIZE): Undef before redefine. (MAX_REGISTER_RAW_SIZE): Undef before redefine. (MAX_REGISTER_VIRTUAL_SIZE): Undef before redefine. (REGISTER_VIRTUAL_TYPE): Undef before redefine. (STORE_STRUCT_RETURN): Undef before redefine. (EXTRACT_RETURN_VALUE): Undef before redefine. (STORE_RETURN_VALUE): Undef before redefine. (EXTRACT_STRUCT_VALUE_ADDRESS): Remove. (FRAME_CHAIN): Undef before redefine. (FRAMELESS_FUNCTION_INVOCATION): Undef before redefine. (FRAME_SAVED_PC): Undef before redefine. (FRAME_ARGS_ADDRESS): Remove. (FRAME_LOCALS_ADDRESS): Remove. (FRAME_NUM_ARGS): Undef before redefine. (FRAME_ARGS_SKIP): Remove. (FRAME_FIND_SAVED_REGS): Remove. (PUSH_DUMMY_FRAME): Remove. (POP_FRAME): Remove. (CALL_DUMMY): Remove. (CALL_DUMMY_LENGTH): Remove. (CALL_DUMMY_START_OFFSET): Remove. (CALL_DUMMY_BREAKPOINT_OFFSET): Remove (FIX_CALL_DUMMY): Remove. (print_387_control_word): Remove. (print_387_status_word): Remove. (SP_ARG0): Remove. * config/i386/tm-symmetry.h: (TM_SYMMETRY_H): Enclose file in test for define & define if needed. (START_INFERIOR_TRAPS_EXPECTED): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define back to 2. (DECR_PC_AFTER_BREAK): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define to 0. (MAX_REGISTER_RAW_SIZE): Remove. (FRAME_CHAIN): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Remove. (print_387_control_word, print_387_status_word): Remove prototypes. * config/i386/tm-ptx.h: (TM_PTX_H): Enclose file in test for define & define if needed. (START_INFERIOR_TRAPS_EXPECTED): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define back to 2. (DECR_PC_AFTER_BREAK): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define to 0. (SDB_REG_TO_REGNUM): Remove obsolete commented out define. (print_387_control_word, print_387_status_word): Remove prototypes. * config/i386/tm-linux.h: (TM_LINUX_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. * config/i386/tm-i386v4.h: (TM_I386V4_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FRAME_CHAIN): Moved to tm-i386.h. (FRAMELESS_FUNCTION_INVOCATION): Moved to tm-i386.h. (FRAME_SAVED_PC): Remove. (sigtramp_saved_pc): Define as i386v4_sigtramp_saved_pc. (FRAME_NUM_ARGS): Remove. * config/i386/tm-i386os9k.h: (TM_I386OS9K_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (NUM_REGS): Undefine before redefining. (FRAME_CHAIN): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Move to tm-i386.h. * config/i386/tm-i386nw.h: (TM_I386NW_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. * config/i386/tm-i386bsd.h: (TM_I386BSD_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Remove. * config/i386/tm-i386aix.h: (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FP_REGNUM): Remove. (SP_REGNUM): Remove. (PC_REGNUM): Remove. (PS_REGNUM): Remove. (FP0_REGNUM): Moved to tm-i386.h. (NUM_REGS): Remove. (REGISTER_NAMES): Remove. (REGISTER_BYTES): Moved to tm-i386.h. (REGISTER_BYTE): Moved to tm-i386.h. (REGISTER_RAW_SIZE): Moved to tm-i386.h. (MAX_REGISTER_RAW_SIZE): Moved to tm-i386.h. (REGISTER_VIRTUAL_SIZE): Moved to tm-i386.h. (REGISTER_VIRTUAL_TYPE): Removed. (EXTRACT_RETURN_VALUE): Moved to tm-i386.h. (STORE_RETURN_VALUE): Moved to tm-i386.h. * config/i386/tm-sun386.h: (TM_SUN386_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include. (TARGET_BYTE_ORDER): Remove. (FUNCTION_START_OFFSET): Remove. (SKIP_PROLOGUE): Remove. (SAVED_PC_AFTER_CALL): Remove. (INNER_THAN): Remove. (BREAKPOINT): Remove. (DECR_PC_AFTER_BREAK): Remove. (ABOUT_TO_RETURN): Remove. (REGISTER_SIZE): Remove. (NUM_REGS): Undefine before defining. (REGISTER_NAMES): Undefine before redefining. (REGISTER_BYTES): Undefine before redefining. (REGISTER_BYTE): Undefine before defining. (FP_REGNUM): Undefine before defining. (PC_REGNUM): Undefine before defining. (FPC_REGNUM): Undefine before defining. (REGISTER_RAW_SIZE): Undefine before defining. (FRAME_CHAIN): Undefine before defining. (FRAMELESS_FUNCTION_INVOCATION): Undefine before defining. (FRAME_SAVED_PC): Undefine before defining. (FRAME_NUM_ARGS): Moved to tm-i386.h. (MAX_REGISTER_RAW_SIZE): Remove. (MAX_REGISTER_VIRTUAL_SIZE): Remove. (STORE_STRUCT_RETURN): Remove. (EXTRACT_STRUCT_VALUE_ADDRESS): Remove. (FRAME_ARGS_ADDRESS): Remove. (FRAME_LOCALS_ADDRESS): Remove. (FRAME_NUM_ARGS): Undefine before defining. (FRAME_ARGS_SKIP): Remove. (FRAME_FIND_SAVED_REGS): Remove. (PUSH_DUMMY_FRAME): Remove. (POP_FRAME): Remove. (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET): Remove. (struct frame_info, struct frame_saved_regs): Remove forward decls for prototypes. * config/i386/tm-i386lynx.h (i386/tm-i386.h): Include instead of tm-i386v.h. * config/i386/tm-i386m3.h (i386/tm-i386.h): Include instead of tm-i386v.h.
1995-11-02 15:20:50 +00:00
/* Initializer for an array of names of registers. There should be NUM_REGS
strings in this initializer. The order of the first 8 registers must match
the compiler's numbering scheme (which is the same as the 386 scheme) also,
this table must match regmap in i386-pinsn.c. */
* config/i386/tm-i386.h: New file containing generic i*86 target definitions. (TARGET_BYTE_ORDER): Moved here from tm-i386v.h. (IEEE_FLOAT): Moved here from tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Define default as 2. (FUNCTION_START_OFFSET): Moved here from tm-i386v.h. (SKIP_PROLOGUE): Moved here from tm-i386v.h. (SAVED_PC_AFTER_CALL): Moved here from tm-i386v.h. (INNER_THAN): Moved here from tm-i386v.h. (BREAKPOINT): Moved here from tm-i386v.h. (DECR_PC_AFTER_BREAK): Moved here from tm-i386v.h. (ABOUT_TO_RETURN): Moved here from tm-i386v.h. (REGISTER_SIZE): Moved here from tm-i386v.h. (NUM_REGS): Moved here from tm-i386v.h. (REGISTER_NAMES): Moved here from tm-i386v.h. (EXTRACT_STRUCT_VALUE_ADDRESS): Moved here from tm-i386v.h. (FP_REGNUM): Moved here from tm-i386v.h. (SP_REGNUM): Moved here from tm-i386v.h. (PC_REGNUM): Moved here from tm-i386v.h. (PS_REGNUM): Moved here from tm-i386v.h. (FP0_REGNUM): Moved here from tm-i386aix.h. (FPC_REGNUM): Moved here from tm-sun386.h. (REGISTER_BYTES): Moved here from tm-i386aix.h. (REGISTER_BYTE): Moved here from tm-i386aix.h. (REGISTER_RAW_SIZE): Moved here from tm-i386aix.h. (MAX_REGISTER_RAW_SIZE): Moved here from tm-i386aix.h. (REGISTER_VIRTUAL_SIZE): Moved here from tm-i386aix.h. (MAX_REGISTER_VIRTUAL_SIZE): Moved here from tm-i386aix.h. (EXTRACT_RETURN_VALUE): Moved here from tm-i386aix.h. (STORE_RETURN_VALUE): Moved here from tm-i386aix.h. (REGISTER_VIRTUAL_TYPE): Moved here from tm-i386v.h. (STORE_STRUCT_RETURN): Moved here from tm-i386v.h. (FRAME_CHAIN): Moved here from tm-i386v4.h. (FRAMELESS_FUNCTION_INVOCATION): Moved here from tm-i386v4.h. (FRAME_SAVED_PC): Moved here from tm-i386os9k.h (FRAME_ARGS_ADDRESS): Moved here from tm-i386v.h. (FRAME_LOCALS_ADDRESS): Moved here from tm-i386v.h. (FRAME_NUM_ARGS): Moved here from tm-i386sun.h. (FRAME_ARGS_SKIP): Moved here from tm-i386v.h. (FRAME_FIND_SAVED_REGS): Moved here from tm-i386v.h. (PUSH_DUMMY_FRAME): Moved here from tm-i386v.h. (POP_FRAME): Moved here from tm-i386v.h. (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Moved here from tm-i386v.h (print_387_control_word, print_387_status_word): Declare prototypes. (struct frame_info, struct frame_saved_regs): Forward decls for prototypes. (SP_ARG0): Moved here from tm-i386v.h. * config/i386/tm-i386v.h: (i386/tm-i386.h): Include. (TARGET_BYTE_ORDER): Remove. (IEEE_FLOAT): Remove. (START_INFERIOR_TRAPS_EXPECTED): Undef before redefine to 4. (FUNCTION_START_OFFSET): Remove. (SKIP_PROLOGUE): Remove. (i386_skip_prologue): Remove prototype. (SAVED_PC_AFTER_CALL): Remove. (INNER_THAN): Remove. (BREAKPOINT): Remove. (DECR_PC_AFTER_BREAK): Remove. (ABOUT_TO_RETURN): Remove. (REGISTER_SIZE): Remove. (NUM_REGS): Undef before redefine to 16 (no FP support). (REGISTER_NAMES): Undef before redefine. (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove. (REGISTER_BYTES): Undef before redefine. (REGISTER_BYTE): Undef before redefine. (REGISTER_RAW_SIZE): Undef before redefine. (REGISTER_VIRTUAL_SIZE): Undef before redefine. (MAX_REGISTER_RAW_SIZE): Undef before redefine. (MAX_REGISTER_VIRTUAL_SIZE): Undef before redefine. (REGISTER_VIRTUAL_TYPE): Undef before redefine. (STORE_STRUCT_RETURN): Undef before redefine. (EXTRACT_RETURN_VALUE): Undef before redefine. (STORE_RETURN_VALUE): Undef before redefine. (EXTRACT_STRUCT_VALUE_ADDRESS): Remove. (FRAME_CHAIN): Undef before redefine. (FRAMELESS_FUNCTION_INVOCATION): Undef before redefine. (FRAME_SAVED_PC): Undef before redefine. (FRAME_ARGS_ADDRESS): Remove. (FRAME_LOCALS_ADDRESS): Remove. (FRAME_NUM_ARGS): Undef before redefine. (FRAME_ARGS_SKIP): Remove. (FRAME_FIND_SAVED_REGS): Remove. (PUSH_DUMMY_FRAME): Remove. (POP_FRAME): Remove. (CALL_DUMMY): Remove. (CALL_DUMMY_LENGTH): Remove. (CALL_DUMMY_START_OFFSET): Remove. (CALL_DUMMY_BREAKPOINT_OFFSET): Remove (FIX_CALL_DUMMY): Remove. (print_387_control_word): Remove. (print_387_status_word): Remove. (SP_ARG0): Remove. * config/i386/tm-symmetry.h: (TM_SYMMETRY_H): Enclose file in test for define & define if needed. (START_INFERIOR_TRAPS_EXPECTED): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define back to 2. (DECR_PC_AFTER_BREAK): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define to 0. (MAX_REGISTER_RAW_SIZE): Remove. (FRAME_CHAIN): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Remove. (print_387_control_word, print_387_status_word): Remove prototypes. * config/i386/tm-ptx.h: (TM_PTX_H): Enclose file in test for define & define if needed. (START_INFERIOR_TRAPS_EXPECTED): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define back to 2. (DECR_PC_AFTER_BREAK): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define to 0. (SDB_REG_TO_REGNUM): Remove obsolete commented out define. (print_387_control_word, print_387_status_word): Remove prototypes. * config/i386/tm-linux.h: (TM_LINUX_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. * config/i386/tm-i386v4.h: (TM_I386V4_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FRAME_CHAIN): Moved to tm-i386.h. (FRAMELESS_FUNCTION_INVOCATION): Moved to tm-i386.h. (FRAME_SAVED_PC): Remove. (sigtramp_saved_pc): Define as i386v4_sigtramp_saved_pc. (FRAME_NUM_ARGS): Remove. * config/i386/tm-i386os9k.h: (TM_I386OS9K_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (NUM_REGS): Undefine before redefining. (FRAME_CHAIN): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Move to tm-i386.h. * config/i386/tm-i386nw.h: (TM_I386NW_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. * config/i386/tm-i386bsd.h: (TM_I386BSD_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Remove. * config/i386/tm-i386aix.h: (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FP_REGNUM): Remove. (SP_REGNUM): Remove. (PC_REGNUM): Remove. (PS_REGNUM): Remove. (FP0_REGNUM): Moved to tm-i386.h. (NUM_REGS): Remove. (REGISTER_NAMES): Remove. (REGISTER_BYTES): Moved to tm-i386.h. (REGISTER_BYTE): Moved to tm-i386.h. (REGISTER_RAW_SIZE): Moved to tm-i386.h. (MAX_REGISTER_RAW_SIZE): Moved to tm-i386.h. (REGISTER_VIRTUAL_SIZE): Moved to tm-i386.h. (REGISTER_VIRTUAL_TYPE): Removed. (EXTRACT_RETURN_VALUE): Moved to tm-i386.h. (STORE_RETURN_VALUE): Moved to tm-i386.h. * config/i386/tm-sun386.h: (TM_SUN386_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include. (TARGET_BYTE_ORDER): Remove. (FUNCTION_START_OFFSET): Remove. (SKIP_PROLOGUE): Remove. (SAVED_PC_AFTER_CALL): Remove. (INNER_THAN): Remove. (BREAKPOINT): Remove. (DECR_PC_AFTER_BREAK): Remove. (ABOUT_TO_RETURN): Remove. (REGISTER_SIZE): Remove. (NUM_REGS): Undefine before defining. (REGISTER_NAMES): Undefine before redefining. (REGISTER_BYTES): Undefine before redefining. (REGISTER_BYTE): Undefine before defining. (FP_REGNUM): Undefine before defining. (PC_REGNUM): Undefine before defining. (FPC_REGNUM): Undefine before defining. (REGISTER_RAW_SIZE): Undefine before defining. (FRAME_CHAIN): Undefine before defining. (FRAMELESS_FUNCTION_INVOCATION): Undefine before defining. (FRAME_SAVED_PC): Undefine before defining. (FRAME_NUM_ARGS): Moved to tm-i386.h. (MAX_REGISTER_RAW_SIZE): Remove. (MAX_REGISTER_VIRTUAL_SIZE): Remove. (STORE_STRUCT_RETURN): Remove. (EXTRACT_STRUCT_VALUE_ADDRESS): Remove. (FRAME_ARGS_ADDRESS): Remove. (FRAME_LOCALS_ADDRESS): Remove. (FRAME_NUM_ARGS): Undefine before defining. (FRAME_ARGS_SKIP): Remove. (FRAME_FIND_SAVED_REGS): Remove. (PUSH_DUMMY_FRAME): Remove. (POP_FRAME): Remove. (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET): Remove. (struct frame_info, struct frame_saved_regs): Remove forward decls for prototypes. * config/i386/tm-i386lynx.h (i386/tm-i386.h): Include instead of tm-i386v.h. * config/i386/tm-i386m3.h (i386/tm-i386.h): Include instead of tm-i386v.h.
1995-11-02 15:20:50 +00:00
#undef REGISTER_NAMES
#define REGISTER_NAMES { "gs", "fs", "es", "ds", \
"edi", "esi", "ebp", "esp", \
"ebx", "edx", "ecx", "eax", \
"retaddr", "trapnum", "errcode", "ip", \
"cs", "ps", "sp", "ss", \
"fst0", "fst1", "fst2", "fst3", \
"fst4", "fst5", "fst6", "fst7", \
"fctrl", "fstat", "ftag", "fip", \
"fcs", "fopoff", "fopsel" \
}
/* Register numbers of various important registers.
Note that some of these values are "real" register numbers,
and correspond to the general registers of the machine,
and some are "phony" register numbers which are too large
to be actual register numbers as far as the user is concerned
but do serve to get the desired values when passed to read_register. */
* config/i386/tm-i386.h: New file containing generic i*86 target definitions. (TARGET_BYTE_ORDER): Moved here from tm-i386v.h. (IEEE_FLOAT): Moved here from tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Define default as 2. (FUNCTION_START_OFFSET): Moved here from tm-i386v.h. (SKIP_PROLOGUE): Moved here from tm-i386v.h. (SAVED_PC_AFTER_CALL): Moved here from tm-i386v.h. (INNER_THAN): Moved here from tm-i386v.h. (BREAKPOINT): Moved here from tm-i386v.h. (DECR_PC_AFTER_BREAK): Moved here from tm-i386v.h. (ABOUT_TO_RETURN): Moved here from tm-i386v.h. (REGISTER_SIZE): Moved here from tm-i386v.h. (NUM_REGS): Moved here from tm-i386v.h. (REGISTER_NAMES): Moved here from tm-i386v.h. (EXTRACT_STRUCT_VALUE_ADDRESS): Moved here from tm-i386v.h. (FP_REGNUM): Moved here from tm-i386v.h. (SP_REGNUM): Moved here from tm-i386v.h. (PC_REGNUM): Moved here from tm-i386v.h. (PS_REGNUM): Moved here from tm-i386v.h. (FP0_REGNUM): Moved here from tm-i386aix.h. (FPC_REGNUM): Moved here from tm-sun386.h. (REGISTER_BYTES): Moved here from tm-i386aix.h. (REGISTER_BYTE): Moved here from tm-i386aix.h. (REGISTER_RAW_SIZE): Moved here from tm-i386aix.h. (MAX_REGISTER_RAW_SIZE): Moved here from tm-i386aix.h. (REGISTER_VIRTUAL_SIZE): Moved here from tm-i386aix.h. (MAX_REGISTER_VIRTUAL_SIZE): Moved here from tm-i386aix.h. (EXTRACT_RETURN_VALUE): Moved here from tm-i386aix.h. (STORE_RETURN_VALUE): Moved here from tm-i386aix.h. (REGISTER_VIRTUAL_TYPE): Moved here from tm-i386v.h. (STORE_STRUCT_RETURN): Moved here from tm-i386v.h. (FRAME_CHAIN): Moved here from tm-i386v4.h. (FRAMELESS_FUNCTION_INVOCATION): Moved here from tm-i386v4.h. (FRAME_SAVED_PC): Moved here from tm-i386os9k.h (FRAME_ARGS_ADDRESS): Moved here from tm-i386v.h. (FRAME_LOCALS_ADDRESS): Moved here from tm-i386v.h. (FRAME_NUM_ARGS): Moved here from tm-i386sun.h. (FRAME_ARGS_SKIP): Moved here from tm-i386v.h. (FRAME_FIND_SAVED_REGS): Moved here from tm-i386v.h. (PUSH_DUMMY_FRAME): Moved here from tm-i386v.h. (POP_FRAME): Moved here from tm-i386v.h. (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Moved here from tm-i386v.h (print_387_control_word, print_387_status_word): Declare prototypes. (struct frame_info, struct frame_saved_regs): Forward decls for prototypes. (SP_ARG0): Moved here from tm-i386v.h. * config/i386/tm-i386v.h: (i386/tm-i386.h): Include. (TARGET_BYTE_ORDER): Remove. (IEEE_FLOAT): Remove. (START_INFERIOR_TRAPS_EXPECTED): Undef before redefine to 4. (FUNCTION_START_OFFSET): Remove. (SKIP_PROLOGUE): Remove. (i386_skip_prologue): Remove prototype. (SAVED_PC_AFTER_CALL): Remove. (INNER_THAN): Remove. (BREAKPOINT): Remove. (DECR_PC_AFTER_BREAK): Remove. (ABOUT_TO_RETURN): Remove. (REGISTER_SIZE): Remove. (NUM_REGS): Undef before redefine to 16 (no FP support). (REGISTER_NAMES): Undef before redefine. (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove. (REGISTER_BYTES): Undef before redefine. (REGISTER_BYTE): Undef before redefine. (REGISTER_RAW_SIZE): Undef before redefine. (REGISTER_VIRTUAL_SIZE): Undef before redefine. (MAX_REGISTER_RAW_SIZE): Undef before redefine. (MAX_REGISTER_VIRTUAL_SIZE): Undef before redefine. (REGISTER_VIRTUAL_TYPE): Undef before redefine. (STORE_STRUCT_RETURN): Undef before redefine. (EXTRACT_RETURN_VALUE): Undef before redefine. (STORE_RETURN_VALUE): Undef before redefine. (EXTRACT_STRUCT_VALUE_ADDRESS): Remove. (FRAME_CHAIN): Undef before redefine. (FRAMELESS_FUNCTION_INVOCATION): Undef before redefine. (FRAME_SAVED_PC): Undef before redefine. (FRAME_ARGS_ADDRESS): Remove. (FRAME_LOCALS_ADDRESS): Remove. (FRAME_NUM_ARGS): Undef before redefine. (FRAME_ARGS_SKIP): Remove. (FRAME_FIND_SAVED_REGS): Remove. (PUSH_DUMMY_FRAME): Remove. (POP_FRAME): Remove. (CALL_DUMMY): Remove. (CALL_DUMMY_LENGTH): Remove. (CALL_DUMMY_START_OFFSET): Remove. (CALL_DUMMY_BREAKPOINT_OFFSET): Remove (FIX_CALL_DUMMY): Remove. (print_387_control_word): Remove. (print_387_status_word): Remove. (SP_ARG0): Remove. * config/i386/tm-symmetry.h: (TM_SYMMETRY_H): Enclose file in test for define & define if needed. (START_INFERIOR_TRAPS_EXPECTED): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define back to 2. (DECR_PC_AFTER_BREAK): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define to 0. (MAX_REGISTER_RAW_SIZE): Remove. (FRAME_CHAIN): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Remove. (print_387_control_word, print_387_status_word): Remove prototypes. * config/i386/tm-ptx.h: (TM_PTX_H): Enclose file in test for define & define if needed. (START_INFERIOR_TRAPS_EXPECTED): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define back to 2. (DECR_PC_AFTER_BREAK): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define to 0. (SDB_REG_TO_REGNUM): Remove obsolete commented out define. (print_387_control_word, print_387_status_word): Remove prototypes. * config/i386/tm-linux.h: (TM_LINUX_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. * config/i386/tm-i386v4.h: (TM_I386V4_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FRAME_CHAIN): Moved to tm-i386.h. (FRAMELESS_FUNCTION_INVOCATION): Moved to tm-i386.h. (FRAME_SAVED_PC): Remove. (sigtramp_saved_pc): Define as i386v4_sigtramp_saved_pc. (FRAME_NUM_ARGS): Remove. * config/i386/tm-i386os9k.h: (TM_I386OS9K_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (NUM_REGS): Undefine before redefining. (FRAME_CHAIN): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Move to tm-i386.h. * config/i386/tm-i386nw.h: (TM_I386NW_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. * config/i386/tm-i386bsd.h: (TM_I386BSD_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Remove. * config/i386/tm-i386aix.h: (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FP_REGNUM): Remove. (SP_REGNUM): Remove. (PC_REGNUM): Remove. (PS_REGNUM): Remove. (FP0_REGNUM): Moved to tm-i386.h. (NUM_REGS): Remove. (REGISTER_NAMES): Remove. (REGISTER_BYTES): Moved to tm-i386.h. (REGISTER_BYTE): Moved to tm-i386.h. (REGISTER_RAW_SIZE): Moved to tm-i386.h. (MAX_REGISTER_RAW_SIZE): Moved to tm-i386.h. (REGISTER_VIRTUAL_SIZE): Moved to tm-i386.h. (REGISTER_VIRTUAL_TYPE): Removed. (EXTRACT_RETURN_VALUE): Moved to tm-i386.h. (STORE_RETURN_VALUE): Moved to tm-i386.h. * config/i386/tm-sun386.h: (TM_SUN386_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include. (TARGET_BYTE_ORDER): Remove. (FUNCTION_START_OFFSET): Remove. (SKIP_PROLOGUE): Remove. (SAVED_PC_AFTER_CALL): Remove. (INNER_THAN): Remove. (BREAKPOINT): Remove. (DECR_PC_AFTER_BREAK): Remove. (ABOUT_TO_RETURN): Remove. (REGISTER_SIZE): Remove. (NUM_REGS): Undefine before defining. (REGISTER_NAMES): Undefine before redefining. (REGISTER_BYTES): Undefine before redefining. (REGISTER_BYTE): Undefine before defining. (FP_REGNUM): Undefine before defining. (PC_REGNUM): Undefine before defining. (FPC_REGNUM): Undefine before defining. (REGISTER_RAW_SIZE): Undefine before defining. (FRAME_CHAIN): Undefine before defining. (FRAMELESS_FUNCTION_INVOCATION): Undefine before defining. (FRAME_SAVED_PC): Undefine before defining. (FRAME_NUM_ARGS): Moved to tm-i386.h. (MAX_REGISTER_RAW_SIZE): Remove. (MAX_REGISTER_VIRTUAL_SIZE): Remove. (STORE_STRUCT_RETURN): Remove. (EXTRACT_STRUCT_VALUE_ADDRESS): Remove. (FRAME_ARGS_ADDRESS): Remove. (FRAME_LOCALS_ADDRESS): Remove. (FRAME_NUM_ARGS): Undefine before defining. (FRAME_ARGS_SKIP): Remove. (FRAME_FIND_SAVED_REGS): Remove. (PUSH_DUMMY_FRAME): Remove. (POP_FRAME): Remove. (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET): Remove. (struct frame_info, struct frame_saved_regs): Remove forward decls for prototypes. * config/i386/tm-i386lynx.h (i386/tm-i386.h): Include instead of tm-i386v.h. * config/i386/tm-i386m3.h (i386/tm-i386.h): Include instead of tm-i386v.h.
1995-11-02 15:20:50 +00:00
#undef FP_REGNUM
#define FP_REGNUM 6 /* (ebp) Contains address of executing stack frame */
#undef SP_REGNUM
#define SP_REGNUM 18 /* (usp) Contains address of top of stack */
#undef PS_REGNUM
#define PS_REGNUM 17 /* (ps) Contains processor status */
#undef PC_REGNUM
#define PC_REGNUM 15 /* (eip) Contains program counter */
#undef FP0_REGNUM
#define FP0_REGNUM 20 /* Floating point register 0 */
#undef FPC_REGNUM
#define FPC_REGNUM 28 /* 80387 control register */
/* Total amount of space needed to store our copies of the machine's
register state, the array `registers'. */
* config/i386/tm-i386.h: New file containing generic i*86 target definitions. (TARGET_BYTE_ORDER): Moved here from tm-i386v.h. (IEEE_FLOAT): Moved here from tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Define default as 2. (FUNCTION_START_OFFSET): Moved here from tm-i386v.h. (SKIP_PROLOGUE): Moved here from tm-i386v.h. (SAVED_PC_AFTER_CALL): Moved here from tm-i386v.h. (INNER_THAN): Moved here from tm-i386v.h. (BREAKPOINT): Moved here from tm-i386v.h. (DECR_PC_AFTER_BREAK): Moved here from tm-i386v.h. (ABOUT_TO_RETURN): Moved here from tm-i386v.h. (REGISTER_SIZE): Moved here from tm-i386v.h. (NUM_REGS): Moved here from tm-i386v.h. (REGISTER_NAMES): Moved here from tm-i386v.h. (EXTRACT_STRUCT_VALUE_ADDRESS): Moved here from tm-i386v.h. (FP_REGNUM): Moved here from tm-i386v.h. (SP_REGNUM): Moved here from tm-i386v.h. (PC_REGNUM): Moved here from tm-i386v.h. (PS_REGNUM): Moved here from tm-i386v.h. (FP0_REGNUM): Moved here from tm-i386aix.h. (FPC_REGNUM): Moved here from tm-sun386.h. (REGISTER_BYTES): Moved here from tm-i386aix.h. (REGISTER_BYTE): Moved here from tm-i386aix.h. (REGISTER_RAW_SIZE): Moved here from tm-i386aix.h. (MAX_REGISTER_RAW_SIZE): Moved here from tm-i386aix.h. (REGISTER_VIRTUAL_SIZE): Moved here from tm-i386aix.h. (MAX_REGISTER_VIRTUAL_SIZE): Moved here from tm-i386aix.h. (EXTRACT_RETURN_VALUE): Moved here from tm-i386aix.h. (STORE_RETURN_VALUE): Moved here from tm-i386aix.h. (REGISTER_VIRTUAL_TYPE): Moved here from tm-i386v.h. (STORE_STRUCT_RETURN): Moved here from tm-i386v.h. (FRAME_CHAIN): Moved here from tm-i386v4.h. (FRAMELESS_FUNCTION_INVOCATION): Moved here from tm-i386v4.h. (FRAME_SAVED_PC): Moved here from tm-i386os9k.h (FRAME_ARGS_ADDRESS): Moved here from tm-i386v.h. (FRAME_LOCALS_ADDRESS): Moved here from tm-i386v.h. (FRAME_NUM_ARGS): Moved here from tm-i386sun.h. (FRAME_ARGS_SKIP): Moved here from tm-i386v.h. (FRAME_FIND_SAVED_REGS): Moved here from tm-i386v.h. (PUSH_DUMMY_FRAME): Moved here from tm-i386v.h. (POP_FRAME): Moved here from tm-i386v.h. (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Moved here from tm-i386v.h (print_387_control_word, print_387_status_word): Declare prototypes. (struct frame_info, struct frame_saved_regs): Forward decls for prototypes. (SP_ARG0): Moved here from tm-i386v.h. * config/i386/tm-i386v.h: (i386/tm-i386.h): Include. (TARGET_BYTE_ORDER): Remove. (IEEE_FLOAT): Remove. (START_INFERIOR_TRAPS_EXPECTED): Undef before redefine to 4. (FUNCTION_START_OFFSET): Remove. (SKIP_PROLOGUE): Remove. (i386_skip_prologue): Remove prototype. (SAVED_PC_AFTER_CALL): Remove. (INNER_THAN): Remove. (BREAKPOINT): Remove. (DECR_PC_AFTER_BREAK): Remove. (ABOUT_TO_RETURN): Remove. (REGISTER_SIZE): Remove. (NUM_REGS): Undef before redefine to 16 (no FP support). (REGISTER_NAMES): Undef before redefine. (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove. (REGISTER_BYTES): Undef before redefine. (REGISTER_BYTE): Undef before redefine. (REGISTER_RAW_SIZE): Undef before redefine. (REGISTER_VIRTUAL_SIZE): Undef before redefine. (MAX_REGISTER_RAW_SIZE): Undef before redefine. (MAX_REGISTER_VIRTUAL_SIZE): Undef before redefine. (REGISTER_VIRTUAL_TYPE): Undef before redefine. (STORE_STRUCT_RETURN): Undef before redefine. (EXTRACT_RETURN_VALUE): Undef before redefine. (STORE_RETURN_VALUE): Undef before redefine. (EXTRACT_STRUCT_VALUE_ADDRESS): Remove. (FRAME_CHAIN): Undef before redefine. (FRAMELESS_FUNCTION_INVOCATION): Undef before redefine. (FRAME_SAVED_PC): Undef before redefine. (FRAME_ARGS_ADDRESS): Remove. (FRAME_LOCALS_ADDRESS): Remove. (FRAME_NUM_ARGS): Undef before redefine. (FRAME_ARGS_SKIP): Remove. (FRAME_FIND_SAVED_REGS): Remove. (PUSH_DUMMY_FRAME): Remove. (POP_FRAME): Remove. (CALL_DUMMY): Remove. (CALL_DUMMY_LENGTH): Remove. (CALL_DUMMY_START_OFFSET): Remove. (CALL_DUMMY_BREAKPOINT_OFFSET): Remove (FIX_CALL_DUMMY): Remove. (print_387_control_word): Remove. (print_387_status_word): Remove. (SP_ARG0): Remove. * config/i386/tm-symmetry.h: (TM_SYMMETRY_H): Enclose file in test for define & define if needed. (START_INFERIOR_TRAPS_EXPECTED): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define back to 2. (DECR_PC_AFTER_BREAK): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define to 0. (MAX_REGISTER_RAW_SIZE): Remove. (FRAME_CHAIN): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Remove. (print_387_control_word, print_387_status_word): Remove prototypes. * config/i386/tm-ptx.h: (TM_PTX_H): Enclose file in test for define & define if needed. (START_INFERIOR_TRAPS_EXPECTED): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define back to 2. (DECR_PC_AFTER_BREAK): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define to 0. (SDB_REG_TO_REGNUM): Remove obsolete commented out define. (print_387_control_word, print_387_status_word): Remove prototypes. * config/i386/tm-linux.h: (TM_LINUX_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. * config/i386/tm-i386v4.h: (TM_I386V4_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FRAME_CHAIN): Moved to tm-i386.h. (FRAMELESS_FUNCTION_INVOCATION): Moved to tm-i386.h. (FRAME_SAVED_PC): Remove. (sigtramp_saved_pc): Define as i386v4_sigtramp_saved_pc. (FRAME_NUM_ARGS): Remove. * config/i386/tm-i386os9k.h: (TM_I386OS9K_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (NUM_REGS): Undefine before redefining. (FRAME_CHAIN): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Move to tm-i386.h. * config/i386/tm-i386nw.h: (TM_I386NW_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. * config/i386/tm-i386bsd.h: (TM_I386BSD_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Remove. * config/i386/tm-i386aix.h: (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FP_REGNUM): Remove. (SP_REGNUM): Remove. (PC_REGNUM): Remove. (PS_REGNUM): Remove. (FP0_REGNUM): Moved to tm-i386.h. (NUM_REGS): Remove. (REGISTER_NAMES): Remove. (REGISTER_BYTES): Moved to tm-i386.h. (REGISTER_BYTE): Moved to tm-i386.h. (REGISTER_RAW_SIZE): Moved to tm-i386.h. (MAX_REGISTER_RAW_SIZE): Moved to tm-i386.h. (REGISTER_VIRTUAL_SIZE): Moved to tm-i386.h. (REGISTER_VIRTUAL_TYPE): Removed. (EXTRACT_RETURN_VALUE): Moved to tm-i386.h. (STORE_RETURN_VALUE): Moved to tm-i386.h. * config/i386/tm-sun386.h: (TM_SUN386_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include. (TARGET_BYTE_ORDER): Remove. (FUNCTION_START_OFFSET): Remove. (SKIP_PROLOGUE): Remove. (SAVED_PC_AFTER_CALL): Remove. (INNER_THAN): Remove. (BREAKPOINT): Remove. (DECR_PC_AFTER_BREAK): Remove. (ABOUT_TO_RETURN): Remove. (REGISTER_SIZE): Remove. (NUM_REGS): Undefine before defining. (REGISTER_NAMES): Undefine before redefining. (REGISTER_BYTES): Undefine before redefining. (REGISTER_BYTE): Undefine before defining. (FP_REGNUM): Undefine before defining. (PC_REGNUM): Undefine before defining. (FPC_REGNUM): Undefine before defining. (REGISTER_RAW_SIZE): Undefine before defining. (FRAME_CHAIN): Undefine before defining. (FRAMELESS_FUNCTION_INVOCATION): Undefine before defining. (FRAME_SAVED_PC): Undefine before defining. (FRAME_NUM_ARGS): Moved to tm-i386.h. (MAX_REGISTER_RAW_SIZE): Remove. (MAX_REGISTER_VIRTUAL_SIZE): Remove. (STORE_STRUCT_RETURN): Remove. (EXTRACT_STRUCT_VALUE_ADDRESS): Remove. (FRAME_ARGS_ADDRESS): Remove. (FRAME_LOCALS_ADDRESS): Remove. (FRAME_NUM_ARGS): Undefine before defining. (FRAME_ARGS_SKIP): Remove. (FRAME_FIND_SAVED_REGS): Remove. (PUSH_DUMMY_FRAME): Remove. (POP_FRAME): Remove. (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET): Remove. (struct frame_info, struct frame_saved_regs): Remove forward decls for prototypes. * config/i386/tm-i386lynx.h (i386/tm-i386.h): Include instead of tm-i386v.h. * config/i386/tm-i386m3.h (i386/tm-i386.h): Include instead of tm-i386v.h.
1995-11-02 15:20:50 +00:00
#undef REGISTER_BYTES
#define REGISTER_BYTES (20*4+8*10+7*4)
/* Index within `registers' of the first byte of the space for
register N. */
* config/i386/tm-i386.h: New file containing generic i*86 target definitions. (TARGET_BYTE_ORDER): Moved here from tm-i386v.h. (IEEE_FLOAT): Moved here from tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Define default as 2. (FUNCTION_START_OFFSET): Moved here from tm-i386v.h. (SKIP_PROLOGUE): Moved here from tm-i386v.h. (SAVED_PC_AFTER_CALL): Moved here from tm-i386v.h. (INNER_THAN): Moved here from tm-i386v.h. (BREAKPOINT): Moved here from tm-i386v.h. (DECR_PC_AFTER_BREAK): Moved here from tm-i386v.h. (ABOUT_TO_RETURN): Moved here from tm-i386v.h. (REGISTER_SIZE): Moved here from tm-i386v.h. (NUM_REGS): Moved here from tm-i386v.h. (REGISTER_NAMES): Moved here from tm-i386v.h. (EXTRACT_STRUCT_VALUE_ADDRESS): Moved here from tm-i386v.h. (FP_REGNUM): Moved here from tm-i386v.h. (SP_REGNUM): Moved here from tm-i386v.h. (PC_REGNUM): Moved here from tm-i386v.h. (PS_REGNUM): Moved here from tm-i386v.h. (FP0_REGNUM): Moved here from tm-i386aix.h. (FPC_REGNUM): Moved here from tm-sun386.h. (REGISTER_BYTES): Moved here from tm-i386aix.h. (REGISTER_BYTE): Moved here from tm-i386aix.h. (REGISTER_RAW_SIZE): Moved here from tm-i386aix.h. (MAX_REGISTER_RAW_SIZE): Moved here from tm-i386aix.h. (REGISTER_VIRTUAL_SIZE): Moved here from tm-i386aix.h. (MAX_REGISTER_VIRTUAL_SIZE): Moved here from tm-i386aix.h. (EXTRACT_RETURN_VALUE): Moved here from tm-i386aix.h. (STORE_RETURN_VALUE): Moved here from tm-i386aix.h. (REGISTER_VIRTUAL_TYPE): Moved here from tm-i386v.h. (STORE_STRUCT_RETURN): Moved here from tm-i386v.h. (FRAME_CHAIN): Moved here from tm-i386v4.h. (FRAMELESS_FUNCTION_INVOCATION): Moved here from tm-i386v4.h. (FRAME_SAVED_PC): Moved here from tm-i386os9k.h (FRAME_ARGS_ADDRESS): Moved here from tm-i386v.h. (FRAME_LOCALS_ADDRESS): Moved here from tm-i386v.h. (FRAME_NUM_ARGS): Moved here from tm-i386sun.h. (FRAME_ARGS_SKIP): Moved here from tm-i386v.h. (FRAME_FIND_SAVED_REGS): Moved here from tm-i386v.h. (PUSH_DUMMY_FRAME): Moved here from tm-i386v.h. (POP_FRAME): Moved here from tm-i386v.h. (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Moved here from tm-i386v.h (print_387_control_word, print_387_status_word): Declare prototypes. (struct frame_info, struct frame_saved_regs): Forward decls for prototypes. (SP_ARG0): Moved here from tm-i386v.h. * config/i386/tm-i386v.h: (i386/tm-i386.h): Include. (TARGET_BYTE_ORDER): Remove. (IEEE_FLOAT): Remove. (START_INFERIOR_TRAPS_EXPECTED): Undef before redefine to 4. (FUNCTION_START_OFFSET): Remove. (SKIP_PROLOGUE): Remove. (i386_skip_prologue): Remove prototype. (SAVED_PC_AFTER_CALL): Remove. (INNER_THAN): Remove. (BREAKPOINT): Remove. (DECR_PC_AFTER_BREAK): Remove. (ABOUT_TO_RETURN): Remove. (REGISTER_SIZE): Remove. (NUM_REGS): Undef before redefine to 16 (no FP support). (REGISTER_NAMES): Undef before redefine. (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove. (REGISTER_BYTES): Undef before redefine. (REGISTER_BYTE): Undef before redefine. (REGISTER_RAW_SIZE): Undef before redefine. (REGISTER_VIRTUAL_SIZE): Undef before redefine. (MAX_REGISTER_RAW_SIZE): Undef before redefine. (MAX_REGISTER_VIRTUAL_SIZE): Undef before redefine. (REGISTER_VIRTUAL_TYPE): Undef before redefine. (STORE_STRUCT_RETURN): Undef before redefine. (EXTRACT_RETURN_VALUE): Undef before redefine. (STORE_RETURN_VALUE): Undef before redefine. (EXTRACT_STRUCT_VALUE_ADDRESS): Remove. (FRAME_CHAIN): Undef before redefine. (FRAMELESS_FUNCTION_INVOCATION): Undef before redefine. (FRAME_SAVED_PC): Undef before redefine. (FRAME_ARGS_ADDRESS): Remove. (FRAME_LOCALS_ADDRESS): Remove. (FRAME_NUM_ARGS): Undef before redefine. (FRAME_ARGS_SKIP): Remove. (FRAME_FIND_SAVED_REGS): Remove. (PUSH_DUMMY_FRAME): Remove. (POP_FRAME): Remove. (CALL_DUMMY): Remove. (CALL_DUMMY_LENGTH): Remove. (CALL_DUMMY_START_OFFSET): Remove. (CALL_DUMMY_BREAKPOINT_OFFSET): Remove (FIX_CALL_DUMMY): Remove. (print_387_control_word): Remove. (print_387_status_word): Remove. (SP_ARG0): Remove. * config/i386/tm-symmetry.h: (TM_SYMMETRY_H): Enclose file in test for define & define if needed. (START_INFERIOR_TRAPS_EXPECTED): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define back to 2. (DECR_PC_AFTER_BREAK): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define to 0. (MAX_REGISTER_RAW_SIZE): Remove. (FRAME_CHAIN): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Remove. (print_387_control_word, print_387_status_word): Remove prototypes. * config/i386/tm-ptx.h: (TM_PTX_H): Enclose file in test for define & define if needed. (START_INFERIOR_TRAPS_EXPECTED): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define back to 2. (DECR_PC_AFTER_BREAK): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define to 0. (SDB_REG_TO_REGNUM): Remove obsolete commented out define. (print_387_control_word, print_387_status_word): Remove prototypes. * config/i386/tm-linux.h: (TM_LINUX_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. * config/i386/tm-i386v4.h: (TM_I386V4_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FRAME_CHAIN): Moved to tm-i386.h. (FRAMELESS_FUNCTION_INVOCATION): Moved to tm-i386.h. (FRAME_SAVED_PC): Remove. (sigtramp_saved_pc): Define as i386v4_sigtramp_saved_pc. (FRAME_NUM_ARGS): Remove. * config/i386/tm-i386os9k.h: (TM_I386OS9K_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (NUM_REGS): Undefine before redefining. (FRAME_CHAIN): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Move to tm-i386.h. * config/i386/tm-i386nw.h: (TM_I386NW_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. * config/i386/tm-i386bsd.h: (TM_I386BSD_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Remove. * config/i386/tm-i386aix.h: (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FP_REGNUM): Remove. (SP_REGNUM): Remove. (PC_REGNUM): Remove. (PS_REGNUM): Remove. (FP0_REGNUM): Moved to tm-i386.h. (NUM_REGS): Remove. (REGISTER_NAMES): Remove. (REGISTER_BYTES): Moved to tm-i386.h. (REGISTER_BYTE): Moved to tm-i386.h. (REGISTER_RAW_SIZE): Moved to tm-i386.h. (MAX_REGISTER_RAW_SIZE): Moved to tm-i386.h. (REGISTER_VIRTUAL_SIZE): Moved to tm-i386.h. (REGISTER_VIRTUAL_TYPE): Removed. (EXTRACT_RETURN_VALUE): Moved to tm-i386.h. (STORE_RETURN_VALUE): Moved to tm-i386.h. * config/i386/tm-sun386.h: (TM_SUN386_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include. (TARGET_BYTE_ORDER): Remove. (FUNCTION_START_OFFSET): Remove. (SKIP_PROLOGUE): Remove. (SAVED_PC_AFTER_CALL): Remove. (INNER_THAN): Remove. (BREAKPOINT): Remove. (DECR_PC_AFTER_BREAK): Remove. (ABOUT_TO_RETURN): Remove. (REGISTER_SIZE): Remove. (NUM_REGS): Undefine before defining. (REGISTER_NAMES): Undefine before redefining. (REGISTER_BYTES): Undefine before redefining. (REGISTER_BYTE): Undefine before defining. (FP_REGNUM): Undefine before defining. (PC_REGNUM): Undefine before defining. (FPC_REGNUM): Undefine before defining. (REGISTER_RAW_SIZE): Undefine before defining. (FRAME_CHAIN): Undefine before defining. (FRAMELESS_FUNCTION_INVOCATION): Undefine before defining. (FRAME_SAVED_PC): Undefine before defining. (FRAME_NUM_ARGS): Moved to tm-i386.h. (MAX_REGISTER_RAW_SIZE): Remove. (MAX_REGISTER_VIRTUAL_SIZE): Remove. (STORE_STRUCT_RETURN): Remove. (EXTRACT_STRUCT_VALUE_ADDRESS): Remove. (FRAME_ARGS_ADDRESS): Remove. (FRAME_LOCALS_ADDRESS): Remove. (FRAME_NUM_ARGS): Undefine before defining. (FRAME_ARGS_SKIP): Remove. (FRAME_FIND_SAVED_REGS): Remove. (PUSH_DUMMY_FRAME): Remove. (POP_FRAME): Remove. (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET): Remove. (struct frame_info, struct frame_saved_regs): Remove forward decls for prototypes. * config/i386/tm-i386lynx.h (i386/tm-i386.h): Include instead of tm-i386v.h. * config/i386/tm-i386m3.h (i386/tm-i386.h): Include instead of tm-i386v.h.
1995-11-02 15:20:50 +00:00
#undef REGISTER_BYTE
#define REGISTER_BYTE(N) \
((N) >= FPC_REGNUM ? (((N) - FPC_REGNUM) * 4) + 160 \
: (N) >= FP0_REGNUM ? (((N) - FP0_REGNUM) * 10) + 80 \
: (N) * 4)
/* Number of bytes of storage in the actual machine representation
for register N. */
* config/i386/tm-i386.h: New file containing generic i*86 target definitions. (TARGET_BYTE_ORDER): Moved here from tm-i386v.h. (IEEE_FLOAT): Moved here from tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Define default as 2. (FUNCTION_START_OFFSET): Moved here from tm-i386v.h. (SKIP_PROLOGUE): Moved here from tm-i386v.h. (SAVED_PC_AFTER_CALL): Moved here from tm-i386v.h. (INNER_THAN): Moved here from tm-i386v.h. (BREAKPOINT): Moved here from tm-i386v.h. (DECR_PC_AFTER_BREAK): Moved here from tm-i386v.h. (ABOUT_TO_RETURN): Moved here from tm-i386v.h. (REGISTER_SIZE): Moved here from tm-i386v.h. (NUM_REGS): Moved here from tm-i386v.h. (REGISTER_NAMES): Moved here from tm-i386v.h. (EXTRACT_STRUCT_VALUE_ADDRESS): Moved here from tm-i386v.h. (FP_REGNUM): Moved here from tm-i386v.h. (SP_REGNUM): Moved here from tm-i386v.h. (PC_REGNUM): Moved here from tm-i386v.h. (PS_REGNUM): Moved here from tm-i386v.h. (FP0_REGNUM): Moved here from tm-i386aix.h. (FPC_REGNUM): Moved here from tm-sun386.h. (REGISTER_BYTES): Moved here from tm-i386aix.h. (REGISTER_BYTE): Moved here from tm-i386aix.h. (REGISTER_RAW_SIZE): Moved here from tm-i386aix.h. (MAX_REGISTER_RAW_SIZE): Moved here from tm-i386aix.h. (REGISTER_VIRTUAL_SIZE): Moved here from tm-i386aix.h. (MAX_REGISTER_VIRTUAL_SIZE): Moved here from tm-i386aix.h. (EXTRACT_RETURN_VALUE): Moved here from tm-i386aix.h. (STORE_RETURN_VALUE): Moved here from tm-i386aix.h. (REGISTER_VIRTUAL_TYPE): Moved here from tm-i386v.h. (STORE_STRUCT_RETURN): Moved here from tm-i386v.h. (FRAME_CHAIN): Moved here from tm-i386v4.h. (FRAMELESS_FUNCTION_INVOCATION): Moved here from tm-i386v4.h. (FRAME_SAVED_PC): Moved here from tm-i386os9k.h (FRAME_ARGS_ADDRESS): Moved here from tm-i386v.h. (FRAME_LOCALS_ADDRESS): Moved here from tm-i386v.h. (FRAME_NUM_ARGS): Moved here from tm-i386sun.h. (FRAME_ARGS_SKIP): Moved here from tm-i386v.h. (FRAME_FIND_SAVED_REGS): Moved here from tm-i386v.h. (PUSH_DUMMY_FRAME): Moved here from tm-i386v.h. (POP_FRAME): Moved here from tm-i386v.h. (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Moved here from tm-i386v.h (print_387_control_word, print_387_status_word): Declare prototypes. (struct frame_info, struct frame_saved_regs): Forward decls for prototypes. (SP_ARG0): Moved here from tm-i386v.h. * config/i386/tm-i386v.h: (i386/tm-i386.h): Include. (TARGET_BYTE_ORDER): Remove. (IEEE_FLOAT): Remove. (START_INFERIOR_TRAPS_EXPECTED): Undef before redefine to 4. (FUNCTION_START_OFFSET): Remove. (SKIP_PROLOGUE): Remove. (i386_skip_prologue): Remove prototype. (SAVED_PC_AFTER_CALL): Remove. (INNER_THAN): Remove. (BREAKPOINT): Remove. (DECR_PC_AFTER_BREAK): Remove. (ABOUT_TO_RETURN): Remove. (REGISTER_SIZE): Remove. (NUM_REGS): Undef before redefine to 16 (no FP support). (REGISTER_NAMES): Undef before redefine. (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove. (REGISTER_BYTES): Undef before redefine. (REGISTER_BYTE): Undef before redefine. (REGISTER_RAW_SIZE): Undef before redefine. (REGISTER_VIRTUAL_SIZE): Undef before redefine. (MAX_REGISTER_RAW_SIZE): Undef before redefine. (MAX_REGISTER_VIRTUAL_SIZE): Undef before redefine. (REGISTER_VIRTUAL_TYPE): Undef before redefine. (STORE_STRUCT_RETURN): Undef before redefine. (EXTRACT_RETURN_VALUE): Undef before redefine. (STORE_RETURN_VALUE): Undef before redefine. (EXTRACT_STRUCT_VALUE_ADDRESS): Remove. (FRAME_CHAIN): Undef before redefine. (FRAMELESS_FUNCTION_INVOCATION): Undef before redefine. (FRAME_SAVED_PC): Undef before redefine. (FRAME_ARGS_ADDRESS): Remove. (FRAME_LOCALS_ADDRESS): Remove. (FRAME_NUM_ARGS): Undef before redefine. (FRAME_ARGS_SKIP): Remove. (FRAME_FIND_SAVED_REGS): Remove. (PUSH_DUMMY_FRAME): Remove. (POP_FRAME): Remove. (CALL_DUMMY): Remove. (CALL_DUMMY_LENGTH): Remove. (CALL_DUMMY_START_OFFSET): Remove. (CALL_DUMMY_BREAKPOINT_OFFSET): Remove (FIX_CALL_DUMMY): Remove. (print_387_control_word): Remove. (print_387_status_word): Remove. (SP_ARG0): Remove. * config/i386/tm-symmetry.h: (TM_SYMMETRY_H): Enclose file in test for define & define if needed. (START_INFERIOR_TRAPS_EXPECTED): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define back to 2. (DECR_PC_AFTER_BREAK): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define to 0. (MAX_REGISTER_RAW_SIZE): Remove. (FRAME_CHAIN): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Remove. (print_387_control_word, print_387_status_word): Remove prototypes. * config/i386/tm-ptx.h: (TM_PTX_H): Enclose file in test for define & define if needed. (START_INFERIOR_TRAPS_EXPECTED): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define back to 2. (DECR_PC_AFTER_BREAK): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define to 0. (SDB_REG_TO_REGNUM): Remove obsolete commented out define. (print_387_control_word, print_387_status_word): Remove prototypes. * config/i386/tm-linux.h: (TM_LINUX_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. * config/i386/tm-i386v4.h: (TM_I386V4_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FRAME_CHAIN): Moved to tm-i386.h. (FRAMELESS_FUNCTION_INVOCATION): Moved to tm-i386.h. (FRAME_SAVED_PC): Remove. (sigtramp_saved_pc): Define as i386v4_sigtramp_saved_pc. (FRAME_NUM_ARGS): Remove. * config/i386/tm-i386os9k.h: (TM_I386OS9K_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (NUM_REGS): Undefine before redefining. (FRAME_CHAIN): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Move to tm-i386.h. * config/i386/tm-i386nw.h: (TM_I386NW_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. * config/i386/tm-i386bsd.h: (TM_I386BSD_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Remove. * config/i386/tm-i386aix.h: (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FP_REGNUM): Remove. (SP_REGNUM): Remove. (PC_REGNUM): Remove. (PS_REGNUM): Remove. (FP0_REGNUM): Moved to tm-i386.h. (NUM_REGS): Remove. (REGISTER_NAMES): Remove. (REGISTER_BYTES): Moved to tm-i386.h. (REGISTER_BYTE): Moved to tm-i386.h. (REGISTER_RAW_SIZE): Moved to tm-i386.h. (MAX_REGISTER_RAW_SIZE): Moved to tm-i386.h. (REGISTER_VIRTUAL_SIZE): Moved to tm-i386.h. (REGISTER_VIRTUAL_TYPE): Removed. (EXTRACT_RETURN_VALUE): Moved to tm-i386.h. (STORE_RETURN_VALUE): Moved to tm-i386.h. * config/i386/tm-sun386.h: (TM_SUN386_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include. (TARGET_BYTE_ORDER): Remove. (FUNCTION_START_OFFSET): Remove. (SKIP_PROLOGUE): Remove. (SAVED_PC_AFTER_CALL): Remove. (INNER_THAN): Remove. (BREAKPOINT): Remove. (DECR_PC_AFTER_BREAK): Remove. (ABOUT_TO_RETURN): Remove. (REGISTER_SIZE): Remove. (NUM_REGS): Undefine before defining. (REGISTER_NAMES): Undefine before redefining. (REGISTER_BYTES): Undefine before redefining. (REGISTER_BYTE): Undefine before defining. (FP_REGNUM): Undefine before defining. (PC_REGNUM): Undefine before defining. (FPC_REGNUM): Undefine before defining. (REGISTER_RAW_SIZE): Undefine before defining. (FRAME_CHAIN): Undefine before defining. (FRAMELESS_FUNCTION_INVOCATION): Undefine before defining. (FRAME_SAVED_PC): Undefine before defining. (FRAME_NUM_ARGS): Moved to tm-i386.h. (MAX_REGISTER_RAW_SIZE): Remove. (MAX_REGISTER_VIRTUAL_SIZE): Remove. (STORE_STRUCT_RETURN): Remove. (EXTRACT_STRUCT_VALUE_ADDRESS): Remove. (FRAME_ARGS_ADDRESS): Remove. (FRAME_LOCALS_ADDRESS): Remove. (FRAME_NUM_ARGS): Undefine before defining. (FRAME_ARGS_SKIP): Remove. (FRAME_FIND_SAVED_REGS): Remove. (PUSH_DUMMY_FRAME): Remove. (POP_FRAME): Remove. (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET): Remove. (struct frame_info, struct frame_saved_regs): Remove forward decls for prototypes. * config/i386/tm-i386lynx.h (i386/tm-i386.h): Include instead of tm-i386v.h. * config/i386/tm-i386m3.h (i386/tm-i386.h): Include instead of tm-i386v.h.
1995-11-02 15:20:50 +00:00
#undef REGISTER_RAW_SIZE
#define REGISTER_RAW_SIZE(N) (((unsigned)((N) - FP0_REGNUM)) < 8 ? 10 : 4)
/* Number of bytes of storage in the program's representation
for register N. */
* config/i386/tm-i386.h: New file containing generic i*86 target definitions. (TARGET_BYTE_ORDER): Moved here from tm-i386v.h. (IEEE_FLOAT): Moved here from tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Define default as 2. (FUNCTION_START_OFFSET): Moved here from tm-i386v.h. (SKIP_PROLOGUE): Moved here from tm-i386v.h. (SAVED_PC_AFTER_CALL): Moved here from tm-i386v.h. (INNER_THAN): Moved here from tm-i386v.h. (BREAKPOINT): Moved here from tm-i386v.h. (DECR_PC_AFTER_BREAK): Moved here from tm-i386v.h. (ABOUT_TO_RETURN): Moved here from tm-i386v.h. (REGISTER_SIZE): Moved here from tm-i386v.h. (NUM_REGS): Moved here from tm-i386v.h. (REGISTER_NAMES): Moved here from tm-i386v.h. (EXTRACT_STRUCT_VALUE_ADDRESS): Moved here from tm-i386v.h. (FP_REGNUM): Moved here from tm-i386v.h. (SP_REGNUM): Moved here from tm-i386v.h. (PC_REGNUM): Moved here from tm-i386v.h. (PS_REGNUM): Moved here from tm-i386v.h. (FP0_REGNUM): Moved here from tm-i386aix.h. (FPC_REGNUM): Moved here from tm-sun386.h. (REGISTER_BYTES): Moved here from tm-i386aix.h. (REGISTER_BYTE): Moved here from tm-i386aix.h. (REGISTER_RAW_SIZE): Moved here from tm-i386aix.h. (MAX_REGISTER_RAW_SIZE): Moved here from tm-i386aix.h. (REGISTER_VIRTUAL_SIZE): Moved here from tm-i386aix.h. (MAX_REGISTER_VIRTUAL_SIZE): Moved here from tm-i386aix.h. (EXTRACT_RETURN_VALUE): Moved here from tm-i386aix.h. (STORE_RETURN_VALUE): Moved here from tm-i386aix.h. (REGISTER_VIRTUAL_TYPE): Moved here from tm-i386v.h. (STORE_STRUCT_RETURN): Moved here from tm-i386v.h. (FRAME_CHAIN): Moved here from tm-i386v4.h. (FRAMELESS_FUNCTION_INVOCATION): Moved here from tm-i386v4.h. (FRAME_SAVED_PC): Moved here from tm-i386os9k.h (FRAME_ARGS_ADDRESS): Moved here from tm-i386v.h. (FRAME_LOCALS_ADDRESS): Moved here from tm-i386v.h. (FRAME_NUM_ARGS): Moved here from tm-i386sun.h. (FRAME_ARGS_SKIP): Moved here from tm-i386v.h. (FRAME_FIND_SAVED_REGS): Moved here from tm-i386v.h. (PUSH_DUMMY_FRAME): Moved here from tm-i386v.h. (POP_FRAME): Moved here from tm-i386v.h. (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Moved here from tm-i386v.h (print_387_control_word, print_387_status_word): Declare prototypes. (struct frame_info, struct frame_saved_regs): Forward decls for prototypes. (SP_ARG0): Moved here from tm-i386v.h. * config/i386/tm-i386v.h: (i386/tm-i386.h): Include. (TARGET_BYTE_ORDER): Remove. (IEEE_FLOAT): Remove. (START_INFERIOR_TRAPS_EXPECTED): Undef before redefine to 4. (FUNCTION_START_OFFSET): Remove. (SKIP_PROLOGUE): Remove. (i386_skip_prologue): Remove prototype. (SAVED_PC_AFTER_CALL): Remove. (INNER_THAN): Remove. (BREAKPOINT): Remove. (DECR_PC_AFTER_BREAK): Remove. (ABOUT_TO_RETURN): Remove. (REGISTER_SIZE): Remove. (NUM_REGS): Undef before redefine to 16 (no FP support). (REGISTER_NAMES): Undef before redefine. (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove. (REGISTER_BYTES): Undef before redefine. (REGISTER_BYTE): Undef before redefine. (REGISTER_RAW_SIZE): Undef before redefine. (REGISTER_VIRTUAL_SIZE): Undef before redefine. (MAX_REGISTER_RAW_SIZE): Undef before redefine. (MAX_REGISTER_VIRTUAL_SIZE): Undef before redefine. (REGISTER_VIRTUAL_TYPE): Undef before redefine. (STORE_STRUCT_RETURN): Undef before redefine. (EXTRACT_RETURN_VALUE): Undef before redefine. (STORE_RETURN_VALUE): Undef before redefine. (EXTRACT_STRUCT_VALUE_ADDRESS): Remove. (FRAME_CHAIN): Undef before redefine. (FRAMELESS_FUNCTION_INVOCATION): Undef before redefine. (FRAME_SAVED_PC): Undef before redefine. (FRAME_ARGS_ADDRESS): Remove. (FRAME_LOCALS_ADDRESS): Remove. (FRAME_NUM_ARGS): Undef before redefine. (FRAME_ARGS_SKIP): Remove. (FRAME_FIND_SAVED_REGS): Remove. (PUSH_DUMMY_FRAME): Remove. (POP_FRAME): Remove. (CALL_DUMMY): Remove. (CALL_DUMMY_LENGTH): Remove. (CALL_DUMMY_START_OFFSET): Remove. (CALL_DUMMY_BREAKPOINT_OFFSET): Remove (FIX_CALL_DUMMY): Remove. (print_387_control_word): Remove. (print_387_status_word): Remove. (SP_ARG0): Remove. * config/i386/tm-symmetry.h: (TM_SYMMETRY_H): Enclose file in test for define & define if needed. (START_INFERIOR_TRAPS_EXPECTED): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define back to 2. (DECR_PC_AFTER_BREAK): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define to 0. (MAX_REGISTER_RAW_SIZE): Remove. (FRAME_CHAIN): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Remove. (print_387_control_word, print_387_status_word): Remove prototypes. * config/i386/tm-ptx.h: (TM_PTX_H): Enclose file in test for define & define if needed. (START_INFERIOR_TRAPS_EXPECTED): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define back to 2. (DECR_PC_AFTER_BREAK): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define to 0. (SDB_REG_TO_REGNUM): Remove obsolete commented out define. (print_387_control_word, print_387_status_word): Remove prototypes. * config/i386/tm-linux.h: (TM_LINUX_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. * config/i386/tm-i386v4.h: (TM_I386V4_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FRAME_CHAIN): Moved to tm-i386.h. (FRAMELESS_FUNCTION_INVOCATION): Moved to tm-i386.h. (FRAME_SAVED_PC): Remove. (sigtramp_saved_pc): Define as i386v4_sigtramp_saved_pc. (FRAME_NUM_ARGS): Remove. * config/i386/tm-i386os9k.h: (TM_I386OS9K_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (NUM_REGS): Undefine before redefining. (FRAME_CHAIN): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Move to tm-i386.h. * config/i386/tm-i386nw.h: (TM_I386NW_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. * config/i386/tm-i386bsd.h: (TM_I386BSD_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Remove. * config/i386/tm-i386aix.h: (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FP_REGNUM): Remove. (SP_REGNUM): Remove. (PC_REGNUM): Remove. (PS_REGNUM): Remove. (FP0_REGNUM): Moved to tm-i386.h. (NUM_REGS): Remove. (REGISTER_NAMES): Remove. (REGISTER_BYTES): Moved to tm-i386.h. (REGISTER_BYTE): Moved to tm-i386.h. (REGISTER_RAW_SIZE): Moved to tm-i386.h. (MAX_REGISTER_RAW_SIZE): Moved to tm-i386.h. (REGISTER_VIRTUAL_SIZE): Moved to tm-i386.h. (REGISTER_VIRTUAL_TYPE): Removed. (EXTRACT_RETURN_VALUE): Moved to tm-i386.h. (STORE_RETURN_VALUE): Moved to tm-i386.h. * config/i386/tm-sun386.h: (TM_SUN386_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include. (TARGET_BYTE_ORDER): Remove. (FUNCTION_START_OFFSET): Remove. (SKIP_PROLOGUE): Remove. (SAVED_PC_AFTER_CALL): Remove. (INNER_THAN): Remove. (BREAKPOINT): Remove. (DECR_PC_AFTER_BREAK): Remove. (ABOUT_TO_RETURN): Remove. (REGISTER_SIZE): Remove. (NUM_REGS): Undefine before defining. (REGISTER_NAMES): Undefine before redefining. (REGISTER_BYTES): Undefine before redefining. (REGISTER_BYTE): Undefine before defining. (FP_REGNUM): Undefine before defining. (PC_REGNUM): Undefine before defining. (FPC_REGNUM): Undefine before defining. (REGISTER_RAW_SIZE): Undefine before defining. (FRAME_CHAIN): Undefine before defining. (FRAMELESS_FUNCTION_INVOCATION): Undefine before defining. (FRAME_SAVED_PC): Undefine before defining. (FRAME_NUM_ARGS): Moved to tm-i386.h. (MAX_REGISTER_RAW_SIZE): Remove. (MAX_REGISTER_VIRTUAL_SIZE): Remove. (STORE_STRUCT_RETURN): Remove. (EXTRACT_STRUCT_VALUE_ADDRESS): Remove. (FRAME_ARGS_ADDRESS): Remove. (FRAME_LOCALS_ADDRESS): Remove. (FRAME_NUM_ARGS): Undefine before defining. (FRAME_ARGS_SKIP): Remove. (FRAME_FIND_SAVED_REGS): Remove. (PUSH_DUMMY_FRAME): Remove. (POP_FRAME): Remove. (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET): Remove. (struct frame_info, struct frame_saved_regs): Remove forward decls for prototypes. * config/i386/tm-i386lynx.h (i386/tm-i386.h): Include instead of tm-i386v.h. * config/i386/tm-i386m3.h (i386/tm-i386.h): Include instead of tm-i386v.h.
1995-11-02 15:20:50 +00:00
#undef REGISTER_VIRTUAL_SIZE
#define REGISTER_VIRTUAL_SIZE(N) (((unsigned)((N) - FP0_REGNUM)) < 8 ? 8 : 4)
/* Nonzero if register N requires conversion
from raw format to virtual format. */
* config/i386/tm-i386.h: New file containing generic i*86 target definitions. (TARGET_BYTE_ORDER): Moved here from tm-i386v.h. (IEEE_FLOAT): Moved here from tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Define default as 2. (FUNCTION_START_OFFSET): Moved here from tm-i386v.h. (SKIP_PROLOGUE): Moved here from tm-i386v.h. (SAVED_PC_AFTER_CALL): Moved here from tm-i386v.h. (INNER_THAN): Moved here from tm-i386v.h. (BREAKPOINT): Moved here from tm-i386v.h. (DECR_PC_AFTER_BREAK): Moved here from tm-i386v.h. (ABOUT_TO_RETURN): Moved here from tm-i386v.h. (REGISTER_SIZE): Moved here from tm-i386v.h. (NUM_REGS): Moved here from tm-i386v.h. (REGISTER_NAMES): Moved here from tm-i386v.h. (EXTRACT_STRUCT_VALUE_ADDRESS): Moved here from tm-i386v.h. (FP_REGNUM): Moved here from tm-i386v.h. (SP_REGNUM): Moved here from tm-i386v.h. (PC_REGNUM): Moved here from tm-i386v.h. (PS_REGNUM): Moved here from tm-i386v.h. (FP0_REGNUM): Moved here from tm-i386aix.h. (FPC_REGNUM): Moved here from tm-sun386.h. (REGISTER_BYTES): Moved here from tm-i386aix.h. (REGISTER_BYTE): Moved here from tm-i386aix.h. (REGISTER_RAW_SIZE): Moved here from tm-i386aix.h. (MAX_REGISTER_RAW_SIZE): Moved here from tm-i386aix.h. (REGISTER_VIRTUAL_SIZE): Moved here from tm-i386aix.h. (MAX_REGISTER_VIRTUAL_SIZE): Moved here from tm-i386aix.h. (EXTRACT_RETURN_VALUE): Moved here from tm-i386aix.h. (STORE_RETURN_VALUE): Moved here from tm-i386aix.h. (REGISTER_VIRTUAL_TYPE): Moved here from tm-i386v.h. (STORE_STRUCT_RETURN): Moved here from tm-i386v.h. (FRAME_CHAIN): Moved here from tm-i386v4.h. (FRAMELESS_FUNCTION_INVOCATION): Moved here from tm-i386v4.h. (FRAME_SAVED_PC): Moved here from tm-i386os9k.h (FRAME_ARGS_ADDRESS): Moved here from tm-i386v.h. (FRAME_LOCALS_ADDRESS): Moved here from tm-i386v.h. (FRAME_NUM_ARGS): Moved here from tm-i386sun.h. (FRAME_ARGS_SKIP): Moved here from tm-i386v.h. (FRAME_FIND_SAVED_REGS): Moved here from tm-i386v.h. (PUSH_DUMMY_FRAME): Moved here from tm-i386v.h. (POP_FRAME): Moved here from tm-i386v.h. (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Moved here from tm-i386v.h (print_387_control_word, print_387_status_word): Declare prototypes. (struct frame_info, struct frame_saved_regs): Forward decls for prototypes. (SP_ARG0): Moved here from tm-i386v.h. * config/i386/tm-i386v.h: (i386/tm-i386.h): Include. (TARGET_BYTE_ORDER): Remove. (IEEE_FLOAT): Remove. (START_INFERIOR_TRAPS_EXPECTED): Undef before redefine to 4. (FUNCTION_START_OFFSET): Remove. (SKIP_PROLOGUE): Remove. (i386_skip_prologue): Remove prototype. (SAVED_PC_AFTER_CALL): Remove. (INNER_THAN): Remove. (BREAKPOINT): Remove. (DECR_PC_AFTER_BREAK): Remove. (ABOUT_TO_RETURN): Remove. (REGISTER_SIZE): Remove. (NUM_REGS): Undef before redefine to 16 (no FP support). (REGISTER_NAMES): Undef before redefine. (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove. (REGISTER_BYTES): Undef before redefine. (REGISTER_BYTE): Undef before redefine. (REGISTER_RAW_SIZE): Undef before redefine. (REGISTER_VIRTUAL_SIZE): Undef before redefine. (MAX_REGISTER_RAW_SIZE): Undef before redefine. (MAX_REGISTER_VIRTUAL_SIZE): Undef before redefine. (REGISTER_VIRTUAL_TYPE): Undef before redefine. (STORE_STRUCT_RETURN): Undef before redefine. (EXTRACT_RETURN_VALUE): Undef before redefine. (STORE_RETURN_VALUE): Undef before redefine. (EXTRACT_STRUCT_VALUE_ADDRESS): Remove. (FRAME_CHAIN): Undef before redefine. (FRAMELESS_FUNCTION_INVOCATION): Undef before redefine. (FRAME_SAVED_PC): Undef before redefine. (FRAME_ARGS_ADDRESS): Remove. (FRAME_LOCALS_ADDRESS): Remove. (FRAME_NUM_ARGS): Undef before redefine. (FRAME_ARGS_SKIP): Remove. (FRAME_FIND_SAVED_REGS): Remove. (PUSH_DUMMY_FRAME): Remove. (POP_FRAME): Remove. (CALL_DUMMY): Remove. (CALL_DUMMY_LENGTH): Remove. (CALL_DUMMY_START_OFFSET): Remove. (CALL_DUMMY_BREAKPOINT_OFFSET): Remove (FIX_CALL_DUMMY): Remove. (print_387_control_word): Remove. (print_387_status_word): Remove. (SP_ARG0): Remove. * config/i386/tm-symmetry.h: (TM_SYMMETRY_H): Enclose file in test for define & define if needed. (START_INFERIOR_TRAPS_EXPECTED): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define back to 2. (DECR_PC_AFTER_BREAK): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define to 0. (MAX_REGISTER_RAW_SIZE): Remove. (FRAME_CHAIN): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Remove. (print_387_control_word, print_387_status_word): Remove prototypes. * config/i386/tm-ptx.h: (TM_PTX_H): Enclose file in test for define & define if needed. (START_INFERIOR_TRAPS_EXPECTED): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define back to 2. (DECR_PC_AFTER_BREAK): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define to 0. (SDB_REG_TO_REGNUM): Remove obsolete commented out define. (print_387_control_word, print_387_status_word): Remove prototypes. * config/i386/tm-linux.h: (TM_LINUX_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. * config/i386/tm-i386v4.h: (TM_I386V4_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FRAME_CHAIN): Moved to tm-i386.h. (FRAMELESS_FUNCTION_INVOCATION): Moved to tm-i386.h. (FRAME_SAVED_PC): Remove. (sigtramp_saved_pc): Define as i386v4_sigtramp_saved_pc. (FRAME_NUM_ARGS): Remove. * config/i386/tm-i386os9k.h: (TM_I386OS9K_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (NUM_REGS): Undefine before redefining. (FRAME_CHAIN): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Move to tm-i386.h. * config/i386/tm-i386nw.h: (TM_I386NW_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. * config/i386/tm-i386bsd.h: (TM_I386BSD_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Remove. * config/i386/tm-i386aix.h: (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FP_REGNUM): Remove. (SP_REGNUM): Remove. (PC_REGNUM): Remove. (PS_REGNUM): Remove. (FP0_REGNUM): Moved to tm-i386.h. (NUM_REGS): Remove. (REGISTER_NAMES): Remove. (REGISTER_BYTES): Moved to tm-i386.h. (REGISTER_BYTE): Moved to tm-i386.h. (REGISTER_RAW_SIZE): Moved to tm-i386.h. (MAX_REGISTER_RAW_SIZE): Moved to tm-i386.h. (REGISTER_VIRTUAL_SIZE): Moved to tm-i386.h. (REGISTER_VIRTUAL_TYPE): Removed. (EXTRACT_RETURN_VALUE): Moved to tm-i386.h. (STORE_RETURN_VALUE): Moved to tm-i386.h. * config/i386/tm-sun386.h: (TM_SUN386_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include. (TARGET_BYTE_ORDER): Remove. (FUNCTION_START_OFFSET): Remove. (SKIP_PROLOGUE): Remove. (SAVED_PC_AFTER_CALL): Remove. (INNER_THAN): Remove. (BREAKPOINT): Remove. (DECR_PC_AFTER_BREAK): Remove. (ABOUT_TO_RETURN): Remove. (REGISTER_SIZE): Remove. (NUM_REGS): Undefine before defining. (REGISTER_NAMES): Undefine before redefining. (REGISTER_BYTES): Undefine before redefining. (REGISTER_BYTE): Undefine before defining. (FP_REGNUM): Undefine before defining. (PC_REGNUM): Undefine before defining. (FPC_REGNUM): Undefine before defining. (REGISTER_RAW_SIZE): Undefine before defining. (FRAME_CHAIN): Undefine before defining. (FRAMELESS_FUNCTION_INVOCATION): Undefine before defining. (FRAME_SAVED_PC): Undefine before defining. (FRAME_NUM_ARGS): Moved to tm-i386.h. (MAX_REGISTER_RAW_SIZE): Remove. (MAX_REGISTER_VIRTUAL_SIZE): Remove. (STORE_STRUCT_RETURN): Remove. (EXTRACT_STRUCT_VALUE_ADDRESS): Remove. (FRAME_ARGS_ADDRESS): Remove. (FRAME_LOCALS_ADDRESS): Remove. (FRAME_NUM_ARGS): Undefine before defining. (FRAME_ARGS_SKIP): Remove. (FRAME_FIND_SAVED_REGS): Remove. (PUSH_DUMMY_FRAME): Remove. (POP_FRAME): Remove. (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET): Remove. (struct frame_info, struct frame_saved_regs): Remove forward decls for prototypes. * config/i386/tm-i386lynx.h (i386/tm-i386.h): Include instead of tm-i386v.h. * config/i386/tm-i386m3.h (i386/tm-i386.h): Include instead of tm-i386v.h.
1995-11-02 15:20:50 +00:00
#undef REGISTER_CONVERTIBLE
#define REGISTER_CONVERTIBLE(N) (((unsigned)((N) - FP0_REGNUM)) < 8)
* findvar.c (value_of_register, value_from_register), hppa-tdep.c (pa_print_fp_reg), infcmd.c (do_registers_info), valops.c (value_assign): Use REGISTER_CONVERT_TO_* only if REGISTER_CONVERTIBLE is defined, otherwise just copy the content. Pass desired type to REGISTER_CONVERT_TO_*. * config/m68k/tm-m68k.h, config/i960/tm-i960.h (REGISTER_CONVERT_*): Pass length of desired type to store/extract_floating. * config/i386/tm-arm.h, config/i386/tm-i386aix.h, config/i386/tm-sun386.h, config/i386/tm-symmetry.h, config/m88k/tm-m88k.h config/rs6000/tm-rs6000.h (REGISTER_CONVERT_*): Use extract_floating and store_floating with length of desired type. * config/m68k/tm-news.h (STORE,EXTRACT_RETURN_VALUE): Add type parameter to REGISTER_CONVERT_*. * config/a29k/tm-a29k.h, config/convex/tm-convex.h, config/gould/tm-np1.h, config/gould/tm-pn.h, config/h8300/tm-h8300.h, config/h8500/tm-h8500.h, config/i386/tm-i386v.h, config/mips/tm-mips.h, config/ns32k/tm-merlin.h, config/ns32k/tm-umax.h, config/pa/tm-hppa.h, config/pyr/tm-pyr.h, config/sh/tm-sh.h, config/sparc/tm-sparc.h, config/tahoe/tm-tahoe.h, config/vax/tm-vax.h, config/z8k/tm-z8k.h (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_RAW, REGISTER_CONVERT_TO_VIRTUAL): Remove versions for which REGISTER_CONVERTIBLE is always false. * z8k-tdep.c (register_convert_to_virtual, register_convert_to_raw): Remove, no longer used. * alpha-tdep.c (alpha_register_convert_to_raw, alpha_register_convert_to_virtual): New routines to handle the different raw formats in alpha floating point registers. * config/alpha/tm-alpha.h (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW): Use them.
1993-11-02 21:51:10 +00:00
/* Convert data from raw format for register REGNUM in buffer FROM
to virtual format with type TYPE in buffer TO. */
* config/i386/tm-i386.h: New file containing generic i*86 target definitions. (TARGET_BYTE_ORDER): Moved here from tm-i386v.h. (IEEE_FLOAT): Moved here from tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Define default as 2. (FUNCTION_START_OFFSET): Moved here from tm-i386v.h. (SKIP_PROLOGUE): Moved here from tm-i386v.h. (SAVED_PC_AFTER_CALL): Moved here from tm-i386v.h. (INNER_THAN): Moved here from tm-i386v.h. (BREAKPOINT): Moved here from tm-i386v.h. (DECR_PC_AFTER_BREAK): Moved here from tm-i386v.h. (ABOUT_TO_RETURN): Moved here from tm-i386v.h. (REGISTER_SIZE): Moved here from tm-i386v.h. (NUM_REGS): Moved here from tm-i386v.h. (REGISTER_NAMES): Moved here from tm-i386v.h. (EXTRACT_STRUCT_VALUE_ADDRESS): Moved here from tm-i386v.h. (FP_REGNUM): Moved here from tm-i386v.h. (SP_REGNUM): Moved here from tm-i386v.h. (PC_REGNUM): Moved here from tm-i386v.h. (PS_REGNUM): Moved here from tm-i386v.h. (FP0_REGNUM): Moved here from tm-i386aix.h. (FPC_REGNUM): Moved here from tm-sun386.h. (REGISTER_BYTES): Moved here from tm-i386aix.h. (REGISTER_BYTE): Moved here from tm-i386aix.h. (REGISTER_RAW_SIZE): Moved here from tm-i386aix.h. (MAX_REGISTER_RAW_SIZE): Moved here from tm-i386aix.h. (REGISTER_VIRTUAL_SIZE): Moved here from tm-i386aix.h. (MAX_REGISTER_VIRTUAL_SIZE): Moved here from tm-i386aix.h. (EXTRACT_RETURN_VALUE): Moved here from tm-i386aix.h. (STORE_RETURN_VALUE): Moved here from tm-i386aix.h. (REGISTER_VIRTUAL_TYPE): Moved here from tm-i386v.h. (STORE_STRUCT_RETURN): Moved here from tm-i386v.h. (FRAME_CHAIN): Moved here from tm-i386v4.h. (FRAMELESS_FUNCTION_INVOCATION): Moved here from tm-i386v4.h. (FRAME_SAVED_PC): Moved here from tm-i386os9k.h (FRAME_ARGS_ADDRESS): Moved here from tm-i386v.h. (FRAME_LOCALS_ADDRESS): Moved here from tm-i386v.h. (FRAME_NUM_ARGS): Moved here from tm-i386sun.h. (FRAME_ARGS_SKIP): Moved here from tm-i386v.h. (FRAME_FIND_SAVED_REGS): Moved here from tm-i386v.h. (PUSH_DUMMY_FRAME): Moved here from tm-i386v.h. (POP_FRAME): Moved here from tm-i386v.h. (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Moved here from tm-i386v.h (print_387_control_word, print_387_status_word): Declare prototypes. (struct frame_info, struct frame_saved_regs): Forward decls for prototypes. (SP_ARG0): Moved here from tm-i386v.h. * config/i386/tm-i386v.h: (i386/tm-i386.h): Include. (TARGET_BYTE_ORDER): Remove. (IEEE_FLOAT): Remove. (START_INFERIOR_TRAPS_EXPECTED): Undef before redefine to 4. (FUNCTION_START_OFFSET): Remove. (SKIP_PROLOGUE): Remove. (i386_skip_prologue): Remove prototype. (SAVED_PC_AFTER_CALL): Remove. (INNER_THAN): Remove. (BREAKPOINT): Remove. (DECR_PC_AFTER_BREAK): Remove. (ABOUT_TO_RETURN): Remove. (REGISTER_SIZE): Remove. (NUM_REGS): Undef before redefine to 16 (no FP support). (REGISTER_NAMES): Undef before redefine. (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove. (REGISTER_BYTES): Undef before redefine. (REGISTER_BYTE): Undef before redefine. (REGISTER_RAW_SIZE): Undef before redefine. (REGISTER_VIRTUAL_SIZE): Undef before redefine. (MAX_REGISTER_RAW_SIZE): Undef before redefine. (MAX_REGISTER_VIRTUAL_SIZE): Undef before redefine. (REGISTER_VIRTUAL_TYPE): Undef before redefine. (STORE_STRUCT_RETURN): Undef before redefine. (EXTRACT_RETURN_VALUE): Undef before redefine. (STORE_RETURN_VALUE): Undef before redefine. (EXTRACT_STRUCT_VALUE_ADDRESS): Remove. (FRAME_CHAIN): Undef before redefine. (FRAMELESS_FUNCTION_INVOCATION): Undef before redefine. (FRAME_SAVED_PC): Undef before redefine. (FRAME_ARGS_ADDRESS): Remove. (FRAME_LOCALS_ADDRESS): Remove. (FRAME_NUM_ARGS): Undef before redefine. (FRAME_ARGS_SKIP): Remove. (FRAME_FIND_SAVED_REGS): Remove. (PUSH_DUMMY_FRAME): Remove. (POP_FRAME): Remove. (CALL_DUMMY): Remove. (CALL_DUMMY_LENGTH): Remove. (CALL_DUMMY_START_OFFSET): Remove. (CALL_DUMMY_BREAKPOINT_OFFSET): Remove (FIX_CALL_DUMMY): Remove. (print_387_control_word): Remove. (print_387_status_word): Remove. (SP_ARG0): Remove. * config/i386/tm-symmetry.h: (TM_SYMMETRY_H): Enclose file in test for define & define if needed. (START_INFERIOR_TRAPS_EXPECTED): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define back to 2. (DECR_PC_AFTER_BREAK): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define to 0. (MAX_REGISTER_RAW_SIZE): Remove. (FRAME_CHAIN): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Remove. (print_387_control_word, print_387_status_word): Remove prototypes. * config/i386/tm-ptx.h: (TM_PTX_H): Enclose file in test for define & define if needed. (START_INFERIOR_TRAPS_EXPECTED): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define back to 2. (DECR_PC_AFTER_BREAK): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define to 0. (SDB_REG_TO_REGNUM): Remove obsolete commented out define. (print_387_control_word, print_387_status_word): Remove prototypes. * config/i386/tm-linux.h: (TM_LINUX_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. * config/i386/tm-i386v4.h: (TM_I386V4_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FRAME_CHAIN): Moved to tm-i386.h. (FRAMELESS_FUNCTION_INVOCATION): Moved to tm-i386.h. (FRAME_SAVED_PC): Remove. (sigtramp_saved_pc): Define as i386v4_sigtramp_saved_pc. (FRAME_NUM_ARGS): Remove. * config/i386/tm-i386os9k.h: (TM_I386OS9K_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (NUM_REGS): Undefine before redefining. (FRAME_CHAIN): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Move to tm-i386.h. * config/i386/tm-i386nw.h: (TM_I386NW_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. * config/i386/tm-i386bsd.h: (TM_I386BSD_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Remove. * config/i386/tm-i386aix.h: (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FP_REGNUM): Remove. (SP_REGNUM): Remove. (PC_REGNUM): Remove. (PS_REGNUM): Remove. (FP0_REGNUM): Moved to tm-i386.h. (NUM_REGS): Remove. (REGISTER_NAMES): Remove. (REGISTER_BYTES): Moved to tm-i386.h. (REGISTER_BYTE): Moved to tm-i386.h. (REGISTER_RAW_SIZE): Moved to tm-i386.h. (MAX_REGISTER_RAW_SIZE): Moved to tm-i386.h. (REGISTER_VIRTUAL_SIZE): Moved to tm-i386.h. (REGISTER_VIRTUAL_TYPE): Removed. (EXTRACT_RETURN_VALUE): Moved to tm-i386.h. (STORE_RETURN_VALUE): Moved to tm-i386.h. * config/i386/tm-sun386.h: (TM_SUN386_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include. (TARGET_BYTE_ORDER): Remove. (FUNCTION_START_OFFSET): Remove. (SKIP_PROLOGUE): Remove. (SAVED_PC_AFTER_CALL): Remove. (INNER_THAN): Remove. (BREAKPOINT): Remove. (DECR_PC_AFTER_BREAK): Remove. (ABOUT_TO_RETURN): Remove. (REGISTER_SIZE): Remove. (NUM_REGS): Undefine before defining. (REGISTER_NAMES): Undefine before redefining. (REGISTER_BYTES): Undefine before redefining. (REGISTER_BYTE): Undefine before defining. (FP_REGNUM): Undefine before defining. (PC_REGNUM): Undefine before defining. (FPC_REGNUM): Undefine before defining. (REGISTER_RAW_SIZE): Undefine before defining. (FRAME_CHAIN): Undefine before defining. (FRAMELESS_FUNCTION_INVOCATION): Undefine before defining. (FRAME_SAVED_PC): Undefine before defining. (FRAME_NUM_ARGS): Moved to tm-i386.h. (MAX_REGISTER_RAW_SIZE): Remove. (MAX_REGISTER_VIRTUAL_SIZE): Remove. (STORE_STRUCT_RETURN): Remove. (EXTRACT_STRUCT_VALUE_ADDRESS): Remove. (FRAME_ARGS_ADDRESS): Remove. (FRAME_LOCALS_ADDRESS): Remove. (FRAME_NUM_ARGS): Undefine before defining. (FRAME_ARGS_SKIP): Remove. (FRAME_FIND_SAVED_REGS): Remove. (PUSH_DUMMY_FRAME): Remove. (POP_FRAME): Remove. (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET): Remove. (struct frame_info, struct frame_saved_regs): Remove forward decls for prototypes. * config/i386/tm-i386lynx.h (i386/tm-i386.h): Include instead of tm-i386v.h. * config/i386/tm-i386m3.h (i386/tm-i386.h): Include instead of tm-i386v.h.
1995-11-02 15:20:50 +00:00
#undef REGISTER_CONVERT_TO_VIRTUAL
* findvar.c (value_of_register, value_from_register), hppa-tdep.c (pa_print_fp_reg), infcmd.c (do_registers_info), valops.c (value_assign): Use REGISTER_CONVERT_TO_* only if REGISTER_CONVERTIBLE is defined, otherwise just copy the content. Pass desired type to REGISTER_CONVERT_TO_*. * config/m68k/tm-m68k.h, config/i960/tm-i960.h (REGISTER_CONVERT_*): Pass length of desired type to store/extract_floating. * config/i386/tm-arm.h, config/i386/tm-i386aix.h, config/i386/tm-sun386.h, config/i386/tm-symmetry.h, config/m88k/tm-m88k.h config/rs6000/tm-rs6000.h (REGISTER_CONVERT_*): Use extract_floating and store_floating with length of desired type. * config/m68k/tm-news.h (STORE,EXTRACT_RETURN_VALUE): Add type parameter to REGISTER_CONVERT_*. * config/a29k/tm-a29k.h, config/convex/tm-convex.h, config/gould/tm-np1.h, config/gould/tm-pn.h, config/h8300/tm-h8300.h, config/h8500/tm-h8500.h, config/i386/tm-i386v.h, config/mips/tm-mips.h, config/ns32k/tm-merlin.h, config/ns32k/tm-umax.h, config/pa/tm-hppa.h, config/pyr/tm-pyr.h, config/sh/tm-sh.h, config/sparc/tm-sparc.h, config/tahoe/tm-tahoe.h, config/vax/tm-vax.h, config/z8k/tm-z8k.h (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_RAW, REGISTER_CONVERT_TO_VIRTUAL): Remove versions for which REGISTER_CONVERTIBLE is always false. * z8k-tdep.c (register_convert_to_virtual, register_convert_to_raw): Remove, no longer used. * alpha-tdep.c (alpha_register_convert_to_raw, alpha_register_convert_to_virtual): New routines to handle the different raw formats in alpha floating point registers. * config/alpha/tm-alpha.h (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW): Use them.
1993-11-02 21:51:10 +00:00
#define REGISTER_CONVERT_TO_VIRTUAL(REGNUM,TYPE,FROM,TO) \
{ \
double val; \
i387_to_double ((FROM), (char *)&val); \
store_floating ((TO), TYPE_LENGTH (TYPE), val); \
}
extern void
i387_to_double PARAMS ((char *, char *));
* findvar.c (value_of_register, value_from_register), hppa-tdep.c (pa_print_fp_reg), infcmd.c (do_registers_info), valops.c (value_assign): Use REGISTER_CONVERT_TO_* only if REGISTER_CONVERTIBLE is defined, otherwise just copy the content. Pass desired type to REGISTER_CONVERT_TO_*. * config/m68k/tm-m68k.h, config/i960/tm-i960.h (REGISTER_CONVERT_*): Pass length of desired type to store/extract_floating. * config/i386/tm-arm.h, config/i386/tm-i386aix.h, config/i386/tm-sun386.h, config/i386/tm-symmetry.h, config/m88k/tm-m88k.h config/rs6000/tm-rs6000.h (REGISTER_CONVERT_*): Use extract_floating and store_floating with length of desired type. * config/m68k/tm-news.h (STORE,EXTRACT_RETURN_VALUE): Add type parameter to REGISTER_CONVERT_*. * config/a29k/tm-a29k.h, config/convex/tm-convex.h, config/gould/tm-np1.h, config/gould/tm-pn.h, config/h8300/tm-h8300.h, config/h8500/tm-h8500.h, config/i386/tm-i386v.h, config/mips/tm-mips.h, config/ns32k/tm-merlin.h, config/ns32k/tm-umax.h, config/pa/tm-hppa.h, config/pyr/tm-pyr.h, config/sh/tm-sh.h, config/sparc/tm-sparc.h, config/tahoe/tm-tahoe.h, config/vax/tm-vax.h, config/z8k/tm-z8k.h (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_RAW, REGISTER_CONVERT_TO_VIRTUAL): Remove versions for which REGISTER_CONVERTIBLE is always false. * z8k-tdep.c (register_convert_to_virtual, register_convert_to_raw): Remove, no longer used. * alpha-tdep.c (alpha_register_convert_to_raw, alpha_register_convert_to_virtual): New routines to handle the different raw formats in alpha floating point registers. * config/alpha/tm-alpha.h (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW): Use them.
1993-11-02 21:51:10 +00:00
/* Convert data from virtual format with type TYPE in buffer FROM
to raw format for register REGNUM in buffer TO. */
* config/i386/tm-i386.h: New file containing generic i*86 target definitions. (TARGET_BYTE_ORDER): Moved here from tm-i386v.h. (IEEE_FLOAT): Moved here from tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Define default as 2. (FUNCTION_START_OFFSET): Moved here from tm-i386v.h. (SKIP_PROLOGUE): Moved here from tm-i386v.h. (SAVED_PC_AFTER_CALL): Moved here from tm-i386v.h. (INNER_THAN): Moved here from tm-i386v.h. (BREAKPOINT): Moved here from tm-i386v.h. (DECR_PC_AFTER_BREAK): Moved here from tm-i386v.h. (ABOUT_TO_RETURN): Moved here from tm-i386v.h. (REGISTER_SIZE): Moved here from tm-i386v.h. (NUM_REGS): Moved here from tm-i386v.h. (REGISTER_NAMES): Moved here from tm-i386v.h. (EXTRACT_STRUCT_VALUE_ADDRESS): Moved here from tm-i386v.h. (FP_REGNUM): Moved here from tm-i386v.h. (SP_REGNUM): Moved here from tm-i386v.h. (PC_REGNUM): Moved here from tm-i386v.h. (PS_REGNUM): Moved here from tm-i386v.h. (FP0_REGNUM): Moved here from tm-i386aix.h. (FPC_REGNUM): Moved here from tm-sun386.h. (REGISTER_BYTES): Moved here from tm-i386aix.h. (REGISTER_BYTE): Moved here from tm-i386aix.h. (REGISTER_RAW_SIZE): Moved here from tm-i386aix.h. (MAX_REGISTER_RAW_SIZE): Moved here from tm-i386aix.h. (REGISTER_VIRTUAL_SIZE): Moved here from tm-i386aix.h. (MAX_REGISTER_VIRTUAL_SIZE): Moved here from tm-i386aix.h. (EXTRACT_RETURN_VALUE): Moved here from tm-i386aix.h. (STORE_RETURN_VALUE): Moved here from tm-i386aix.h. (REGISTER_VIRTUAL_TYPE): Moved here from tm-i386v.h. (STORE_STRUCT_RETURN): Moved here from tm-i386v.h. (FRAME_CHAIN): Moved here from tm-i386v4.h. (FRAMELESS_FUNCTION_INVOCATION): Moved here from tm-i386v4.h. (FRAME_SAVED_PC): Moved here from tm-i386os9k.h (FRAME_ARGS_ADDRESS): Moved here from tm-i386v.h. (FRAME_LOCALS_ADDRESS): Moved here from tm-i386v.h. (FRAME_NUM_ARGS): Moved here from tm-i386sun.h. (FRAME_ARGS_SKIP): Moved here from tm-i386v.h. (FRAME_FIND_SAVED_REGS): Moved here from tm-i386v.h. (PUSH_DUMMY_FRAME): Moved here from tm-i386v.h. (POP_FRAME): Moved here from tm-i386v.h. (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Moved here from tm-i386v.h (print_387_control_word, print_387_status_word): Declare prototypes. (struct frame_info, struct frame_saved_regs): Forward decls for prototypes. (SP_ARG0): Moved here from tm-i386v.h. * config/i386/tm-i386v.h: (i386/tm-i386.h): Include. (TARGET_BYTE_ORDER): Remove. (IEEE_FLOAT): Remove. (START_INFERIOR_TRAPS_EXPECTED): Undef before redefine to 4. (FUNCTION_START_OFFSET): Remove. (SKIP_PROLOGUE): Remove. (i386_skip_prologue): Remove prototype. (SAVED_PC_AFTER_CALL): Remove. (INNER_THAN): Remove. (BREAKPOINT): Remove. (DECR_PC_AFTER_BREAK): Remove. (ABOUT_TO_RETURN): Remove. (REGISTER_SIZE): Remove. (NUM_REGS): Undef before redefine to 16 (no FP support). (REGISTER_NAMES): Undef before redefine. (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove. (REGISTER_BYTES): Undef before redefine. (REGISTER_BYTE): Undef before redefine. (REGISTER_RAW_SIZE): Undef before redefine. (REGISTER_VIRTUAL_SIZE): Undef before redefine. (MAX_REGISTER_RAW_SIZE): Undef before redefine. (MAX_REGISTER_VIRTUAL_SIZE): Undef before redefine. (REGISTER_VIRTUAL_TYPE): Undef before redefine. (STORE_STRUCT_RETURN): Undef before redefine. (EXTRACT_RETURN_VALUE): Undef before redefine. (STORE_RETURN_VALUE): Undef before redefine. (EXTRACT_STRUCT_VALUE_ADDRESS): Remove. (FRAME_CHAIN): Undef before redefine. (FRAMELESS_FUNCTION_INVOCATION): Undef before redefine. (FRAME_SAVED_PC): Undef before redefine. (FRAME_ARGS_ADDRESS): Remove. (FRAME_LOCALS_ADDRESS): Remove. (FRAME_NUM_ARGS): Undef before redefine. (FRAME_ARGS_SKIP): Remove. (FRAME_FIND_SAVED_REGS): Remove. (PUSH_DUMMY_FRAME): Remove. (POP_FRAME): Remove. (CALL_DUMMY): Remove. (CALL_DUMMY_LENGTH): Remove. (CALL_DUMMY_START_OFFSET): Remove. (CALL_DUMMY_BREAKPOINT_OFFSET): Remove (FIX_CALL_DUMMY): Remove. (print_387_control_word): Remove. (print_387_status_word): Remove. (SP_ARG0): Remove. * config/i386/tm-symmetry.h: (TM_SYMMETRY_H): Enclose file in test for define & define if needed. (START_INFERIOR_TRAPS_EXPECTED): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define back to 2. (DECR_PC_AFTER_BREAK): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define to 0. (MAX_REGISTER_RAW_SIZE): Remove. (FRAME_CHAIN): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Remove. (print_387_control_word, print_387_status_word): Remove prototypes. * config/i386/tm-ptx.h: (TM_PTX_H): Enclose file in test for define & define if needed. (START_INFERIOR_TRAPS_EXPECTED): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define back to 2. (DECR_PC_AFTER_BREAK): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define to 0. (SDB_REG_TO_REGNUM): Remove obsolete commented out define. (print_387_control_word, print_387_status_word): Remove prototypes. * config/i386/tm-linux.h: (TM_LINUX_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. * config/i386/tm-i386v4.h: (TM_I386V4_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FRAME_CHAIN): Moved to tm-i386.h. (FRAMELESS_FUNCTION_INVOCATION): Moved to tm-i386.h. (FRAME_SAVED_PC): Remove. (sigtramp_saved_pc): Define as i386v4_sigtramp_saved_pc. (FRAME_NUM_ARGS): Remove. * config/i386/tm-i386os9k.h: (TM_I386OS9K_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (NUM_REGS): Undefine before redefining. (FRAME_CHAIN): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Move to tm-i386.h. * config/i386/tm-i386nw.h: (TM_I386NW_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. * config/i386/tm-i386bsd.h: (TM_I386BSD_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Remove. * config/i386/tm-i386aix.h: (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FP_REGNUM): Remove. (SP_REGNUM): Remove. (PC_REGNUM): Remove. (PS_REGNUM): Remove. (FP0_REGNUM): Moved to tm-i386.h. (NUM_REGS): Remove. (REGISTER_NAMES): Remove. (REGISTER_BYTES): Moved to tm-i386.h. (REGISTER_BYTE): Moved to tm-i386.h. (REGISTER_RAW_SIZE): Moved to tm-i386.h. (MAX_REGISTER_RAW_SIZE): Moved to tm-i386.h. (REGISTER_VIRTUAL_SIZE): Moved to tm-i386.h. (REGISTER_VIRTUAL_TYPE): Removed. (EXTRACT_RETURN_VALUE): Moved to tm-i386.h. (STORE_RETURN_VALUE): Moved to tm-i386.h. * config/i386/tm-sun386.h: (TM_SUN386_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include. (TARGET_BYTE_ORDER): Remove. (FUNCTION_START_OFFSET): Remove. (SKIP_PROLOGUE): Remove. (SAVED_PC_AFTER_CALL): Remove. (INNER_THAN): Remove. (BREAKPOINT): Remove. (DECR_PC_AFTER_BREAK): Remove. (ABOUT_TO_RETURN): Remove. (REGISTER_SIZE): Remove. (NUM_REGS): Undefine before defining. (REGISTER_NAMES): Undefine before redefining. (REGISTER_BYTES): Undefine before redefining. (REGISTER_BYTE): Undefine before defining. (FP_REGNUM): Undefine before defining. (PC_REGNUM): Undefine before defining. (FPC_REGNUM): Undefine before defining. (REGISTER_RAW_SIZE): Undefine before defining. (FRAME_CHAIN): Undefine before defining. (FRAMELESS_FUNCTION_INVOCATION): Undefine before defining. (FRAME_SAVED_PC): Undefine before defining. (FRAME_NUM_ARGS): Moved to tm-i386.h. (MAX_REGISTER_RAW_SIZE): Remove. (MAX_REGISTER_VIRTUAL_SIZE): Remove. (STORE_STRUCT_RETURN): Remove. (EXTRACT_STRUCT_VALUE_ADDRESS): Remove. (FRAME_ARGS_ADDRESS): Remove. (FRAME_LOCALS_ADDRESS): Remove. (FRAME_NUM_ARGS): Undefine before defining. (FRAME_ARGS_SKIP): Remove. (FRAME_FIND_SAVED_REGS): Remove. (PUSH_DUMMY_FRAME): Remove. (POP_FRAME): Remove. (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET): Remove. (struct frame_info, struct frame_saved_regs): Remove forward decls for prototypes. * config/i386/tm-i386lynx.h (i386/tm-i386.h): Include instead of tm-i386v.h. * config/i386/tm-i386m3.h (i386/tm-i386.h): Include instead of tm-i386v.h.
1995-11-02 15:20:50 +00:00
#undef REGISTER_CONVERT_TO_RAW
* findvar.c (value_of_register, value_from_register), hppa-tdep.c (pa_print_fp_reg), infcmd.c (do_registers_info), valops.c (value_assign): Use REGISTER_CONVERT_TO_* only if REGISTER_CONVERTIBLE is defined, otherwise just copy the content. Pass desired type to REGISTER_CONVERT_TO_*. * config/m68k/tm-m68k.h, config/i960/tm-i960.h (REGISTER_CONVERT_*): Pass length of desired type to store/extract_floating. * config/i386/tm-arm.h, config/i386/tm-i386aix.h, config/i386/tm-sun386.h, config/i386/tm-symmetry.h, config/m88k/tm-m88k.h config/rs6000/tm-rs6000.h (REGISTER_CONVERT_*): Use extract_floating and store_floating with length of desired type. * config/m68k/tm-news.h (STORE,EXTRACT_RETURN_VALUE): Add type parameter to REGISTER_CONVERT_*. * config/a29k/tm-a29k.h, config/convex/tm-convex.h, config/gould/tm-np1.h, config/gould/tm-pn.h, config/h8300/tm-h8300.h, config/h8500/tm-h8500.h, config/i386/tm-i386v.h, config/mips/tm-mips.h, config/ns32k/tm-merlin.h, config/ns32k/tm-umax.h, config/pa/tm-hppa.h, config/pyr/tm-pyr.h, config/sh/tm-sh.h, config/sparc/tm-sparc.h, config/tahoe/tm-tahoe.h, config/vax/tm-vax.h, config/z8k/tm-z8k.h (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_RAW, REGISTER_CONVERT_TO_VIRTUAL): Remove versions for which REGISTER_CONVERTIBLE is always false. * z8k-tdep.c (register_convert_to_virtual, register_convert_to_raw): Remove, no longer used. * alpha-tdep.c (alpha_register_convert_to_raw, alpha_register_convert_to_virtual): New routines to handle the different raw formats in alpha floating point registers. * config/alpha/tm-alpha.h (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW): Use them.
1993-11-02 21:51:10 +00:00
#define REGISTER_CONVERT_TO_RAW(TYPE,REGNUM,FROM,TO) \
{ \
double val = extract_floating ((FROM), TYPE_LENGTH (TYPE)); \
double_to_i387((char *)&val, (TO)); \
* findvar.c (value_of_register, value_from_register), hppa-tdep.c (pa_print_fp_reg), infcmd.c (do_registers_info), valops.c (value_assign): Use REGISTER_CONVERT_TO_* only if REGISTER_CONVERTIBLE is defined, otherwise just copy the content. Pass desired type to REGISTER_CONVERT_TO_*. * config/m68k/tm-m68k.h, config/i960/tm-i960.h (REGISTER_CONVERT_*): Pass length of desired type to store/extract_floating. * config/i386/tm-arm.h, config/i386/tm-i386aix.h, config/i386/tm-sun386.h, config/i386/tm-symmetry.h, config/m88k/tm-m88k.h config/rs6000/tm-rs6000.h (REGISTER_CONVERT_*): Use extract_floating and store_floating with length of desired type. * config/m68k/tm-news.h (STORE,EXTRACT_RETURN_VALUE): Add type parameter to REGISTER_CONVERT_*. * config/a29k/tm-a29k.h, config/convex/tm-convex.h, config/gould/tm-np1.h, config/gould/tm-pn.h, config/h8300/tm-h8300.h, config/h8500/tm-h8500.h, config/i386/tm-i386v.h, config/mips/tm-mips.h, config/ns32k/tm-merlin.h, config/ns32k/tm-umax.h, config/pa/tm-hppa.h, config/pyr/tm-pyr.h, config/sh/tm-sh.h, config/sparc/tm-sparc.h, config/tahoe/tm-tahoe.h, config/vax/tm-vax.h, config/z8k/tm-z8k.h (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_RAW, REGISTER_CONVERT_TO_VIRTUAL): Remove versions for which REGISTER_CONVERTIBLE is always false. * z8k-tdep.c (register_convert_to_virtual, register_convert_to_raw): Remove, no longer used. * alpha-tdep.c (alpha_register_convert_to_raw, alpha_register_convert_to_virtual): New routines to handle the different raw formats in alpha floating point registers. * config/alpha/tm-alpha.h (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW): Use them.
1993-11-02 21:51:10 +00:00
}
extern void
double_to_i387 PARAMS ((char *, char *));
/* Return the GDB type object for the "standard" data type
of data in register N. */
* config/i386/tm-i386.h: New file containing generic i*86 target definitions. (TARGET_BYTE_ORDER): Moved here from tm-i386v.h. (IEEE_FLOAT): Moved here from tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Define default as 2. (FUNCTION_START_OFFSET): Moved here from tm-i386v.h. (SKIP_PROLOGUE): Moved here from tm-i386v.h. (SAVED_PC_AFTER_CALL): Moved here from tm-i386v.h. (INNER_THAN): Moved here from tm-i386v.h. (BREAKPOINT): Moved here from tm-i386v.h. (DECR_PC_AFTER_BREAK): Moved here from tm-i386v.h. (ABOUT_TO_RETURN): Moved here from tm-i386v.h. (REGISTER_SIZE): Moved here from tm-i386v.h. (NUM_REGS): Moved here from tm-i386v.h. (REGISTER_NAMES): Moved here from tm-i386v.h. (EXTRACT_STRUCT_VALUE_ADDRESS): Moved here from tm-i386v.h. (FP_REGNUM): Moved here from tm-i386v.h. (SP_REGNUM): Moved here from tm-i386v.h. (PC_REGNUM): Moved here from tm-i386v.h. (PS_REGNUM): Moved here from tm-i386v.h. (FP0_REGNUM): Moved here from tm-i386aix.h. (FPC_REGNUM): Moved here from tm-sun386.h. (REGISTER_BYTES): Moved here from tm-i386aix.h. (REGISTER_BYTE): Moved here from tm-i386aix.h. (REGISTER_RAW_SIZE): Moved here from tm-i386aix.h. (MAX_REGISTER_RAW_SIZE): Moved here from tm-i386aix.h. (REGISTER_VIRTUAL_SIZE): Moved here from tm-i386aix.h. (MAX_REGISTER_VIRTUAL_SIZE): Moved here from tm-i386aix.h. (EXTRACT_RETURN_VALUE): Moved here from tm-i386aix.h. (STORE_RETURN_VALUE): Moved here from tm-i386aix.h. (REGISTER_VIRTUAL_TYPE): Moved here from tm-i386v.h. (STORE_STRUCT_RETURN): Moved here from tm-i386v.h. (FRAME_CHAIN): Moved here from tm-i386v4.h. (FRAMELESS_FUNCTION_INVOCATION): Moved here from tm-i386v4.h. (FRAME_SAVED_PC): Moved here from tm-i386os9k.h (FRAME_ARGS_ADDRESS): Moved here from tm-i386v.h. (FRAME_LOCALS_ADDRESS): Moved here from tm-i386v.h. (FRAME_NUM_ARGS): Moved here from tm-i386sun.h. (FRAME_ARGS_SKIP): Moved here from tm-i386v.h. (FRAME_FIND_SAVED_REGS): Moved here from tm-i386v.h. (PUSH_DUMMY_FRAME): Moved here from tm-i386v.h. (POP_FRAME): Moved here from tm-i386v.h. (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Moved here from tm-i386v.h (print_387_control_word, print_387_status_word): Declare prototypes. (struct frame_info, struct frame_saved_regs): Forward decls for prototypes. (SP_ARG0): Moved here from tm-i386v.h. * config/i386/tm-i386v.h: (i386/tm-i386.h): Include. (TARGET_BYTE_ORDER): Remove. (IEEE_FLOAT): Remove. (START_INFERIOR_TRAPS_EXPECTED): Undef before redefine to 4. (FUNCTION_START_OFFSET): Remove. (SKIP_PROLOGUE): Remove. (i386_skip_prologue): Remove prototype. (SAVED_PC_AFTER_CALL): Remove. (INNER_THAN): Remove. (BREAKPOINT): Remove. (DECR_PC_AFTER_BREAK): Remove. (ABOUT_TO_RETURN): Remove. (REGISTER_SIZE): Remove. (NUM_REGS): Undef before redefine to 16 (no FP support). (REGISTER_NAMES): Undef before redefine. (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove. (REGISTER_BYTES): Undef before redefine. (REGISTER_BYTE): Undef before redefine. (REGISTER_RAW_SIZE): Undef before redefine. (REGISTER_VIRTUAL_SIZE): Undef before redefine. (MAX_REGISTER_RAW_SIZE): Undef before redefine. (MAX_REGISTER_VIRTUAL_SIZE): Undef before redefine. (REGISTER_VIRTUAL_TYPE): Undef before redefine. (STORE_STRUCT_RETURN): Undef before redefine. (EXTRACT_RETURN_VALUE): Undef before redefine. (STORE_RETURN_VALUE): Undef before redefine. (EXTRACT_STRUCT_VALUE_ADDRESS): Remove. (FRAME_CHAIN): Undef before redefine. (FRAMELESS_FUNCTION_INVOCATION): Undef before redefine. (FRAME_SAVED_PC): Undef before redefine. (FRAME_ARGS_ADDRESS): Remove. (FRAME_LOCALS_ADDRESS): Remove. (FRAME_NUM_ARGS): Undef before redefine. (FRAME_ARGS_SKIP): Remove. (FRAME_FIND_SAVED_REGS): Remove. (PUSH_DUMMY_FRAME): Remove. (POP_FRAME): Remove. (CALL_DUMMY): Remove. (CALL_DUMMY_LENGTH): Remove. (CALL_DUMMY_START_OFFSET): Remove. (CALL_DUMMY_BREAKPOINT_OFFSET): Remove (FIX_CALL_DUMMY): Remove. (print_387_control_word): Remove. (print_387_status_word): Remove. (SP_ARG0): Remove. * config/i386/tm-symmetry.h: (TM_SYMMETRY_H): Enclose file in test for define & define if needed. (START_INFERIOR_TRAPS_EXPECTED): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define back to 2. (DECR_PC_AFTER_BREAK): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define to 0. (MAX_REGISTER_RAW_SIZE): Remove. (FRAME_CHAIN): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Remove. (print_387_control_word, print_387_status_word): Remove prototypes. * config/i386/tm-ptx.h: (TM_PTX_H): Enclose file in test for define & define if needed. (START_INFERIOR_TRAPS_EXPECTED): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define back to 2. (DECR_PC_AFTER_BREAK): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define to 0. (SDB_REG_TO_REGNUM): Remove obsolete commented out define. (print_387_control_word, print_387_status_word): Remove prototypes. * config/i386/tm-linux.h: (TM_LINUX_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. * config/i386/tm-i386v4.h: (TM_I386V4_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FRAME_CHAIN): Moved to tm-i386.h. (FRAMELESS_FUNCTION_INVOCATION): Moved to tm-i386.h. (FRAME_SAVED_PC): Remove. (sigtramp_saved_pc): Define as i386v4_sigtramp_saved_pc. (FRAME_NUM_ARGS): Remove. * config/i386/tm-i386os9k.h: (TM_I386OS9K_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (NUM_REGS): Undefine before redefining. (FRAME_CHAIN): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Move to tm-i386.h. * config/i386/tm-i386nw.h: (TM_I386NW_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. * config/i386/tm-i386bsd.h: (TM_I386BSD_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Remove. * config/i386/tm-i386aix.h: (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FP_REGNUM): Remove. (SP_REGNUM): Remove. (PC_REGNUM): Remove. (PS_REGNUM): Remove. (FP0_REGNUM): Moved to tm-i386.h. (NUM_REGS): Remove. (REGISTER_NAMES): Remove. (REGISTER_BYTES): Moved to tm-i386.h. (REGISTER_BYTE): Moved to tm-i386.h. (REGISTER_RAW_SIZE): Moved to tm-i386.h. (MAX_REGISTER_RAW_SIZE): Moved to tm-i386.h. (REGISTER_VIRTUAL_SIZE): Moved to tm-i386.h. (REGISTER_VIRTUAL_TYPE): Removed. (EXTRACT_RETURN_VALUE): Moved to tm-i386.h. (STORE_RETURN_VALUE): Moved to tm-i386.h. * config/i386/tm-sun386.h: (TM_SUN386_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include. (TARGET_BYTE_ORDER): Remove. (FUNCTION_START_OFFSET): Remove. (SKIP_PROLOGUE): Remove. (SAVED_PC_AFTER_CALL): Remove. (INNER_THAN): Remove. (BREAKPOINT): Remove. (DECR_PC_AFTER_BREAK): Remove. (ABOUT_TO_RETURN): Remove. (REGISTER_SIZE): Remove. (NUM_REGS): Undefine before defining. (REGISTER_NAMES): Undefine before redefining. (REGISTER_BYTES): Undefine before redefining. (REGISTER_BYTE): Undefine before defining. (FP_REGNUM): Undefine before defining. (PC_REGNUM): Undefine before defining. (FPC_REGNUM): Undefine before defining. (REGISTER_RAW_SIZE): Undefine before defining. (FRAME_CHAIN): Undefine before defining. (FRAMELESS_FUNCTION_INVOCATION): Undefine before defining. (FRAME_SAVED_PC): Undefine before defining. (FRAME_NUM_ARGS): Moved to tm-i386.h. (MAX_REGISTER_RAW_SIZE): Remove. (MAX_REGISTER_VIRTUAL_SIZE): Remove. (STORE_STRUCT_RETURN): Remove. (EXTRACT_STRUCT_VALUE_ADDRESS): Remove. (FRAME_ARGS_ADDRESS): Remove. (FRAME_LOCALS_ADDRESS): Remove. (FRAME_NUM_ARGS): Undefine before defining. (FRAME_ARGS_SKIP): Remove. (FRAME_FIND_SAVED_REGS): Remove. (PUSH_DUMMY_FRAME): Remove. (POP_FRAME): Remove. (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET): Remove. (struct frame_info, struct frame_saved_regs): Remove forward decls for prototypes. * config/i386/tm-i386lynx.h (i386/tm-i386.h): Include instead of tm-i386v.h. * config/i386/tm-i386m3.h (i386/tm-i386.h): Include instead of tm-i386v.h.
1995-11-02 15:20:50 +00:00
#undef REGISTER_VIRTUAL_TYPE
#define REGISTER_VIRTUAL_TYPE(N) \
(((unsigned)((N) - FP0_REGNUM)) < 8 ? builtin_type_double : builtin_type_int)
/* Extract from an array REGBUF containing the (raw) register state
a function return value of type TYPE, and copy that, in virtual format,
into VALBUF. */
* config/i386/tm-i386.h: New file containing generic i*86 target definitions. (TARGET_BYTE_ORDER): Moved here from tm-i386v.h. (IEEE_FLOAT): Moved here from tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Define default as 2. (FUNCTION_START_OFFSET): Moved here from tm-i386v.h. (SKIP_PROLOGUE): Moved here from tm-i386v.h. (SAVED_PC_AFTER_CALL): Moved here from tm-i386v.h. (INNER_THAN): Moved here from tm-i386v.h. (BREAKPOINT): Moved here from tm-i386v.h. (DECR_PC_AFTER_BREAK): Moved here from tm-i386v.h. (ABOUT_TO_RETURN): Moved here from tm-i386v.h. (REGISTER_SIZE): Moved here from tm-i386v.h. (NUM_REGS): Moved here from tm-i386v.h. (REGISTER_NAMES): Moved here from tm-i386v.h. (EXTRACT_STRUCT_VALUE_ADDRESS): Moved here from tm-i386v.h. (FP_REGNUM): Moved here from tm-i386v.h. (SP_REGNUM): Moved here from tm-i386v.h. (PC_REGNUM): Moved here from tm-i386v.h. (PS_REGNUM): Moved here from tm-i386v.h. (FP0_REGNUM): Moved here from tm-i386aix.h. (FPC_REGNUM): Moved here from tm-sun386.h. (REGISTER_BYTES): Moved here from tm-i386aix.h. (REGISTER_BYTE): Moved here from tm-i386aix.h. (REGISTER_RAW_SIZE): Moved here from tm-i386aix.h. (MAX_REGISTER_RAW_SIZE): Moved here from tm-i386aix.h. (REGISTER_VIRTUAL_SIZE): Moved here from tm-i386aix.h. (MAX_REGISTER_VIRTUAL_SIZE): Moved here from tm-i386aix.h. (EXTRACT_RETURN_VALUE): Moved here from tm-i386aix.h. (STORE_RETURN_VALUE): Moved here from tm-i386aix.h. (REGISTER_VIRTUAL_TYPE): Moved here from tm-i386v.h. (STORE_STRUCT_RETURN): Moved here from tm-i386v.h. (FRAME_CHAIN): Moved here from tm-i386v4.h. (FRAMELESS_FUNCTION_INVOCATION): Moved here from tm-i386v4.h. (FRAME_SAVED_PC): Moved here from tm-i386os9k.h (FRAME_ARGS_ADDRESS): Moved here from tm-i386v.h. (FRAME_LOCALS_ADDRESS): Moved here from tm-i386v.h. (FRAME_NUM_ARGS): Moved here from tm-i386sun.h. (FRAME_ARGS_SKIP): Moved here from tm-i386v.h. (FRAME_FIND_SAVED_REGS): Moved here from tm-i386v.h. (PUSH_DUMMY_FRAME): Moved here from tm-i386v.h. (POP_FRAME): Moved here from tm-i386v.h. (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Moved here from tm-i386v.h (print_387_control_word, print_387_status_word): Declare prototypes. (struct frame_info, struct frame_saved_regs): Forward decls for prototypes. (SP_ARG0): Moved here from tm-i386v.h. * config/i386/tm-i386v.h: (i386/tm-i386.h): Include. (TARGET_BYTE_ORDER): Remove. (IEEE_FLOAT): Remove. (START_INFERIOR_TRAPS_EXPECTED): Undef before redefine to 4. (FUNCTION_START_OFFSET): Remove. (SKIP_PROLOGUE): Remove. (i386_skip_prologue): Remove prototype. (SAVED_PC_AFTER_CALL): Remove. (INNER_THAN): Remove. (BREAKPOINT): Remove. (DECR_PC_AFTER_BREAK): Remove. (ABOUT_TO_RETURN): Remove. (REGISTER_SIZE): Remove. (NUM_REGS): Undef before redefine to 16 (no FP support). (REGISTER_NAMES): Undef before redefine. (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove. (REGISTER_BYTES): Undef before redefine. (REGISTER_BYTE): Undef before redefine. (REGISTER_RAW_SIZE): Undef before redefine. (REGISTER_VIRTUAL_SIZE): Undef before redefine. (MAX_REGISTER_RAW_SIZE): Undef before redefine. (MAX_REGISTER_VIRTUAL_SIZE): Undef before redefine. (REGISTER_VIRTUAL_TYPE): Undef before redefine. (STORE_STRUCT_RETURN): Undef before redefine. (EXTRACT_RETURN_VALUE): Undef before redefine. (STORE_RETURN_VALUE): Undef before redefine. (EXTRACT_STRUCT_VALUE_ADDRESS): Remove. (FRAME_CHAIN): Undef before redefine. (FRAMELESS_FUNCTION_INVOCATION): Undef before redefine. (FRAME_SAVED_PC): Undef before redefine. (FRAME_ARGS_ADDRESS): Remove. (FRAME_LOCALS_ADDRESS): Remove. (FRAME_NUM_ARGS): Undef before redefine. (FRAME_ARGS_SKIP): Remove. (FRAME_FIND_SAVED_REGS): Remove. (PUSH_DUMMY_FRAME): Remove. (POP_FRAME): Remove. (CALL_DUMMY): Remove. (CALL_DUMMY_LENGTH): Remove. (CALL_DUMMY_START_OFFSET): Remove. (CALL_DUMMY_BREAKPOINT_OFFSET): Remove (FIX_CALL_DUMMY): Remove. (print_387_control_word): Remove. (print_387_status_word): Remove. (SP_ARG0): Remove. * config/i386/tm-symmetry.h: (TM_SYMMETRY_H): Enclose file in test for define & define if needed. (START_INFERIOR_TRAPS_EXPECTED): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define back to 2. (DECR_PC_AFTER_BREAK): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define to 0. (MAX_REGISTER_RAW_SIZE): Remove. (FRAME_CHAIN): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Remove. (print_387_control_word, print_387_status_word): Remove prototypes. * config/i386/tm-ptx.h: (TM_PTX_H): Enclose file in test for define & define if needed. (START_INFERIOR_TRAPS_EXPECTED): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define back to 2. (DECR_PC_AFTER_BREAK): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define to 0. (SDB_REG_TO_REGNUM): Remove obsolete commented out define. (print_387_control_word, print_387_status_word): Remove prototypes. * config/i386/tm-linux.h: (TM_LINUX_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. * config/i386/tm-i386v4.h: (TM_I386V4_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FRAME_CHAIN): Moved to tm-i386.h. (FRAMELESS_FUNCTION_INVOCATION): Moved to tm-i386.h. (FRAME_SAVED_PC): Remove. (sigtramp_saved_pc): Define as i386v4_sigtramp_saved_pc. (FRAME_NUM_ARGS): Remove. * config/i386/tm-i386os9k.h: (TM_I386OS9K_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (NUM_REGS): Undefine before redefining. (FRAME_CHAIN): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Move to tm-i386.h. * config/i386/tm-i386nw.h: (TM_I386NW_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. * config/i386/tm-i386bsd.h: (TM_I386BSD_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Remove. * config/i386/tm-i386aix.h: (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FP_REGNUM): Remove. (SP_REGNUM): Remove. (PC_REGNUM): Remove. (PS_REGNUM): Remove. (FP0_REGNUM): Moved to tm-i386.h. (NUM_REGS): Remove. (REGISTER_NAMES): Remove. (REGISTER_BYTES): Moved to tm-i386.h. (REGISTER_BYTE): Moved to tm-i386.h. (REGISTER_RAW_SIZE): Moved to tm-i386.h. (MAX_REGISTER_RAW_SIZE): Moved to tm-i386.h. (REGISTER_VIRTUAL_SIZE): Moved to tm-i386.h. (REGISTER_VIRTUAL_TYPE): Removed. (EXTRACT_RETURN_VALUE): Moved to tm-i386.h. (STORE_RETURN_VALUE): Moved to tm-i386.h. * config/i386/tm-sun386.h: (TM_SUN386_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include. (TARGET_BYTE_ORDER): Remove. (FUNCTION_START_OFFSET): Remove. (SKIP_PROLOGUE): Remove. (SAVED_PC_AFTER_CALL): Remove. (INNER_THAN): Remove. (BREAKPOINT): Remove. (DECR_PC_AFTER_BREAK): Remove. (ABOUT_TO_RETURN): Remove. (REGISTER_SIZE): Remove. (NUM_REGS): Undefine before defining. (REGISTER_NAMES): Undefine before redefining. (REGISTER_BYTES): Undefine before redefining. (REGISTER_BYTE): Undefine before defining. (FP_REGNUM): Undefine before defining. (PC_REGNUM): Undefine before defining. (FPC_REGNUM): Undefine before defining. (REGISTER_RAW_SIZE): Undefine before defining. (FRAME_CHAIN): Undefine before defining. (FRAMELESS_FUNCTION_INVOCATION): Undefine before defining. (FRAME_SAVED_PC): Undefine before defining. (FRAME_NUM_ARGS): Moved to tm-i386.h. (MAX_REGISTER_RAW_SIZE): Remove. (MAX_REGISTER_VIRTUAL_SIZE): Remove. (STORE_STRUCT_RETURN): Remove. (EXTRACT_STRUCT_VALUE_ADDRESS): Remove. (FRAME_ARGS_ADDRESS): Remove. (FRAME_LOCALS_ADDRESS): Remove. (FRAME_NUM_ARGS): Undefine before defining. (FRAME_ARGS_SKIP): Remove. (FRAME_FIND_SAVED_REGS): Remove. (PUSH_DUMMY_FRAME): Remove. (POP_FRAME): Remove. (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET): Remove. (struct frame_info, struct frame_saved_regs): Remove forward decls for prototypes. * config/i386/tm-i386lynx.h (i386/tm-i386.h): Include instead of tm-i386v.h. * config/i386/tm-i386m3.h (i386/tm-i386.h): Include instead of tm-i386v.h.
1995-11-02 15:20:50 +00:00
#undef EXTRACT_RETURN_VALUE
#define EXTRACT_RETURN_VALUE(TYPE,REGBUF,VALBUF) \
1993-09-01 20:37:15 +00:00
memcpy (VALBUF, REGBUF + REGISTER_BYTE (TYPE_CODE (TYPE) == TYPE_CODE_FLT ? FP0_REGNUM : 11), TYPE_LENGTH (TYPE))
/* Write into appropriate registers a function return value
of type TYPE, given in virtual format. */
* config/i386/tm-i386.h: New file containing generic i*86 target definitions. (TARGET_BYTE_ORDER): Moved here from tm-i386v.h. (IEEE_FLOAT): Moved here from tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Define default as 2. (FUNCTION_START_OFFSET): Moved here from tm-i386v.h. (SKIP_PROLOGUE): Moved here from tm-i386v.h. (SAVED_PC_AFTER_CALL): Moved here from tm-i386v.h. (INNER_THAN): Moved here from tm-i386v.h. (BREAKPOINT): Moved here from tm-i386v.h. (DECR_PC_AFTER_BREAK): Moved here from tm-i386v.h. (ABOUT_TO_RETURN): Moved here from tm-i386v.h. (REGISTER_SIZE): Moved here from tm-i386v.h. (NUM_REGS): Moved here from tm-i386v.h. (REGISTER_NAMES): Moved here from tm-i386v.h. (EXTRACT_STRUCT_VALUE_ADDRESS): Moved here from tm-i386v.h. (FP_REGNUM): Moved here from tm-i386v.h. (SP_REGNUM): Moved here from tm-i386v.h. (PC_REGNUM): Moved here from tm-i386v.h. (PS_REGNUM): Moved here from tm-i386v.h. (FP0_REGNUM): Moved here from tm-i386aix.h. (FPC_REGNUM): Moved here from tm-sun386.h. (REGISTER_BYTES): Moved here from tm-i386aix.h. (REGISTER_BYTE): Moved here from tm-i386aix.h. (REGISTER_RAW_SIZE): Moved here from tm-i386aix.h. (MAX_REGISTER_RAW_SIZE): Moved here from tm-i386aix.h. (REGISTER_VIRTUAL_SIZE): Moved here from tm-i386aix.h. (MAX_REGISTER_VIRTUAL_SIZE): Moved here from tm-i386aix.h. (EXTRACT_RETURN_VALUE): Moved here from tm-i386aix.h. (STORE_RETURN_VALUE): Moved here from tm-i386aix.h. (REGISTER_VIRTUAL_TYPE): Moved here from tm-i386v.h. (STORE_STRUCT_RETURN): Moved here from tm-i386v.h. (FRAME_CHAIN): Moved here from tm-i386v4.h. (FRAMELESS_FUNCTION_INVOCATION): Moved here from tm-i386v4.h. (FRAME_SAVED_PC): Moved here from tm-i386os9k.h (FRAME_ARGS_ADDRESS): Moved here from tm-i386v.h. (FRAME_LOCALS_ADDRESS): Moved here from tm-i386v.h. (FRAME_NUM_ARGS): Moved here from tm-i386sun.h. (FRAME_ARGS_SKIP): Moved here from tm-i386v.h. (FRAME_FIND_SAVED_REGS): Moved here from tm-i386v.h. (PUSH_DUMMY_FRAME): Moved here from tm-i386v.h. (POP_FRAME): Moved here from tm-i386v.h. (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Moved here from tm-i386v.h (print_387_control_word, print_387_status_word): Declare prototypes. (struct frame_info, struct frame_saved_regs): Forward decls for prototypes. (SP_ARG0): Moved here from tm-i386v.h. * config/i386/tm-i386v.h: (i386/tm-i386.h): Include. (TARGET_BYTE_ORDER): Remove. (IEEE_FLOAT): Remove. (START_INFERIOR_TRAPS_EXPECTED): Undef before redefine to 4. (FUNCTION_START_OFFSET): Remove. (SKIP_PROLOGUE): Remove. (i386_skip_prologue): Remove prototype. (SAVED_PC_AFTER_CALL): Remove. (INNER_THAN): Remove. (BREAKPOINT): Remove. (DECR_PC_AFTER_BREAK): Remove. (ABOUT_TO_RETURN): Remove. (REGISTER_SIZE): Remove. (NUM_REGS): Undef before redefine to 16 (no FP support). (REGISTER_NAMES): Undef before redefine. (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove. (REGISTER_BYTES): Undef before redefine. (REGISTER_BYTE): Undef before redefine. (REGISTER_RAW_SIZE): Undef before redefine. (REGISTER_VIRTUAL_SIZE): Undef before redefine. (MAX_REGISTER_RAW_SIZE): Undef before redefine. (MAX_REGISTER_VIRTUAL_SIZE): Undef before redefine. (REGISTER_VIRTUAL_TYPE): Undef before redefine. (STORE_STRUCT_RETURN): Undef before redefine. (EXTRACT_RETURN_VALUE): Undef before redefine. (STORE_RETURN_VALUE): Undef before redefine. (EXTRACT_STRUCT_VALUE_ADDRESS): Remove. (FRAME_CHAIN): Undef before redefine. (FRAMELESS_FUNCTION_INVOCATION): Undef before redefine. (FRAME_SAVED_PC): Undef before redefine. (FRAME_ARGS_ADDRESS): Remove. (FRAME_LOCALS_ADDRESS): Remove. (FRAME_NUM_ARGS): Undef before redefine. (FRAME_ARGS_SKIP): Remove. (FRAME_FIND_SAVED_REGS): Remove. (PUSH_DUMMY_FRAME): Remove. (POP_FRAME): Remove. (CALL_DUMMY): Remove. (CALL_DUMMY_LENGTH): Remove. (CALL_DUMMY_START_OFFSET): Remove. (CALL_DUMMY_BREAKPOINT_OFFSET): Remove (FIX_CALL_DUMMY): Remove. (print_387_control_word): Remove. (print_387_status_word): Remove. (SP_ARG0): Remove. * config/i386/tm-symmetry.h: (TM_SYMMETRY_H): Enclose file in test for define & define if needed. (START_INFERIOR_TRAPS_EXPECTED): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define back to 2. (DECR_PC_AFTER_BREAK): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define to 0. (MAX_REGISTER_RAW_SIZE): Remove. (FRAME_CHAIN): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Remove. (print_387_control_word, print_387_status_word): Remove prototypes. * config/i386/tm-ptx.h: (TM_PTX_H): Enclose file in test for define & define if needed. (START_INFERIOR_TRAPS_EXPECTED): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define back to 2. (DECR_PC_AFTER_BREAK): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define to 0. (SDB_REG_TO_REGNUM): Remove obsolete commented out define. (print_387_control_word, print_387_status_word): Remove prototypes. * config/i386/tm-linux.h: (TM_LINUX_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. * config/i386/tm-i386v4.h: (TM_I386V4_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FRAME_CHAIN): Moved to tm-i386.h. (FRAMELESS_FUNCTION_INVOCATION): Moved to tm-i386.h. (FRAME_SAVED_PC): Remove. (sigtramp_saved_pc): Define as i386v4_sigtramp_saved_pc. (FRAME_NUM_ARGS): Remove. * config/i386/tm-i386os9k.h: (TM_I386OS9K_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (NUM_REGS): Undefine before redefining. (FRAME_CHAIN): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Move to tm-i386.h. * config/i386/tm-i386nw.h: (TM_I386NW_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. * config/i386/tm-i386bsd.h: (TM_I386BSD_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Remove. * config/i386/tm-i386aix.h: (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FP_REGNUM): Remove. (SP_REGNUM): Remove. (PC_REGNUM): Remove. (PS_REGNUM): Remove. (FP0_REGNUM): Moved to tm-i386.h. (NUM_REGS): Remove. (REGISTER_NAMES): Remove. (REGISTER_BYTES): Moved to tm-i386.h. (REGISTER_BYTE): Moved to tm-i386.h. (REGISTER_RAW_SIZE): Moved to tm-i386.h. (MAX_REGISTER_RAW_SIZE): Moved to tm-i386.h. (REGISTER_VIRTUAL_SIZE): Moved to tm-i386.h. (REGISTER_VIRTUAL_TYPE): Removed. (EXTRACT_RETURN_VALUE): Moved to tm-i386.h. (STORE_RETURN_VALUE): Moved to tm-i386.h. * config/i386/tm-sun386.h: (TM_SUN386_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include. (TARGET_BYTE_ORDER): Remove. (FUNCTION_START_OFFSET): Remove. (SKIP_PROLOGUE): Remove. (SAVED_PC_AFTER_CALL): Remove. (INNER_THAN): Remove. (BREAKPOINT): Remove. (DECR_PC_AFTER_BREAK): Remove. (ABOUT_TO_RETURN): Remove. (REGISTER_SIZE): Remove. (NUM_REGS): Undefine before defining. (REGISTER_NAMES): Undefine before redefining. (REGISTER_BYTES): Undefine before redefining. (REGISTER_BYTE): Undefine before defining. (FP_REGNUM): Undefine before defining. (PC_REGNUM): Undefine before defining. (FPC_REGNUM): Undefine before defining. (REGISTER_RAW_SIZE): Undefine before defining. (FRAME_CHAIN): Undefine before defining. (FRAMELESS_FUNCTION_INVOCATION): Undefine before defining. (FRAME_SAVED_PC): Undefine before defining. (FRAME_NUM_ARGS): Moved to tm-i386.h. (MAX_REGISTER_RAW_SIZE): Remove. (MAX_REGISTER_VIRTUAL_SIZE): Remove. (STORE_STRUCT_RETURN): Remove. (EXTRACT_STRUCT_VALUE_ADDRESS): Remove. (FRAME_ARGS_ADDRESS): Remove. (FRAME_LOCALS_ADDRESS): Remove. (FRAME_NUM_ARGS): Undefine before defining. (FRAME_ARGS_SKIP): Remove. (FRAME_FIND_SAVED_REGS): Remove. (PUSH_DUMMY_FRAME): Remove. (POP_FRAME): Remove. (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET): Remove. (struct frame_info, struct frame_saved_regs): Remove forward decls for prototypes. * config/i386/tm-i386lynx.h (i386/tm-i386.h): Include instead of tm-i386v.h. * config/i386/tm-i386m3.h (i386/tm-i386.h): Include instead of tm-i386v.h.
1995-11-02 15:20:50 +00:00
#undef STORE_RETURN_VALUE
#define STORE_RETURN_VALUE(TYPE,VALBUF) \
write_register_bytes (REGISTER_BYTE (TYPE_CODE (TYPE) == TYPE_CODE_FLT ? FP0_REGNUM : 11), VALBUF, TYPE_LENGTH (TYPE))
/* Describe the pointer in each stack frame to the previous stack frame
(its caller). */
/* FRAME_CHAIN takes a frame's nominal address
and produces the frame's chain-pointer. */
* config/i386/tm-i386.h: New file containing generic i*86 target definitions. (TARGET_BYTE_ORDER): Moved here from tm-i386v.h. (IEEE_FLOAT): Moved here from tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Define default as 2. (FUNCTION_START_OFFSET): Moved here from tm-i386v.h. (SKIP_PROLOGUE): Moved here from tm-i386v.h. (SAVED_PC_AFTER_CALL): Moved here from tm-i386v.h. (INNER_THAN): Moved here from tm-i386v.h. (BREAKPOINT): Moved here from tm-i386v.h. (DECR_PC_AFTER_BREAK): Moved here from tm-i386v.h. (ABOUT_TO_RETURN): Moved here from tm-i386v.h. (REGISTER_SIZE): Moved here from tm-i386v.h. (NUM_REGS): Moved here from tm-i386v.h. (REGISTER_NAMES): Moved here from tm-i386v.h. (EXTRACT_STRUCT_VALUE_ADDRESS): Moved here from tm-i386v.h. (FP_REGNUM): Moved here from tm-i386v.h. (SP_REGNUM): Moved here from tm-i386v.h. (PC_REGNUM): Moved here from tm-i386v.h. (PS_REGNUM): Moved here from tm-i386v.h. (FP0_REGNUM): Moved here from tm-i386aix.h. (FPC_REGNUM): Moved here from tm-sun386.h. (REGISTER_BYTES): Moved here from tm-i386aix.h. (REGISTER_BYTE): Moved here from tm-i386aix.h. (REGISTER_RAW_SIZE): Moved here from tm-i386aix.h. (MAX_REGISTER_RAW_SIZE): Moved here from tm-i386aix.h. (REGISTER_VIRTUAL_SIZE): Moved here from tm-i386aix.h. (MAX_REGISTER_VIRTUAL_SIZE): Moved here from tm-i386aix.h. (EXTRACT_RETURN_VALUE): Moved here from tm-i386aix.h. (STORE_RETURN_VALUE): Moved here from tm-i386aix.h. (REGISTER_VIRTUAL_TYPE): Moved here from tm-i386v.h. (STORE_STRUCT_RETURN): Moved here from tm-i386v.h. (FRAME_CHAIN): Moved here from tm-i386v4.h. (FRAMELESS_FUNCTION_INVOCATION): Moved here from tm-i386v4.h. (FRAME_SAVED_PC): Moved here from tm-i386os9k.h (FRAME_ARGS_ADDRESS): Moved here from tm-i386v.h. (FRAME_LOCALS_ADDRESS): Moved here from tm-i386v.h. (FRAME_NUM_ARGS): Moved here from tm-i386sun.h. (FRAME_ARGS_SKIP): Moved here from tm-i386v.h. (FRAME_FIND_SAVED_REGS): Moved here from tm-i386v.h. (PUSH_DUMMY_FRAME): Moved here from tm-i386v.h. (POP_FRAME): Moved here from tm-i386v.h. (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Moved here from tm-i386v.h (print_387_control_word, print_387_status_word): Declare prototypes. (struct frame_info, struct frame_saved_regs): Forward decls for prototypes. (SP_ARG0): Moved here from tm-i386v.h. * config/i386/tm-i386v.h: (i386/tm-i386.h): Include. (TARGET_BYTE_ORDER): Remove. (IEEE_FLOAT): Remove. (START_INFERIOR_TRAPS_EXPECTED): Undef before redefine to 4. (FUNCTION_START_OFFSET): Remove. (SKIP_PROLOGUE): Remove. (i386_skip_prologue): Remove prototype. (SAVED_PC_AFTER_CALL): Remove. (INNER_THAN): Remove. (BREAKPOINT): Remove. (DECR_PC_AFTER_BREAK): Remove. (ABOUT_TO_RETURN): Remove. (REGISTER_SIZE): Remove. (NUM_REGS): Undef before redefine to 16 (no FP support). (REGISTER_NAMES): Undef before redefine. (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove. (REGISTER_BYTES): Undef before redefine. (REGISTER_BYTE): Undef before redefine. (REGISTER_RAW_SIZE): Undef before redefine. (REGISTER_VIRTUAL_SIZE): Undef before redefine. (MAX_REGISTER_RAW_SIZE): Undef before redefine. (MAX_REGISTER_VIRTUAL_SIZE): Undef before redefine. (REGISTER_VIRTUAL_TYPE): Undef before redefine. (STORE_STRUCT_RETURN): Undef before redefine. (EXTRACT_RETURN_VALUE): Undef before redefine. (STORE_RETURN_VALUE): Undef before redefine. (EXTRACT_STRUCT_VALUE_ADDRESS): Remove. (FRAME_CHAIN): Undef before redefine. (FRAMELESS_FUNCTION_INVOCATION): Undef before redefine. (FRAME_SAVED_PC): Undef before redefine. (FRAME_ARGS_ADDRESS): Remove. (FRAME_LOCALS_ADDRESS): Remove. (FRAME_NUM_ARGS): Undef before redefine. (FRAME_ARGS_SKIP): Remove. (FRAME_FIND_SAVED_REGS): Remove. (PUSH_DUMMY_FRAME): Remove. (POP_FRAME): Remove. (CALL_DUMMY): Remove. (CALL_DUMMY_LENGTH): Remove. (CALL_DUMMY_START_OFFSET): Remove. (CALL_DUMMY_BREAKPOINT_OFFSET): Remove (FIX_CALL_DUMMY): Remove. (print_387_control_word): Remove. (print_387_status_word): Remove. (SP_ARG0): Remove. * config/i386/tm-symmetry.h: (TM_SYMMETRY_H): Enclose file in test for define & define if needed. (START_INFERIOR_TRAPS_EXPECTED): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define back to 2. (DECR_PC_AFTER_BREAK): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define to 0. (MAX_REGISTER_RAW_SIZE): Remove. (FRAME_CHAIN): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Remove. (print_387_control_word, print_387_status_word): Remove prototypes. * config/i386/tm-ptx.h: (TM_PTX_H): Enclose file in test for define & define if needed. (START_INFERIOR_TRAPS_EXPECTED): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define back to 2. (DECR_PC_AFTER_BREAK): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define to 0. (SDB_REG_TO_REGNUM): Remove obsolete commented out define. (print_387_control_word, print_387_status_word): Remove prototypes. * config/i386/tm-linux.h: (TM_LINUX_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. * config/i386/tm-i386v4.h: (TM_I386V4_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FRAME_CHAIN): Moved to tm-i386.h. (FRAMELESS_FUNCTION_INVOCATION): Moved to tm-i386.h. (FRAME_SAVED_PC): Remove. (sigtramp_saved_pc): Define as i386v4_sigtramp_saved_pc. (FRAME_NUM_ARGS): Remove. * config/i386/tm-i386os9k.h: (TM_I386OS9K_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (NUM_REGS): Undefine before redefining. (FRAME_CHAIN): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Move to tm-i386.h. * config/i386/tm-i386nw.h: (TM_I386NW_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. * config/i386/tm-i386bsd.h: (TM_I386BSD_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Remove. * config/i386/tm-i386aix.h: (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FP_REGNUM): Remove. (SP_REGNUM): Remove. (PC_REGNUM): Remove. (PS_REGNUM): Remove. (FP0_REGNUM): Moved to tm-i386.h. (NUM_REGS): Remove. (REGISTER_NAMES): Remove. (REGISTER_BYTES): Moved to tm-i386.h. (REGISTER_BYTE): Moved to tm-i386.h. (REGISTER_RAW_SIZE): Moved to tm-i386.h. (MAX_REGISTER_RAW_SIZE): Moved to tm-i386.h. (REGISTER_VIRTUAL_SIZE): Moved to tm-i386.h. (REGISTER_VIRTUAL_TYPE): Removed. (EXTRACT_RETURN_VALUE): Moved to tm-i386.h. (STORE_RETURN_VALUE): Moved to tm-i386.h. * config/i386/tm-sun386.h: (TM_SUN386_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include. (TARGET_BYTE_ORDER): Remove. (FUNCTION_START_OFFSET): Remove. (SKIP_PROLOGUE): Remove. (SAVED_PC_AFTER_CALL): Remove. (INNER_THAN): Remove. (BREAKPOINT): Remove. (DECR_PC_AFTER_BREAK): Remove. (ABOUT_TO_RETURN): Remove. (REGISTER_SIZE): Remove. (NUM_REGS): Undefine before defining. (REGISTER_NAMES): Undefine before redefining. (REGISTER_BYTES): Undefine before redefining. (REGISTER_BYTE): Undefine before defining. (FP_REGNUM): Undefine before defining. (PC_REGNUM): Undefine before defining. (FPC_REGNUM): Undefine before defining. (REGISTER_RAW_SIZE): Undefine before defining. (FRAME_CHAIN): Undefine before defining. (FRAMELESS_FUNCTION_INVOCATION): Undefine before defining. (FRAME_SAVED_PC): Undefine before defining. (FRAME_NUM_ARGS): Moved to tm-i386.h. (MAX_REGISTER_RAW_SIZE): Remove. (MAX_REGISTER_VIRTUAL_SIZE): Remove. (STORE_STRUCT_RETURN): Remove. (EXTRACT_STRUCT_VALUE_ADDRESS): Remove. (FRAME_ARGS_ADDRESS): Remove. (FRAME_LOCALS_ADDRESS): Remove. (FRAME_NUM_ARGS): Undefine before defining. (FRAME_ARGS_SKIP): Remove. (FRAME_FIND_SAVED_REGS): Remove. (PUSH_DUMMY_FRAME): Remove. (POP_FRAME): Remove. (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET): Remove. (struct frame_info, struct frame_saved_regs): Remove forward decls for prototypes. * config/i386/tm-i386lynx.h (i386/tm-i386.h): Include instead of tm-i386v.h. * config/i386/tm-i386m3.h (i386/tm-i386.h): Include instead of tm-i386v.h.
1995-11-02 15:20:50 +00:00
#undef FRAME_CHAIN
#define FRAME_CHAIN(thisframe) \
(!inside_entry_file ((thisframe)->pc) ? \
read_memory_integer ((thisframe)->frame, 4) :\
0)
/* Define other aspects of the stack frame. */
/* A macro that tells us whether the function invocation represented
by FI does not have a frame on the stack associated with it. If it
does not, FRAMELESS is set to 1, else 0. */
* config/i386/tm-i386.h: New file containing generic i*86 target definitions. (TARGET_BYTE_ORDER): Moved here from tm-i386v.h. (IEEE_FLOAT): Moved here from tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Define default as 2. (FUNCTION_START_OFFSET): Moved here from tm-i386v.h. (SKIP_PROLOGUE): Moved here from tm-i386v.h. (SAVED_PC_AFTER_CALL): Moved here from tm-i386v.h. (INNER_THAN): Moved here from tm-i386v.h. (BREAKPOINT): Moved here from tm-i386v.h. (DECR_PC_AFTER_BREAK): Moved here from tm-i386v.h. (ABOUT_TO_RETURN): Moved here from tm-i386v.h. (REGISTER_SIZE): Moved here from tm-i386v.h. (NUM_REGS): Moved here from tm-i386v.h. (REGISTER_NAMES): Moved here from tm-i386v.h. (EXTRACT_STRUCT_VALUE_ADDRESS): Moved here from tm-i386v.h. (FP_REGNUM): Moved here from tm-i386v.h. (SP_REGNUM): Moved here from tm-i386v.h. (PC_REGNUM): Moved here from tm-i386v.h. (PS_REGNUM): Moved here from tm-i386v.h. (FP0_REGNUM): Moved here from tm-i386aix.h. (FPC_REGNUM): Moved here from tm-sun386.h. (REGISTER_BYTES): Moved here from tm-i386aix.h. (REGISTER_BYTE): Moved here from tm-i386aix.h. (REGISTER_RAW_SIZE): Moved here from tm-i386aix.h. (MAX_REGISTER_RAW_SIZE): Moved here from tm-i386aix.h. (REGISTER_VIRTUAL_SIZE): Moved here from tm-i386aix.h. (MAX_REGISTER_VIRTUAL_SIZE): Moved here from tm-i386aix.h. (EXTRACT_RETURN_VALUE): Moved here from tm-i386aix.h. (STORE_RETURN_VALUE): Moved here from tm-i386aix.h. (REGISTER_VIRTUAL_TYPE): Moved here from tm-i386v.h. (STORE_STRUCT_RETURN): Moved here from tm-i386v.h. (FRAME_CHAIN): Moved here from tm-i386v4.h. (FRAMELESS_FUNCTION_INVOCATION): Moved here from tm-i386v4.h. (FRAME_SAVED_PC): Moved here from tm-i386os9k.h (FRAME_ARGS_ADDRESS): Moved here from tm-i386v.h. (FRAME_LOCALS_ADDRESS): Moved here from tm-i386v.h. (FRAME_NUM_ARGS): Moved here from tm-i386sun.h. (FRAME_ARGS_SKIP): Moved here from tm-i386v.h. (FRAME_FIND_SAVED_REGS): Moved here from tm-i386v.h. (PUSH_DUMMY_FRAME): Moved here from tm-i386v.h. (POP_FRAME): Moved here from tm-i386v.h. (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Moved here from tm-i386v.h (print_387_control_word, print_387_status_word): Declare prototypes. (struct frame_info, struct frame_saved_regs): Forward decls for prototypes. (SP_ARG0): Moved here from tm-i386v.h. * config/i386/tm-i386v.h: (i386/tm-i386.h): Include. (TARGET_BYTE_ORDER): Remove. (IEEE_FLOAT): Remove. (START_INFERIOR_TRAPS_EXPECTED): Undef before redefine to 4. (FUNCTION_START_OFFSET): Remove. (SKIP_PROLOGUE): Remove. (i386_skip_prologue): Remove prototype. (SAVED_PC_AFTER_CALL): Remove. (INNER_THAN): Remove. (BREAKPOINT): Remove. (DECR_PC_AFTER_BREAK): Remove. (ABOUT_TO_RETURN): Remove. (REGISTER_SIZE): Remove. (NUM_REGS): Undef before redefine to 16 (no FP support). (REGISTER_NAMES): Undef before redefine. (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove. (REGISTER_BYTES): Undef before redefine. (REGISTER_BYTE): Undef before redefine. (REGISTER_RAW_SIZE): Undef before redefine. (REGISTER_VIRTUAL_SIZE): Undef before redefine. (MAX_REGISTER_RAW_SIZE): Undef before redefine. (MAX_REGISTER_VIRTUAL_SIZE): Undef before redefine. (REGISTER_VIRTUAL_TYPE): Undef before redefine. (STORE_STRUCT_RETURN): Undef before redefine. (EXTRACT_RETURN_VALUE): Undef before redefine. (STORE_RETURN_VALUE): Undef before redefine. (EXTRACT_STRUCT_VALUE_ADDRESS): Remove. (FRAME_CHAIN): Undef before redefine. (FRAMELESS_FUNCTION_INVOCATION): Undef before redefine. (FRAME_SAVED_PC): Undef before redefine. (FRAME_ARGS_ADDRESS): Remove. (FRAME_LOCALS_ADDRESS): Remove. (FRAME_NUM_ARGS): Undef before redefine. (FRAME_ARGS_SKIP): Remove. (FRAME_FIND_SAVED_REGS): Remove. (PUSH_DUMMY_FRAME): Remove. (POP_FRAME): Remove. (CALL_DUMMY): Remove. (CALL_DUMMY_LENGTH): Remove. (CALL_DUMMY_START_OFFSET): Remove. (CALL_DUMMY_BREAKPOINT_OFFSET): Remove (FIX_CALL_DUMMY): Remove. (print_387_control_word): Remove. (print_387_status_word): Remove. (SP_ARG0): Remove. * config/i386/tm-symmetry.h: (TM_SYMMETRY_H): Enclose file in test for define & define if needed. (START_INFERIOR_TRAPS_EXPECTED): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define back to 2. (DECR_PC_AFTER_BREAK): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define to 0. (MAX_REGISTER_RAW_SIZE): Remove. (FRAME_CHAIN): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Remove. (print_387_control_word, print_387_status_word): Remove prototypes. * config/i386/tm-ptx.h: (TM_PTX_H): Enclose file in test for define & define if needed. (START_INFERIOR_TRAPS_EXPECTED): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define back to 2. (DECR_PC_AFTER_BREAK): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define to 0. (SDB_REG_TO_REGNUM): Remove obsolete commented out define. (print_387_control_word, print_387_status_word): Remove prototypes. * config/i386/tm-linux.h: (TM_LINUX_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. * config/i386/tm-i386v4.h: (TM_I386V4_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FRAME_CHAIN): Moved to tm-i386.h. (FRAMELESS_FUNCTION_INVOCATION): Moved to tm-i386.h. (FRAME_SAVED_PC): Remove. (sigtramp_saved_pc): Define as i386v4_sigtramp_saved_pc. (FRAME_NUM_ARGS): Remove. * config/i386/tm-i386os9k.h: (TM_I386OS9K_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (NUM_REGS): Undefine before redefining. (FRAME_CHAIN): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Move to tm-i386.h. * config/i386/tm-i386nw.h: (TM_I386NW_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. * config/i386/tm-i386bsd.h: (TM_I386BSD_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Remove. * config/i386/tm-i386aix.h: (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FP_REGNUM): Remove. (SP_REGNUM): Remove. (PC_REGNUM): Remove. (PS_REGNUM): Remove. (FP0_REGNUM): Moved to tm-i386.h. (NUM_REGS): Remove. (REGISTER_NAMES): Remove. (REGISTER_BYTES): Moved to tm-i386.h. (REGISTER_BYTE): Moved to tm-i386.h. (REGISTER_RAW_SIZE): Moved to tm-i386.h. (MAX_REGISTER_RAW_SIZE): Moved to tm-i386.h. (REGISTER_VIRTUAL_SIZE): Moved to tm-i386.h. (REGISTER_VIRTUAL_TYPE): Removed. (EXTRACT_RETURN_VALUE): Moved to tm-i386.h. (STORE_RETURN_VALUE): Moved to tm-i386.h. * config/i386/tm-sun386.h: (TM_SUN386_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include. (TARGET_BYTE_ORDER): Remove. (FUNCTION_START_OFFSET): Remove. (SKIP_PROLOGUE): Remove. (SAVED_PC_AFTER_CALL): Remove. (INNER_THAN): Remove. (BREAKPOINT): Remove. (DECR_PC_AFTER_BREAK): Remove. (ABOUT_TO_RETURN): Remove. (REGISTER_SIZE): Remove. (NUM_REGS): Undefine before defining. (REGISTER_NAMES): Undefine before redefining. (REGISTER_BYTES): Undefine before redefining. (REGISTER_BYTE): Undefine before defining. (FP_REGNUM): Undefine before defining. (PC_REGNUM): Undefine before defining. (FPC_REGNUM): Undefine before defining. (REGISTER_RAW_SIZE): Undefine before defining. (FRAME_CHAIN): Undefine before defining. (FRAMELESS_FUNCTION_INVOCATION): Undefine before defining. (FRAME_SAVED_PC): Undefine before defining. (FRAME_NUM_ARGS): Moved to tm-i386.h. (MAX_REGISTER_RAW_SIZE): Remove. (MAX_REGISTER_VIRTUAL_SIZE): Remove. (STORE_STRUCT_RETURN): Remove. (EXTRACT_STRUCT_VALUE_ADDRESS): Remove. (FRAME_ARGS_ADDRESS): Remove. (FRAME_LOCALS_ADDRESS): Remove. (FRAME_NUM_ARGS): Undefine before defining. (FRAME_ARGS_SKIP): Remove. (FRAME_FIND_SAVED_REGS): Remove. (PUSH_DUMMY_FRAME): Remove. (POP_FRAME): Remove. (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET): Remove. (struct frame_info, struct frame_saved_regs): Remove forward decls for prototypes. * config/i386/tm-i386lynx.h (i386/tm-i386.h): Include instead of tm-i386v.h. * config/i386/tm-i386m3.h (i386/tm-i386.h): Include instead of tm-i386v.h.
1995-11-02 15:20:50 +00:00
#undef FRAMELESS_FUNCTION_INVOCATION
#define FRAMELESS_FUNCTION_INVOCATION(FI, FRAMELESS) \
{ (FRAMELESS) = frameless_look_for_prologue (FI); }
* config/i386/tm-i386.h: New file containing generic i*86 target definitions. (TARGET_BYTE_ORDER): Moved here from tm-i386v.h. (IEEE_FLOAT): Moved here from tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Define default as 2. (FUNCTION_START_OFFSET): Moved here from tm-i386v.h. (SKIP_PROLOGUE): Moved here from tm-i386v.h. (SAVED_PC_AFTER_CALL): Moved here from tm-i386v.h. (INNER_THAN): Moved here from tm-i386v.h. (BREAKPOINT): Moved here from tm-i386v.h. (DECR_PC_AFTER_BREAK): Moved here from tm-i386v.h. (ABOUT_TO_RETURN): Moved here from tm-i386v.h. (REGISTER_SIZE): Moved here from tm-i386v.h. (NUM_REGS): Moved here from tm-i386v.h. (REGISTER_NAMES): Moved here from tm-i386v.h. (EXTRACT_STRUCT_VALUE_ADDRESS): Moved here from tm-i386v.h. (FP_REGNUM): Moved here from tm-i386v.h. (SP_REGNUM): Moved here from tm-i386v.h. (PC_REGNUM): Moved here from tm-i386v.h. (PS_REGNUM): Moved here from tm-i386v.h. (FP0_REGNUM): Moved here from tm-i386aix.h. (FPC_REGNUM): Moved here from tm-sun386.h. (REGISTER_BYTES): Moved here from tm-i386aix.h. (REGISTER_BYTE): Moved here from tm-i386aix.h. (REGISTER_RAW_SIZE): Moved here from tm-i386aix.h. (MAX_REGISTER_RAW_SIZE): Moved here from tm-i386aix.h. (REGISTER_VIRTUAL_SIZE): Moved here from tm-i386aix.h. (MAX_REGISTER_VIRTUAL_SIZE): Moved here from tm-i386aix.h. (EXTRACT_RETURN_VALUE): Moved here from tm-i386aix.h. (STORE_RETURN_VALUE): Moved here from tm-i386aix.h. (REGISTER_VIRTUAL_TYPE): Moved here from tm-i386v.h. (STORE_STRUCT_RETURN): Moved here from tm-i386v.h. (FRAME_CHAIN): Moved here from tm-i386v4.h. (FRAMELESS_FUNCTION_INVOCATION): Moved here from tm-i386v4.h. (FRAME_SAVED_PC): Moved here from tm-i386os9k.h (FRAME_ARGS_ADDRESS): Moved here from tm-i386v.h. (FRAME_LOCALS_ADDRESS): Moved here from tm-i386v.h. (FRAME_NUM_ARGS): Moved here from tm-i386sun.h. (FRAME_ARGS_SKIP): Moved here from tm-i386v.h. (FRAME_FIND_SAVED_REGS): Moved here from tm-i386v.h. (PUSH_DUMMY_FRAME): Moved here from tm-i386v.h. (POP_FRAME): Moved here from tm-i386v.h. (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Moved here from tm-i386v.h (print_387_control_word, print_387_status_word): Declare prototypes. (struct frame_info, struct frame_saved_regs): Forward decls for prototypes. (SP_ARG0): Moved here from tm-i386v.h. * config/i386/tm-i386v.h: (i386/tm-i386.h): Include. (TARGET_BYTE_ORDER): Remove. (IEEE_FLOAT): Remove. (START_INFERIOR_TRAPS_EXPECTED): Undef before redefine to 4. (FUNCTION_START_OFFSET): Remove. (SKIP_PROLOGUE): Remove. (i386_skip_prologue): Remove prototype. (SAVED_PC_AFTER_CALL): Remove. (INNER_THAN): Remove. (BREAKPOINT): Remove. (DECR_PC_AFTER_BREAK): Remove. (ABOUT_TO_RETURN): Remove. (REGISTER_SIZE): Remove. (NUM_REGS): Undef before redefine to 16 (no FP support). (REGISTER_NAMES): Undef before redefine. (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove. (REGISTER_BYTES): Undef before redefine. (REGISTER_BYTE): Undef before redefine. (REGISTER_RAW_SIZE): Undef before redefine. (REGISTER_VIRTUAL_SIZE): Undef before redefine. (MAX_REGISTER_RAW_SIZE): Undef before redefine. (MAX_REGISTER_VIRTUAL_SIZE): Undef before redefine. (REGISTER_VIRTUAL_TYPE): Undef before redefine. (STORE_STRUCT_RETURN): Undef before redefine. (EXTRACT_RETURN_VALUE): Undef before redefine. (STORE_RETURN_VALUE): Undef before redefine. (EXTRACT_STRUCT_VALUE_ADDRESS): Remove. (FRAME_CHAIN): Undef before redefine. (FRAMELESS_FUNCTION_INVOCATION): Undef before redefine. (FRAME_SAVED_PC): Undef before redefine. (FRAME_ARGS_ADDRESS): Remove. (FRAME_LOCALS_ADDRESS): Remove. (FRAME_NUM_ARGS): Undef before redefine. (FRAME_ARGS_SKIP): Remove. (FRAME_FIND_SAVED_REGS): Remove. (PUSH_DUMMY_FRAME): Remove. (POP_FRAME): Remove. (CALL_DUMMY): Remove. (CALL_DUMMY_LENGTH): Remove. (CALL_DUMMY_START_OFFSET): Remove. (CALL_DUMMY_BREAKPOINT_OFFSET): Remove (FIX_CALL_DUMMY): Remove. (print_387_control_word): Remove. (print_387_status_word): Remove. (SP_ARG0): Remove. * config/i386/tm-symmetry.h: (TM_SYMMETRY_H): Enclose file in test for define & define if needed. (START_INFERIOR_TRAPS_EXPECTED): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define back to 2. (DECR_PC_AFTER_BREAK): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define to 0. (MAX_REGISTER_RAW_SIZE): Remove. (FRAME_CHAIN): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Remove. (print_387_control_word, print_387_status_word): Remove prototypes. * config/i386/tm-ptx.h: (TM_PTX_H): Enclose file in test for define & define if needed. (START_INFERIOR_TRAPS_EXPECTED): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define back to 2. (DECR_PC_AFTER_BREAK): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define to 0. (SDB_REG_TO_REGNUM): Remove obsolete commented out define. (print_387_control_word, print_387_status_word): Remove prototypes. * config/i386/tm-linux.h: (TM_LINUX_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. * config/i386/tm-i386v4.h: (TM_I386V4_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FRAME_CHAIN): Moved to tm-i386.h. (FRAMELESS_FUNCTION_INVOCATION): Moved to tm-i386.h. (FRAME_SAVED_PC): Remove. (sigtramp_saved_pc): Define as i386v4_sigtramp_saved_pc. (FRAME_NUM_ARGS): Remove. * config/i386/tm-i386os9k.h: (TM_I386OS9K_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (NUM_REGS): Undefine before redefining. (FRAME_CHAIN): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Move to tm-i386.h. * config/i386/tm-i386nw.h: (TM_I386NW_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. * config/i386/tm-i386bsd.h: (TM_I386BSD_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Remove. * config/i386/tm-i386aix.h: (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FP_REGNUM): Remove. (SP_REGNUM): Remove. (PC_REGNUM): Remove. (PS_REGNUM): Remove. (FP0_REGNUM): Moved to tm-i386.h. (NUM_REGS): Remove. (REGISTER_NAMES): Remove. (REGISTER_BYTES): Moved to tm-i386.h. (REGISTER_BYTE): Moved to tm-i386.h. (REGISTER_RAW_SIZE): Moved to tm-i386.h. (MAX_REGISTER_RAW_SIZE): Moved to tm-i386.h. (REGISTER_VIRTUAL_SIZE): Moved to tm-i386.h. (REGISTER_VIRTUAL_TYPE): Removed. (EXTRACT_RETURN_VALUE): Moved to tm-i386.h. (STORE_RETURN_VALUE): Moved to tm-i386.h. * config/i386/tm-sun386.h: (TM_SUN386_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include. (TARGET_BYTE_ORDER): Remove. (FUNCTION_START_OFFSET): Remove. (SKIP_PROLOGUE): Remove. (SAVED_PC_AFTER_CALL): Remove. (INNER_THAN): Remove. (BREAKPOINT): Remove. (DECR_PC_AFTER_BREAK): Remove. (ABOUT_TO_RETURN): Remove. (REGISTER_SIZE): Remove. (NUM_REGS): Undefine before defining. (REGISTER_NAMES): Undefine before redefining. (REGISTER_BYTES): Undefine before redefining. (REGISTER_BYTE): Undefine before defining. (FP_REGNUM): Undefine before defining. (PC_REGNUM): Undefine before defining. (FPC_REGNUM): Undefine before defining. (REGISTER_RAW_SIZE): Undefine before defining. (FRAME_CHAIN): Undefine before defining. (FRAMELESS_FUNCTION_INVOCATION): Undefine before defining. (FRAME_SAVED_PC): Undefine before defining. (FRAME_NUM_ARGS): Moved to tm-i386.h. (MAX_REGISTER_RAW_SIZE): Remove. (MAX_REGISTER_VIRTUAL_SIZE): Remove. (STORE_STRUCT_RETURN): Remove. (EXTRACT_STRUCT_VALUE_ADDRESS): Remove. (FRAME_ARGS_ADDRESS): Remove. (FRAME_LOCALS_ADDRESS): Remove. (FRAME_NUM_ARGS): Undefine before defining. (FRAME_ARGS_SKIP): Remove. (FRAME_FIND_SAVED_REGS): Remove. (PUSH_DUMMY_FRAME): Remove. (POP_FRAME): Remove. (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET): Remove. (struct frame_info, struct frame_saved_regs): Remove forward decls for prototypes. * config/i386/tm-i386lynx.h (i386/tm-i386.h): Include instead of tm-i386v.h. * config/i386/tm-i386m3.h (i386/tm-i386.h): Include instead of tm-i386v.h.
1995-11-02 15:20:50 +00:00
#undef FRAME_SAVED_PC
#define FRAME_SAVED_PC(FRAME) (read_memory_integer ((FRAME)->frame + 4, 4))
/* Insert the specified number of args and function address
into a call sequence of the above form stored at DUMMYNAME. */
* config/i386/tm-i386.h: New file containing generic i*86 target definitions. (TARGET_BYTE_ORDER): Moved here from tm-i386v.h. (IEEE_FLOAT): Moved here from tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Define default as 2. (FUNCTION_START_OFFSET): Moved here from tm-i386v.h. (SKIP_PROLOGUE): Moved here from tm-i386v.h. (SAVED_PC_AFTER_CALL): Moved here from tm-i386v.h. (INNER_THAN): Moved here from tm-i386v.h. (BREAKPOINT): Moved here from tm-i386v.h. (DECR_PC_AFTER_BREAK): Moved here from tm-i386v.h. (ABOUT_TO_RETURN): Moved here from tm-i386v.h. (REGISTER_SIZE): Moved here from tm-i386v.h. (NUM_REGS): Moved here from tm-i386v.h. (REGISTER_NAMES): Moved here from tm-i386v.h. (EXTRACT_STRUCT_VALUE_ADDRESS): Moved here from tm-i386v.h. (FP_REGNUM): Moved here from tm-i386v.h. (SP_REGNUM): Moved here from tm-i386v.h. (PC_REGNUM): Moved here from tm-i386v.h. (PS_REGNUM): Moved here from tm-i386v.h. (FP0_REGNUM): Moved here from tm-i386aix.h. (FPC_REGNUM): Moved here from tm-sun386.h. (REGISTER_BYTES): Moved here from tm-i386aix.h. (REGISTER_BYTE): Moved here from tm-i386aix.h. (REGISTER_RAW_SIZE): Moved here from tm-i386aix.h. (MAX_REGISTER_RAW_SIZE): Moved here from tm-i386aix.h. (REGISTER_VIRTUAL_SIZE): Moved here from tm-i386aix.h. (MAX_REGISTER_VIRTUAL_SIZE): Moved here from tm-i386aix.h. (EXTRACT_RETURN_VALUE): Moved here from tm-i386aix.h. (STORE_RETURN_VALUE): Moved here from tm-i386aix.h. (REGISTER_VIRTUAL_TYPE): Moved here from tm-i386v.h. (STORE_STRUCT_RETURN): Moved here from tm-i386v.h. (FRAME_CHAIN): Moved here from tm-i386v4.h. (FRAMELESS_FUNCTION_INVOCATION): Moved here from tm-i386v4.h. (FRAME_SAVED_PC): Moved here from tm-i386os9k.h (FRAME_ARGS_ADDRESS): Moved here from tm-i386v.h. (FRAME_LOCALS_ADDRESS): Moved here from tm-i386v.h. (FRAME_NUM_ARGS): Moved here from tm-i386sun.h. (FRAME_ARGS_SKIP): Moved here from tm-i386v.h. (FRAME_FIND_SAVED_REGS): Moved here from tm-i386v.h. (PUSH_DUMMY_FRAME): Moved here from tm-i386v.h. (POP_FRAME): Moved here from tm-i386v.h. (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Moved here from tm-i386v.h (print_387_control_word, print_387_status_word): Declare prototypes. (struct frame_info, struct frame_saved_regs): Forward decls for prototypes. (SP_ARG0): Moved here from tm-i386v.h. * config/i386/tm-i386v.h: (i386/tm-i386.h): Include. (TARGET_BYTE_ORDER): Remove. (IEEE_FLOAT): Remove. (START_INFERIOR_TRAPS_EXPECTED): Undef before redefine to 4. (FUNCTION_START_OFFSET): Remove. (SKIP_PROLOGUE): Remove. (i386_skip_prologue): Remove prototype. (SAVED_PC_AFTER_CALL): Remove. (INNER_THAN): Remove. (BREAKPOINT): Remove. (DECR_PC_AFTER_BREAK): Remove. (ABOUT_TO_RETURN): Remove. (REGISTER_SIZE): Remove. (NUM_REGS): Undef before redefine to 16 (no FP support). (REGISTER_NAMES): Undef before redefine. (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove. (REGISTER_BYTES): Undef before redefine. (REGISTER_BYTE): Undef before redefine. (REGISTER_RAW_SIZE): Undef before redefine. (REGISTER_VIRTUAL_SIZE): Undef before redefine. (MAX_REGISTER_RAW_SIZE): Undef before redefine. (MAX_REGISTER_VIRTUAL_SIZE): Undef before redefine. (REGISTER_VIRTUAL_TYPE): Undef before redefine. (STORE_STRUCT_RETURN): Undef before redefine. (EXTRACT_RETURN_VALUE): Undef before redefine. (STORE_RETURN_VALUE): Undef before redefine. (EXTRACT_STRUCT_VALUE_ADDRESS): Remove. (FRAME_CHAIN): Undef before redefine. (FRAMELESS_FUNCTION_INVOCATION): Undef before redefine. (FRAME_SAVED_PC): Undef before redefine. (FRAME_ARGS_ADDRESS): Remove. (FRAME_LOCALS_ADDRESS): Remove. (FRAME_NUM_ARGS): Undef before redefine. (FRAME_ARGS_SKIP): Remove. (FRAME_FIND_SAVED_REGS): Remove. (PUSH_DUMMY_FRAME): Remove. (POP_FRAME): Remove. (CALL_DUMMY): Remove. (CALL_DUMMY_LENGTH): Remove. (CALL_DUMMY_START_OFFSET): Remove. (CALL_DUMMY_BREAKPOINT_OFFSET): Remove (FIX_CALL_DUMMY): Remove. (print_387_control_word): Remove. (print_387_status_word): Remove. (SP_ARG0): Remove. * config/i386/tm-symmetry.h: (TM_SYMMETRY_H): Enclose file in test for define & define if needed. (START_INFERIOR_TRAPS_EXPECTED): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define back to 2. (DECR_PC_AFTER_BREAK): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define to 0. (MAX_REGISTER_RAW_SIZE): Remove. (FRAME_CHAIN): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Remove. (print_387_control_word, print_387_status_word): Remove prototypes. * config/i386/tm-ptx.h: (TM_PTX_H): Enclose file in test for define & define if needed. (START_INFERIOR_TRAPS_EXPECTED): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define back to 2. (DECR_PC_AFTER_BREAK): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define to 0. (SDB_REG_TO_REGNUM): Remove obsolete commented out define. (print_387_control_word, print_387_status_word): Remove prototypes. * config/i386/tm-linux.h: (TM_LINUX_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. * config/i386/tm-i386v4.h: (TM_I386V4_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FRAME_CHAIN): Moved to tm-i386.h. (FRAMELESS_FUNCTION_INVOCATION): Moved to tm-i386.h. (FRAME_SAVED_PC): Remove. (sigtramp_saved_pc): Define as i386v4_sigtramp_saved_pc. (FRAME_NUM_ARGS): Remove. * config/i386/tm-i386os9k.h: (TM_I386OS9K_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (NUM_REGS): Undefine before redefining. (FRAME_CHAIN): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Move to tm-i386.h. * config/i386/tm-i386nw.h: (TM_I386NW_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. * config/i386/tm-i386bsd.h: (TM_I386BSD_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Remove. * config/i386/tm-i386aix.h: (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FP_REGNUM): Remove. (SP_REGNUM): Remove. (PC_REGNUM): Remove. (PS_REGNUM): Remove. (FP0_REGNUM): Moved to tm-i386.h. (NUM_REGS): Remove. (REGISTER_NAMES): Remove. (REGISTER_BYTES): Moved to tm-i386.h. (REGISTER_BYTE): Moved to tm-i386.h. (REGISTER_RAW_SIZE): Moved to tm-i386.h. (MAX_REGISTER_RAW_SIZE): Moved to tm-i386.h. (REGISTER_VIRTUAL_SIZE): Moved to tm-i386.h. (REGISTER_VIRTUAL_TYPE): Removed. (EXTRACT_RETURN_VALUE): Moved to tm-i386.h. (STORE_RETURN_VALUE): Moved to tm-i386.h. * config/i386/tm-sun386.h: (TM_SUN386_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include. (TARGET_BYTE_ORDER): Remove. (FUNCTION_START_OFFSET): Remove. (SKIP_PROLOGUE): Remove. (SAVED_PC_AFTER_CALL): Remove. (INNER_THAN): Remove. (BREAKPOINT): Remove. (DECR_PC_AFTER_BREAK): Remove. (ABOUT_TO_RETURN): Remove. (REGISTER_SIZE): Remove. (NUM_REGS): Undefine before defining. (REGISTER_NAMES): Undefine before redefining. (REGISTER_BYTES): Undefine before redefining. (REGISTER_BYTE): Undefine before defining. (FP_REGNUM): Undefine before defining. (PC_REGNUM): Undefine before defining. (FPC_REGNUM): Undefine before defining. (REGISTER_RAW_SIZE): Undefine before defining. (FRAME_CHAIN): Undefine before defining. (FRAMELESS_FUNCTION_INVOCATION): Undefine before defining. (FRAME_SAVED_PC): Undefine before defining. (FRAME_NUM_ARGS): Moved to tm-i386.h. (MAX_REGISTER_RAW_SIZE): Remove. (MAX_REGISTER_VIRTUAL_SIZE): Remove. (STORE_STRUCT_RETURN): Remove. (EXTRACT_STRUCT_VALUE_ADDRESS): Remove. (FRAME_ARGS_ADDRESS): Remove. (FRAME_LOCALS_ADDRESS): Remove. (FRAME_NUM_ARGS): Undefine before defining. (FRAME_ARGS_SKIP): Remove. (FRAME_FIND_SAVED_REGS): Remove. (PUSH_DUMMY_FRAME): Remove. (POP_FRAME): Remove. (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET): Remove. (struct frame_info, struct frame_saved_regs): Remove forward decls for prototypes. * config/i386/tm-i386lynx.h (i386/tm-i386.h): Include instead of tm-i386v.h. * config/i386/tm-i386m3.h (i386/tm-i386.h): Include instead of tm-i386v.h.
1995-11-02 15:20:50 +00:00
#undef FIX_CALL_DUMMY
#define FIX_CALL_DUMMY(dummyname, pc, fun, nargs, args, type, gcc_p) \
{ \
*(int *)((char *)(dummyname) + 1) = (int)(fun) - (pc) - 5; \
}
* config/i386/tm-i386.h: New file containing generic i*86 target definitions. (TARGET_BYTE_ORDER): Moved here from tm-i386v.h. (IEEE_FLOAT): Moved here from tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Define default as 2. (FUNCTION_START_OFFSET): Moved here from tm-i386v.h. (SKIP_PROLOGUE): Moved here from tm-i386v.h. (SAVED_PC_AFTER_CALL): Moved here from tm-i386v.h. (INNER_THAN): Moved here from tm-i386v.h. (BREAKPOINT): Moved here from tm-i386v.h. (DECR_PC_AFTER_BREAK): Moved here from tm-i386v.h. (ABOUT_TO_RETURN): Moved here from tm-i386v.h. (REGISTER_SIZE): Moved here from tm-i386v.h. (NUM_REGS): Moved here from tm-i386v.h. (REGISTER_NAMES): Moved here from tm-i386v.h. (EXTRACT_STRUCT_VALUE_ADDRESS): Moved here from tm-i386v.h. (FP_REGNUM): Moved here from tm-i386v.h. (SP_REGNUM): Moved here from tm-i386v.h. (PC_REGNUM): Moved here from tm-i386v.h. (PS_REGNUM): Moved here from tm-i386v.h. (FP0_REGNUM): Moved here from tm-i386aix.h. (FPC_REGNUM): Moved here from tm-sun386.h. (REGISTER_BYTES): Moved here from tm-i386aix.h. (REGISTER_BYTE): Moved here from tm-i386aix.h. (REGISTER_RAW_SIZE): Moved here from tm-i386aix.h. (MAX_REGISTER_RAW_SIZE): Moved here from tm-i386aix.h. (REGISTER_VIRTUAL_SIZE): Moved here from tm-i386aix.h. (MAX_REGISTER_VIRTUAL_SIZE): Moved here from tm-i386aix.h. (EXTRACT_RETURN_VALUE): Moved here from tm-i386aix.h. (STORE_RETURN_VALUE): Moved here from tm-i386aix.h. (REGISTER_VIRTUAL_TYPE): Moved here from tm-i386v.h. (STORE_STRUCT_RETURN): Moved here from tm-i386v.h. (FRAME_CHAIN): Moved here from tm-i386v4.h. (FRAMELESS_FUNCTION_INVOCATION): Moved here from tm-i386v4.h. (FRAME_SAVED_PC): Moved here from tm-i386os9k.h (FRAME_ARGS_ADDRESS): Moved here from tm-i386v.h. (FRAME_LOCALS_ADDRESS): Moved here from tm-i386v.h. (FRAME_NUM_ARGS): Moved here from tm-i386sun.h. (FRAME_ARGS_SKIP): Moved here from tm-i386v.h. (FRAME_FIND_SAVED_REGS): Moved here from tm-i386v.h. (PUSH_DUMMY_FRAME): Moved here from tm-i386v.h. (POP_FRAME): Moved here from tm-i386v.h. (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Moved here from tm-i386v.h (print_387_control_word, print_387_status_word): Declare prototypes. (struct frame_info, struct frame_saved_regs): Forward decls for prototypes. (SP_ARG0): Moved here from tm-i386v.h. * config/i386/tm-i386v.h: (i386/tm-i386.h): Include. (TARGET_BYTE_ORDER): Remove. (IEEE_FLOAT): Remove. (START_INFERIOR_TRAPS_EXPECTED): Undef before redefine to 4. (FUNCTION_START_OFFSET): Remove. (SKIP_PROLOGUE): Remove. (i386_skip_prologue): Remove prototype. (SAVED_PC_AFTER_CALL): Remove. (INNER_THAN): Remove. (BREAKPOINT): Remove. (DECR_PC_AFTER_BREAK): Remove. (ABOUT_TO_RETURN): Remove. (REGISTER_SIZE): Remove. (NUM_REGS): Undef before redefine to 16 (no FP support). (REGISTER_NAMES): Undef before redefine. (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove. (REGISTER_BYTES): Undef before redefine. (REGISTER_BYTE): Undef before redefine. (REGISTER_RAW_SIZE): Undef before redefine. (REGISTER_VIRTUAL_SIZE): Undef before redefine. (MAX_REGISTER_RAW_SIZE): Undef before redefine. (MAX_REGISTER_VIRTUAL_SIZE): Undef before redefine. (REGISTER_VIRTUAL_TYPE): Undef before redefine. (STORE_STRUCT_RETURN): Undef before redefine. (EXTRACT_RETURN_VALUE): Undef before redefine. (STORE_RETURN_VALUE): Undef before redefine. (EXTRACT_STRUCT_VALUE_ADDRESS): Remove. (FRAME_CHAIN): Undef before redefine. (FRAMELESS_FUNCTION_INVOCATION): Undef before redefine. (FRAME_SAVED_PC): Undef before redefine. (FRAME_ARGS_ADDRESS): Remove. (FRAME_LOCALS_ADDRESS): Remove. (FRAME_NUM_ARGS): Undef before redefine. (FRAME_ARGS_SKIP): Remove. (FRAME_FIND_SAVED_REGS): Remove. (PUSH_DUMMY_FRAME): Remove. (POP_FRAME): Remove. (CALL_DUMMY): Remove. (CALL_DUMMY_LENGTH): Remove. (CALL_DUMMY_START_OFFSET): Remove. (CALL_DUMMY_BREAKPOINT_OFFSET): Remove (FIX_CALL_DUMMY): Remove. (print_387_control_word): Remove. (print_387_status_word): Remove. (SP_ARG0): Remove. * config/i386/tm-symmetry.h: (TM_SYMMETRY_H): Enclose file in test for define & define if needed. (START_INFERIOR_TRAPS_EXPECTED): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define back to 2. (DECR_PC_AFTER_BREAK): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define to 0. (MAX_REGISTER_RAW_SIZE): Remove. (FRAME_CHAIN): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Remove. (print_387_control_word, print_387_status_word): Remove prototypes. * config/i386/tm-ptx.h: (TM_PTX_H): Enclose file in test for define & define if needed. (START_INFERIOR_TRAPS_EXPECTED): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define back to 2. (DECR_PC_AFTER_BREAK): Move to after inclusion of tm-i386v4.h or tm-i386v.h, #undef, and #define to 0. (SDB_REG_TO_REGNUM): Remove obsolete commented out define. (print_387_control_word, print_387_status_word): Remove prototypes. * config/i386/tm-linux.h: (TM_LINUX_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. * config/i386/tm-i386v4.h: (TM_I386V4_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FRAME_CHAIN): Moved to tm-i386.h. (FRAMELESS_FUNCTION_INVOCATION): Moved to tm-i386.h. (FRAME_SAVED_PC): Remove. (sigtramp_saved_pc): Define as i386v4_sigtramp_saved_pc. (FRAME_NUM_ARGS): Remove. * config/i386/tm-i386os9k.h: (TM_I386OS9K_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (NUM_REGS): Undefine before redefining. (FRAME_CHAIN): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Move to tm-i386.h. * config/i386/tm-i386nw.h: (TM_I386NW_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. * config/i386/tm-i386bsd.h: (TM_I386BSD_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Remove. * config/i386/tm-i386aix.h: (i386/tm-i386.h): Include instead of tm-i386v.h. (START_INFERIOR_TRAPS_EXPECTED): Remove. (FP_REGNUM): Remove. (SP_REGNUM): Remove. (PC_REGNUM): Remove. (PS_REGNUM): Remove. (FP0_REGNUM): Moved to tm-i386.h. (NUM_REGS): Remove. (REGISTER_NAMES): Remove. (REGISTER_BYTES): Moved to tm-i386.h. (REGISTER_BYTE): Moved to tm-i386.h. (REGISTER_RAW_SIZE): Moved to tm-i386.h. (MAX_REGISTER_RAW_SIZE): Moved to tm-i386.h. (REGISTER_VIRTUAL_SIZE): Moved to tm-i386.h. (REGISTER_VIRTUAL_TYPE): Removed. (EXTRACT_RETURN_VALUE): Moved to tm-i386.h. (STORE_RETURN_VALUE): Moved to tm-i386.h. * config/i386/tm-sun386.h: (TM_SUN386_H): Enclose file in test for define & define if needed. (i386/tm-i386.h): Include. (TARGET_BYTE_ORDER): Remove. (FUNCTION_START_OFFSET): Remove. (SKIP_PROLOGUE): Remove. (SAVED_PC_AFTER_CALL): Remove. (INNER_THAN): Remove. (BREAKPOINT): Remove. (DECR_PC_AFTER_BREAK): Remove. (ABOUT_TO_RETURN): Remove. (REGISTER_SIZE): Remove. (NUM_REGS): Undefine before defining. (REGISTER_NAMES): Undefine before redefining. (REGISTER_BYTES): Undefine before redefining. (REGISTER_BYTE): Undefine before defining. (FP_REGNUM): Undefine before defining. (PC_REGNUM): Undefine before defining. (FPC_REGNUM): Undefine before defining. (REGISTER_RAW_SIZE): Undefine before defining. (FRAME_CHAIN): Undefine before defining. (FRAMELESS_FUNCTION_INVOCATION): Undefine before defining. (FRAME_SAVED_PC): Undefine before defining. (FRAME_NUM_ARGS): Moved to tm-i386.h. (MAX_REGISTER_RAW_SIZE): Remove. (MAX_REGISTER_VIRTUAL_SIZE): Remove. (STORE_STRUCT_RETURN): Remove. (EXTRACT_STRUCT_VALUE_ADDRESS): Remove. (FRAME_ARGS_ADDRESS): Remove. (FRAME_LOCALS_ADDRESS): Remove. (FRAME_NUM_ARGS): Undefine before defining. (FRAME_ARGS_SKIP): Remove. (FRAME_FIND_SAVED_REGS): Remove. (PUSH_DUMMY_FRAME): Remove. (POP_FRAME): Remove. (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET): Remove. (struct frame_info, struct frame_saved_regs): Remove forward decls for prototypes. * config/i386/tm-i386lynx.h (i386/tm-i386.h): Include instead of tm-i386v.h. * config/i386/tm-i386m3.h (i386/tm-i386.h): Include instead of tm-i386v.h.
1995-11-02 15:20:50 +00:00
#endif /* !defined (TM_SUN386_H) */