Path: blob/master/arch/xtensa/variants/fsf/include/variant/tie.h
10821 views
/*1* This header file describes this specific Xtensa processor's TIE extensions2* that extend basic Xtensa core functionality. It is customized to this3* Xtensa processor configuration.4*5* This file is subject to the terms and conditions of the GNU General Public6* License. See the file "COPYING" in the main directory of this archive7* for more details.8*9* Copyright (C) 1999-2007 Tensilica Inc.10*/1112#ifndef _XTENSA_CORE_TIE_H13#define _XTENSA_CORE_TIE_H1415#define XCHAL_CP_NUM 0 /* number of coprocessors */16#define XCHAL_CP_MAX 0 /* max CP ID + 1 (0 if none) */17#define XCHAL_CP_MASK 0x00 /* bitmask of all CPs by ID */18#define XCHAL_CP_PORT_MASK 0x00 /* bitmask of only port CPs */1920/* Basic parameters of each coprocessor: */21#define XCHAL_CP7_NAME "XTIOP"22#define XCHAL_CP7_IDENT XTIOP23#define XCHAL_CP7_SA_SIZE 0 /* size of state save area */24#define XCHAL_CP7_SA_ALIGN 1 /* min alignment of save area */25#define XCHAL_CP_ID_XTIOP 7 /* coprocessor ID (0..7) */2627/* Filler info for unassigned coprocessors, to simplify arrays etc: */28#define XCHAL_NCP_SA_SIZE 029#define XCHAL_NCP_SA_ALIGN 130#define XCHAL_CP0_SA_SIZE 031#define XCHAL_CP0_SA_ALIGN 132#define XCHAL_CP1_SA_SIZE 033#define XCHAL_CP1_SA_ALIGN 134#define XCHAL_CP2_SA_SIZE 035#define XCHAL_CP2_SA_ALIGN 136#define XCHAL_CP3_SA_SIZE 037#define XCHAL_CP3_SA_ALIGN 138#define XCHAL_CP4_SA_SIZE 039#define XCHAL_CP4_SA_ALIGN 140#define XCHAL_CP5_SA_SIZE 041#define XCHAL_CP5_SA_ALIGN 142#define XCHAL_CP6_SA_SIZE 043#define XCHAL_CP6_SA_ALIGN 14445/* Save area for non-coprocessor optional and custom (TIE) state: */46#define XCHAL_NCP_SA_SIZE 047#define XCHAL_NCP_SA_ALIGN 14849/* Total save area for optional and custom state (NCP + CPn): */50#define XCHAL_TOTAL_SA_SIZE 0 /* with 16-byte align padding */51#define XCHAL_TOTAL_SA_ALIGN 1 /* actual minimum alignment */5253#define XCHAL_NCP_SA_NUM 054#define XCHAL_NCP_SA_LIST(s)55#define XCHAL_CP0_SA_NUM 056#define XCHAL_CP0_SA_LIST(s)57#define XCHAL_CP1_SA_NUM 058#define XCHAL_CP1_SA_LIST(s)59#define XCHAL_CP2_SA_NUM 060#define XCHAL_CP2_SA_LIST(s)61#define XCHAL_CP3_SA_NUM 062#define XCHAL_CP3_SA_LIST(s)63#define XCHAL_CP4_SA_NUM 064#define XCHAL_CP4_SA_LIST(s)65#define XCHAL_CP5_SA_NUM 066#define XCHAL_CP5_SA_LIST(s)67#define XCHAL_CP6_SA_NUM 068#define XCHAL_CP6_SA_LIST(s)69#define XCHAL_CP7_SA_NUM 070#define XCHAL_CP7_SA_LIST(s)7172/* Byte length of instruction from its first nibble (op0 field), per FLIX. */73#define XCHAL_OP0_FORMAT_LENGTHS 3,3,3,3,3,3,3,3,2,2,2,2,2,2,3,37475#endif /*_XTENSA_CORE_TIE_H*/76777879