xref: /netbsd-src/external/gpl3/gdb/dist/include/coff/tic4x.h (revision aab831cebf6361fb2b518a47c70732e608d9abd2)
198b9484cSchristos /* TI COFF information for Texas Instruments TMS320C4X/C3X.
298b9484cSchristos    This file customizes the settings in coff/ti.h.
398b9484cSchristos 
4*aab831ceSchristos    Copyright (C) 2002-2024 Free Software Foundation, Inc.
598b9484cSchristos 
698b9484cSchristos    This program is free software; you can redistribute it and/or modify
798b9484cSchristos    it under the terms of the GNU General Public License as published by
898b9484cSchristos    the Free Software Foundation; either version 3 of the License, or
998b9484cSchristos    (at your option) any later version.
1098b9484cSchristos 
1198b9484cSchristos    This program is distributed in the hope that it will be useful,
1298b9484cSchristos    but WITHOUT ANY WARRANTY; without even the implied warranty of
1398b9484cSchristos    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1498b9484cSchristos    GNU General Public License for more details.
1598b9484cSchristos 
1698b9484cSchristos    You should have received a copy of the GNU General Public License
1798b9484cSchristos    along with this program; if not, write to the Free Software
1898b9484cSchristos    Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
1998b9484cSchristos    MA 02110-1301, USA.  */
2098b9484cSchristos 
2198b9484cSchristos #ifndef COFF_TIC4X_H
2298b9484cSchristos #define COFF_TIC4X_H
2398b9484cSchristos 
2498b9484cSchristos #define TIC4X_TARGET_ID 	0x0093
2598b9484cSchristos /* Octets per byte, as a power of two.  */
2698b9484cSchristos #define TI_TARGET_ID 		TIC4X_TARGET_ID
2798b9484cSchristos #define OCTETS_PER_BYTE_POWER 	2
2898b9484cSchristos /* Add to howto to get absolute/sect-relative version.  */
2998b9484cSchristos #define HOWTO_BANK 		6
3098b9484cSchristos #define TICOFF_TARGET_ARCH 	bfd_arch_tic4x
3198b9484cSchristos /* We use COFF2.  */
3298b9484cSchristos #define TICOFF_DEFAULT_MAGIC 	TICOFF2MAGIC
3398b9484cSchristos 
3498b9484cSchristos #define TICOFF_TARGET_MACHINE_GET(FLAGS) \
3598b9484cSchristos   (((FLAGS) & F_VERS) ? bfd_mach_tic4x : bfd_mach_tic3x)
3698b9484cSchristos 
3798b9484cSchristos #define TICOFF_TARGET_MACHINE_SET(FLAGSP, MACHINE)	\
3898b9484cSchristos   do							\
3998b9484cSchristos     {							\
4098b9484cSchristos       if ((MACHINE) == bfd_mach_tic4x)			\
4198b9484cSchristos         *(FLAGSP) |= F_VERS;				\
4298b9484cSchristos     }							\
4398b9484cSchristos   while (0)
4498b9484cSchristos 
4598b9484cSchristos #include "coff/ti.h"
4698b9484cSchristos 
4798b9484cSchristos #endif /* COFF_TIC4X_H */
48