Rizin
unix-like reverse engineering framework and cli tools
tricore.h File Reference

Go to the source code of this file.

Classes

struct  tricore_opcode
 
struct  pcp_opcode
 
struct  tricore_core_register
 

Macros

#define bfd_mach_rider_a   0x0001
 
#define bfd_mach_rider_b   0x0002
 
#define bfd_mach_rider_c   0x0003
 
#define bfd_mach_rider_2   0x0004
 
#define bfd_mach_rider_d   0x0002
 
#define bfd_mach_rider_mask   0x000f
 
#define SEC_ARCH_BIT_0   0x008
 
#define TRICORE_V2_UP   TRICORE_V2
 
#define TRICORE_RIDER_D_UP   (TRICORE_RIDER_D | TRICORE_V2_UP)
 
#define TRICORE_RIDER_B_UP   (TRICORE_RIDER_B | TRICORE_RIDER_D_UP)
 
#define TRICORE_RIDER_B_DN   TRICORE_RIDER_B
 
#define TRICORE_RIDER_D_DN   (TRICORE_RIDER_D | TRICORE_RIDER_B_DN)
 
#define TRICORE_V2_DN   (TRICORE_V2 | TRICORE_RIDER_D_DN)
 
#define F(x)   TRICORE_FMT_ x
 
#define FMT_ABS_NONE   '0'
 
#define FMT_ABS_OFF18   '1'
 
#define FMT_ABS_S1_D   '2'
 
#define FMT_ABSB_NONE   '0'
 
#define FMT_ABSB_OFF18   '1'
 
#define FMT_ABSB_B   '2'
 
#define FMT_ABSB_BPOS3   '3'
 
#define FMT_B_NONE   '0'
 
#define FMT_B_DISP24   '1'
 
#define FMT_BIT_NONE   '0'
 
#define FMT_BIT_D   '1'
 
#define FMT_BIT_P2   '2'
 
#define FMT_BIT_P1   '3'
 
#define FMT_BIT_S2   '4'
 
#define FMT_BIT_S1   '5'
 
#define FMT_BO_NONE   '0'
 
#define FMT_BO_OFF10   '1'
 
#define FMT_BO_S2   '2'
 
#define FMT_BO_S1_D   '3'
 
#define FMT_BOL_NONE   '0'
 
#define FMT_BOL_OFF16   '1'
 
#define FMT_BOL_S2   '2'
 
#define FMT_BOL_S1_D   '3'
 
#define FMT_BRC_NONE   '0'
 
#define FMT_BRC_DISP15   '1'
 
#define FMT_BRC_CONST4   '2'
 
#define FMT_BRC_S1   '3'
 
#define FMT_BRN_NONE   '0'
 
#define FMT_BRN_DISP15   '1'
 
#define FMT_BRN_N   '2'
 
#define FMT_BRN_S1   '3'
 
#define FMT_BRR_NONE   '0'
 
#define FMT_BRR_DISP15   '1'
 
#define FMT_BRR_S2   '2'
 
#define FMT_BRR_S1   '3'
 
#define FMT_RC_NONE   '0'
 
#define FMT_RC_D   '1'
 
#define FMT_RC_CONST9   '2'
 
#define FMT_RC_S1   '3'
 
#define FMT_RCPW_NONE   '0'
 
#define FMT_RCPW_D   '1'
 
#define FMT_RCPW_P   '2'
 
#define FMT_RCPW_W   '3'
 
#define FMT_RCPW_CONST4   '4'
 
#define FMT_RCPW_S1   '5'
 
#define FMT_RCR_NONE   '0'
 
#define FMT_RCR_D   '1'
 
#define FMT_RCR_S3   '2'
 
#define FMT_RCR_CONST9   '3'
 
#define FMT_RCR_S1   '4'
 
#define FMT_RCRR_NONE   '0'
 
#define FMT_RCRR_D   '1'
 
#define FMT_RCRR_S3   '2'
 
#define FMT_RCRR_CONST4   '3'
 
#define FMT_RCRR_S1   '4'
 
#define FMT_RCRW_NONE   '0'
 
#define FMT_RCRW_D   '1'
 
#define FMT_RCRW_S3   '2'
 
#define FMT_RCRW_W   '3'
 
#define FMT_RCRW_CONST4   '4'
 
#define FMT_RCRW_S1   '5'
 
#define FMT_RLC_NONE   '0'
 
#define FMT_RLC_D   '1'
 
#define FMT_RLC_CONST16   '2'
 
#define FMT_RLC_S1   '3'
 
#define FMT_RR_NONE   '0'
 
#define FMT_RR_D   '1'
 
#define FMT_RR_N   '2'
 
#define FMT_RR_S2   '3'
 
#define FMT_RR_S1   '4'
 
#define FMT_RR1_NONE   '0'
 
#define FMT_RR1_D   '1'
 
#define FMT_RR1_N   '2'
 
#define FMT_RR1_S2   '3'
 
#define FMT_RR1_S1   '4'
 
#define FMT_RR2_NONE   '0'
 
#define FMT_RR2_D   '1'
 
#define FMT_RR2_S2   '2'
 
#define FMT_RR2_S1   '3'
 
#define FMT_RRPW_NONE   '0'
 
#define FMT_RRPW_D   '1'
 
#define FMT_RRPW_P   '2'
 
#define FMT_RRPW_W   '3'
 
#define FMT_RRPW_S2   '4'
 
#define FMT_RRPW_S1   '5'
 
#define FMT_RRR_NONE   '0'
 
#define FMT_RRR_D   '1'
 
#define FMT_RRR_S3   '2'
 
#define FMT_RRR_N   '3'
 
#define FMT_RRR_S2   '4'
 
#define FMT_RRR_S1   '5'
 
#define FMT_RRR1_NONE   '0'
 
#define FMT_RRR1_D   '1'
 
#define FMT_RRR1_S3   '2'
 
#define FMT_RRR1_N   '3'
 
#define FMT_RRR1_S2   '4'
 
#define FMT_RRR1_S1   '5'
 
#define FMT_RRR2_NONE   '0'
 
#define FMT_RRR2_D   '1'
 
#define FMT_RRR2_S3   '2'
 
#define FMT_RRR2_S2   '3'
 
#define FMT_RRR2_S1   '4'
 
#define FMT_RRRR_NONE   '0'
 
#define FMT_RRRR_D   '1'
 
#define FMT_RRRR_S3   '2'
 
#define FMT_RRRR_S2   '3'
 
#define FMT_RRRR_S1   '4'
 
#define FMT_RRRW_NONE   '0'
 
#define FMT_RRRW_D   '1'
 
#define FMT_RRRW_S3   '2'
 
#define FMT_RRRW_W   '3'
 
#define FMT_RRRW_S2   '4'
 
#define FMT_RRRW_S1   '5'
 
#define FMT_SYS_NONE   '0'
 
#define FMT_SYS_S1_D   '1'
 
#define FMT_SB_NONE   '0'
 
#define FMT_SB_DISP8   '1'
 
#define FMT_SBC_NONE   '0'
 
#define FMT_SBC_CONST4   '1'
 
#define FMT_SBC_DISP4   '2'
 
#define FMT_SBR_NONE   '0'
 
#define FMT_SBR_S2   '1'
 
#define FMT_SBR_DISP4   '2'
 
#define FMT_SBRN_NONE   '0'
 
#define FMT_SBRN_N   '1'
 
#define FMT_SBRN_DISP4   '2'
 
#define FMT_SC_NONE   '0'
 
#define FMT_SC_CONST8   '1'
 
#define FMT_SLR_NONE   '0'
 
#define FMT_SLR_S2   '1'
 
#define FMT_SLR_D   '2'
 
#define FMT_SLRO_NONE   '0'
 
#define FMT_SLRO_OFF4   '1'
 
#define FMT_SLRO_D   '2'
 
#define FMT_SR_NONE   '0'
 
#define FMT_SR_S1_D   '1'
 
#define FMT_SRC_NONE   '0'
 
#define FMT_SRC_CONST4   '1'
 
#define FMT_SRC_S1_D   '2'
 
#define FMT_SRO_NONE   '0'
 
#define FMT_SRO_S2   '1'
 
#define FMT_SRO_OFF4   '2'
 
#define FMT_SRR_NONE   '0'
 
#define FMT_SRR_S2   '1'
 
#define FMT_SRR_S1_D   '2'
 
#define FMT_SRRS_NONE   '0'
 
#define FMT_SRRS_S2   '1'
 
#define FMT_SRRS_S1_D   '2'
 
#define FMT_SRRS_N   '3'
 
#define FMT_SSR_NONE   '0'
 
#define FMT_SSR_S2   '1'
 
#define FMT_SSR_S1   '2'
 
#define FMT_SSRO_NONE   '0'
 
#define FMT_SSRO_OFF4   '1'
 
#define FMT_SSRO_S1   '2'
 

Typedefs

typedef enum _tricore_opcode_arch_val tricore_isa
 
typedef enum _tricore_fmt tricore_fmt
 

Enumerations

enum  _tricore_opcode_arch_val {
  TRICORE_GENERIC = 0x00000000 , TRICORE_RIDER_A = 0x00000001 , TRICORE_RIDER_B = 0x00000002 , TRICORE_RIDER_D = TRICORE_RIDER_B ,
  TRICORE_V2 = 0x00000004 , TRICORE_PCP = 0x00000010 , TRICORE_PCP2 = 0x00000020
}
 
enum  _tricore_fmt {
  TRICORE_FMT_ABS , TRICORE_FMT_ABSB , TRICORE_FMT_B , TRICORE_FMT_BIT ,
  TRICORE_FMT_BO , TRICORE_FMT_BOL , TRICORE_FMT_BRC , TRICORE_FMT_BRN ,
  TRICORE_FMT_BRR , TRICORE_FMT_RC , TRICORE_FMT_RCPW , TRICORE_FMT_RCR ,
  TRICORE_FMT_RCRR , TRICORE_FMT_RCRW , TRICORE_FMT_RLC , TRICORE_FMT_RR ,
  TRICORE_FMT_RR1 , TRICORE_FMT_RR2 , TRICORE_FMT_RRPW , TRICORE_FMT_RRR ,
  TRICORE_FMT_RRR1 , TRICORE_FMT_RRR2 , TRICORE_FMT_RRRR , TRICORE_FMT_RRRW ,
  TRICORE_FMT_SYS , TRICORE_FMT_SB , TRICORE_FMT_SBC , TRICORE_FMT_SBR ,
  TRICORE_FMT_SBRN , TRICORE_FMT_SC , TRICORE_FMT_SLR , TRICORE_FMT_SLRO ,
  TRICORE_FMT_SR , TRICORE_FMT_SRC , TRICORE_FMT_SRO , TRICORE_FMT_SRR ,
  TRICORE_FMT_SRRS , TRICORE_FMT_SSR , TRICORE_FMT_SSRO , TRICORE_FMT_MAX
}
 

Functions

void tricore_init_arch_vars PARAMS ((unsigned long))
 

Variables

unsigned long tricore_mask_abs
 
unsigned long tricore_mask_absb
 
unsigned long tricore_mask_b
 
unsigned long tricore_mask_bit
 
unsigned long tricore_mask_bo
 
unsigned long tricore_mask_bol
 
unsigned long tricore_mask_brc
 
unsigned long tricore_mask_brn
 
unsigned long tricore_mask_brr
 
unsigned long tricore_mask_rc
 
unsigned long tricore_mask_rcpw
 
unsigned long tricore_mask_rcr
 
unsigned long tricore_mask_rcrr
 
unsigned long tricore_mask_rcrw
 
unsigned long tricore_mask_rlc
 
unsigned long tricore_mask_rr
 
unsigned long tricore_mask_rr1
 
unsigned long tricore_mask_rr2
 
unsigned long tricore_mask_rrpw
 
unsigned long tricore_mask_rrr
 
unsigned long tricore_mask_rrr1
 
unsigned long tricore_mask_rrr2
 
unsigned long tricore_mask_rrrr
 
unsigned long tricore_mask_rrrw
 
unsigned long tricore_mask_sys
 
unsigned long tricore_mask_sb
 
unsigned long tricore_mask_sbc
 
unsigned long tricore_mask_sbr
 
unsigned long tricore_mask_sbrn
 
unsigned long tricore_mask_sc
 
unsigned long tricore_mask_slr
 
unsigned long tricore_mask_slro
 
unsigned long tricore_mask_sr
 
unsigned long tricore_mask_src
 
unsigned long tricore_mask_sro
 
unsigned long tricore_mask_srr
 
unsigned long tricore_mask_srrs
 
unsigned long tricore_mask_ssr
 
unsigned long tricore_mask_ssro
 
unsigned long tricore_opmask []
 
struct tricore_opcode tricore_opcodes []
 
const int tricore_numopcodes
 
struct pcp_opcode pcp_opcodes []
 
const int pcp_numopcodes
 
const struct tricore_core_register tricore_sfrs []
 
const int tricore_numsfrs
 

Macro Definition Documentation

◆ bfd_mach_rider_2

#define bfd_mach_rider_2   0x0004

Definition at line 41 of file tricore.h.

◆ bfd_mach_rider_a

#define bfd_mach_rider_a   0x0001

Definition at line 38 of file tricore.h.

◆ bfd_mach_rider_b

#define bfd_mach_rider_b   0x0002

Definition at line 39 of file tricore.h.

◆ bfd_mach_rider_c

#define bfd_mach_rider_c   0x0003

Definition at line 40 of file tricore.h.

◆ bfd_mach_rider_d

#define bfd_mach_rider_d   0x0002

Definition at line 42 of file tricore.h.

◆ bfd_mach_rider_mask

#define bfd_mach_rider_mask   0x000f

Definition at line 43 of file tricore.h.

◆ F

#define F (   x)    TRICORE_FMT_ x

Definition at line 111 of file tricore.h.

◆ FMT_ABS_NONE

#define FMT_ABS_NONE   '0'

Definition at line 263 of file tricore.h.

◆ FMT_ABS_OFF18

#define FMT_ABS_OFF18   '1'

Definition at line 264 of file tricore.h.

◆ FMT_ABS_S1_D

#define FMT_ABS_S1_D   '2'

Definition at line 265 of file tricore.h.

◆ FMT_ABSB_B

#define FMT_ABSB_B   '2'

Definition at line 268 of file tricore.h.

◆ FMT_ABSB_BPOS3

#define FMT_ABSB_BPOS3   '3'

Definition at line 269 of file tricore.h.

◆ FMT_ABSB_NONE

#define FMT_ABSB_NONE   '0'

Definition at line 266 of file tricore.h.

◆ FMT_ABSB_OFF18

#define FMT_ABSB_OFF18   '1'

Definition at line 267 of file tricore.h.

◆ FMT_B_DISP24

#define FMT_B_DISP24   '1'

Definition at line 271 of file tricore.h.

◆ FMT_B_NONE

#define FMT_B_NONE   '0'

Definition at line 270 of file tricore.h.

◆ FMT_BIT_D

#define FMT_BIT_D   '1'

Definition at line 273 of file tricore.h.

◆ FMT_BIT_NONE

#define FMT_BIT_NONE   '0'

Definition at line 272 of file tricore.h.

◆ FMT_BIT_P1

#define FMT_BIT_P1   '3'

Definition at line 275 of file tricore.h.

◆ FMT_BIT_P2

#define FMT_BIT_P2   '2'

Definition at line 274 of file tricore.h.

◆ FMT_BIT_S1

#define FMT_BIT_S1   '5'

Definition at line 277 of file tricore.h.

◆ FMT_BIT_S2

#define FMT_BIT_S2   '4'

Definition at line 276 of file tricore.h.

◆ FMT_BO_NONE

#define FMT_BO_NONE   '0'

Definition at line 278 of file tricore.h.

◆ FMT_BO_OFF10

#define FMT_BO_OFF10   '1'

Definition at line 279 of file tricore.h.

◆ FMT_BO_S1_D

#define FMT_BO_S1_D   '3'

Definition at line 281 of file tricore.h.

◆ FMT_BO_S2

#define FMT_BO_S2   '2'

Definition at line 280 of file tricore.h.

◆ FMT_BOL_NONE

#define FMT_BOL_NONE   '0'

Definition at line 282 of file tricore.h.

◆ FMT_BOL_OFF16

#define FMT_BOL_OFF16   '1'

Definition at line 283 of file tricore.h.

◆ FMT_BOL_S1_D

#define FMT_BOL_S1_D   '3'

Definition at line 285 of file tricore.h.

◆ FMT_BOL_S2

#define FMT_BOL_S2   '2'

Definition at line 284 of file tricore.h.

◆ FMT_BRC_CONST4

#define FMT_BRC_CONST4   '2'

Definition at line 288 of file tricore.h.

◆ FMT_BRC_DISP15

#define FMT_BRC_DISP15   '1'

Definition at line 287 of file tricore.h.

◆ FMT_BRC_NONE

#define FMT_BRC_NONE   '0'

Definition at line 286 of file tricore.h.

◆ FMT_BRC_S1

#define FMT_BRC_S1   '3'

Definition at line 289 of file tricore.h.

◆ FMT_BRN_DISP15

#define FMT_BRN_DISP15   '1'

Definition at line 291 of file tricore.h.

◆ FMT_BRN_N

#define FMT_BRN_N   '2'

Definition at line 292 of file tricore.h.

◆ FMT_BRN_NONE

#define FMT_BRN_NONE   '0'

Definition at line 290 of file tricore.h.

◆ FMT_BRN_S1

#define FMT_BRN_S1   '3'

Definition at line 293 of file tricore.h.

◆ FMT_BRR_DISP15

#define FMT_BRR_DISP15   '1'

Definition at line 295 of file tricore.h.

◆ FMT_BRR_NONE

#define FMT_BRR_NONE   '0'

Definition at line 294 of file tricore.h.

◆ FMT_BRR_S1

#define FMT_BRR_S1   '3'

Definition at line 297 of file tricore.h.

◆ FMT_BRR_S2

#define FMT_BRR_S2   '2'

Definition at line 296 of file tricore.h.

◆ FMT_RC_CONST9

#define FMT_RC_CONST9   '2'

Definition at line 300 of file tricore.h.

◆ FMT_RC_D

#define FMT_RC_D   '1'

Definition at line 299 of file tricore.h.

◆ FMT_RC_NONE

#define FMT_RC_NONE   '0'

Definition at line 298 of file tricore.h.

◆ FMT_RC_S1

#define FMT_RC_S1   '3'

Definition at line 301 of file tricore.h.

◆ FMT_RCPW_CONST4

#define FMT_RCPW_CONST4   '4'

Definition at line 306 of file tricore.h.

◆ FMT_RCPW_D

#define FMT_RCPW_D   '1'

Definition at line 303 of file tricore.h.

◆ FMT_RCPW_NONE

#define FMT_RCPW_NONE   '0'

Definition at line 302 of file tricore.h.

◆ FMT_RCPW_P

#define FMT_RCPW_P   '2'

Definition at line 304 of file tricore.h.

◆ FMT_RCPW_S1

#define FMT_RCPW_S1   '5'

Definition at line 307 of file tricore.h.

◆ FMT_RCPW_W

#define FMT_RCPW_W   '3'

Definition at line 305 of file tricore.h.

◆ FMT_RCR_CONST9

#define FMT_RCR_CONST9   '3'

Definition at line 311 of file tricore.h.

◆ FMT_RCR_D

#define FMT_RCR_D   '1'

Definition at line 309 of file tricore.h.

◆ FMT_RCR_NONE

#define FMT_RCR_NONE   '0'

Definition at line 308 of file tricore.h.

◆ FMT_RCR_S1

#define FMT_RCR_S1   '4'

Definition at line 312 of file tricore.h.

◆ FMT_RCR_S3

#define FMT_RCR_S3   '2'

Definition at line 310 of file tricore.h.

◆ FMT_RCRR_CONST4

#define FMT_RCRR_CONST4   '3'

Definition at line 316 of file tricore.h.

◆ FMT_RCRR_D

#define FMT_RCRR_D   '1'

Definition at line 314 of file tricore.h.

◆ FMT_RCRR_NONE

#define FMT_RCRR_NONE   '0'

Definition at line 313 of file tricore.h.

◆ FMT_RCRR_S1

#define FMT_RCRR_S1   '4'

Definition at line 317 of file tricore.h.

◆ FMT_RCRR_S3

#define FMT_RCRR_S3   '2'

Definition at line 315 of file tricore.h.

◆ FMT_RCRW_CONST4

#define FMT_RCRW_CONST4   '4'

Definition at line 322 of file tricore.h.

◆ FMT_RCRW_D

#define FMT_RCRW_D   '1'

Definition at line 319 of file tricore.h.

◆ FMT_RCRW_NONE

#define FMT_RCRW_NONE   '0'

Definition at line 318 of file tricore.h.

◆ FMT_RCRW_S1

#define FMT_RCRW_S1   '5'

Definition at line 323 of file tricore.h.

◆ FMT_RCRW_S3

#define FMT_RCRW_S3   '2'

Definition at line 320 of file tricore.h.

◆ FMT_RCRW_W

#define FMT_RCRW_W   '3'

Definition at line 321 of file tricore.h.

◆ FMT_RLC_CONST16

#define FMT_RLC_CONST16   '2'

Definition at line 326 of file tricore.h.

◆ FMT_RLC_D

#define FMT_RLC_D   '1'

Definition at line 325 of file tricore.h.

◆ FMT_RLC_NONE

#define FMT_RLC_NONE   '0'

Definition at line 324 of file tricore.h.

◆ FMT_RLC_S1

#define FMT_RLC_S1   '3'

Definition at line 327 of file tricore.h.

◆ FMT_RR1_D

#define FMT_RR1_D   '1'

Definition at line 334 of file tricore.h.

◆ FMT_RR1_N

#define FMT_RR1_N   '2'

Definition at line 335 of file tricore.h.

◆ FMT_RR1_NONE

#define FMT_RR1_NONE   '0'

Definition at line 333 of file tricore.h.

◆ FMT_RR1_S1

#define FMT_RR1_S1   '4'

Definition at line 337 of file tricore.h.

◆ FMT_RR1_S2

#define FMT_RR1_S2   '3'

Definition at line 336 of file tricore.h.

◆ FMT_RR2_D

#define FMT_RR2_D   '1'

Definition at line 339 of file tricore.h.

◆ FMT_RR2_NONE

#define FMT_RR2_NONE   '0'

Definition at line 338 of file tricore.h.

◆ FMT_RR2_S1

#define FMT_RR2_S1   '3'

Definition at line 341 of file tricore.h.

◆ FMT_RR2_S2

#define FMT_RR2_S2   '2'

Definition at line 340 of file tricore.h.

◆ FMT_RR_D

#define FMT_RR_D   '1'

Definition at line 329 of file tricore.h.

◆ FMT_RR_N

#define FMT_RR_N   '2'

Definition at line 330 of file tricore.h.

◆ FMT_RR_NONE

#define FMT_RR_NONE   '0'

Definition at line 328 of file tricore.h.

◆ FMT_RR_S1

#define FMT_RR_S1   '4'

Definition at line 332 of file tricore.h.

◆ FMT_RR_S2

#define FMT_RR_S2   '3'

Definition at line 331 of file tricore.h.

◆ FMT_RRPW_D

#define FMT_RRPW_D   '1'

Definition at line 343 of file tricore.h.

◆ FMT_RRPW_NONE

#define FMT_RRPW_NONE   '0'

Definition at line 342 of file tricore.h.

◆ FMT_RRPW_P

#define FMT_RRPW_P   '2'

Definition at line 344 of file tricore.h.

◆ FMT_RRPW_S1

#define FMT_RRPW_S1   '5'

Definition at line 347 of file tricore.h.

◆ FMT_RRPW_S2

#define FMT_RRPW_S2   '4'

Definition at line 346 of file tricore.h.

◆ FMT_RRPW_W

#define FMT_RRPW_W   '3'

Definition at line 345 of file tricore.h.

◆ FMT_RRR1_D

#define FMT_RRR1_D   '1'

Definition at line 355 of file tricore.h.

◆ FMT_RRR1_N

#define FMT_RRR1_N   '3'

Definition at line 357 of file tricore.h.

◆ FMT_RRR1_NONE

#define FMT_RRR1_NONE   '0'

Definition at line 354 of file tricore.h.

◆ FMT_RRR1_S1

#define FMT_RRR1_S1   '5'

Definition at line 359 of file tricore.h.

◆ FMT_RRR1_S2

#define FMT_RRR1_S2   '4'

Definition at line 358 of file tricore.h.

◆ FMT_RRR1_S3

#define FMT_RRR1_S3   '2'

Definition at line 356 of file tricore.h.

◆ FMT_RRR2_D

#define FMT_RRR2_D   '1'

Definition at line 361 of file tricore.h.

◆ FMT_RRR2_NONE

#define FMT_RRR2_NONE   '0'

Definition at line 360 of file tricore.h.

◆ FMT_RRR2_S1

#define FMT_RRR2_S1   '4'

Definition at line 364 of file tricore.h.

◆ FMT_RRR2_S2

#define FMT_RRR2_S2   '3'

Definition at line 363 of file tricore.h.

◆ FMT_RRR2_S3

#define FMT_RRR2_S3   '2'

Definition at line 362 of file tricore.h.

◆ FMT_RRR_D

#define FMT_RRR_D   '1'

Definition at line 349 of file tricore.h.

◆ FMT_RRR_N

#define FMT_RRR_N   '3'

Definition at line 351 of file tricore.h.

◆ FMT_RRR_NONE

#define FMT_RRR_NONE   '0'

Definition at line 348 of file tricore.h.

◆ FMT_RRR_S1

#define FMT_RRR_S1   '5'

Definition at line 353 of file tricore.h.

◆ FMT_RRR_S2

#define FMT_RRR_S2   '4'

Definition at line 352 of file tricore.h.

◆ FMT_RRR_S3

#define FMT_RRR_S3   '2'

Definition at line 350 of file tricore.h.

◆ FMT_RRRR_D

#define FMT_RRRR_D   '1'

Definition at line 366 of file tricore.h.

◆ FMT_RRRR_NONE

#define FMT_RRRR_NONE   '0'

Definition at line 365 of file tricore.h.

◆ FMT_RRRR_S1

#define FMT_RRRR_S1   '4'

Definition at line 369 of file tricore.h.

◆ FMT_RRRR_S2

#define FMT_RRRR_S2   '3'

Definition at line 368 of file tricore.h.

◆ FMT_RRRR_S3

#define FMT_RRRR_S3   '2'

Definition at line 367 of file tricore.h.

◆ FMT_RRRW_D

#define FMT_RRRW_D   '1'

Definition at line 371 of file tricore.h.

◆ FMT_RRRW_NONE

#define FMT_RRRW_NONE   '0'

Definition at line 370 of file tricore.h.

◆ FMT_RRRW_S1

#define FMT_RRRW_S1   '5'

Definition at line 375 of file tricore.h.

◆ FMT_RRRW_S2

#define FMT_RRRW_S2   '4'

Definition at line 374 of file tricore.h.

◆ FMT_RRRW_S3

#define FMT_RRRW_S3   '2'

Definition at line 372 of file tricore.h.

◆ FMT_RRRW_W

#define FMT_RRRW_W   '3'

Definition at line 373 of file tricore.h.

◆ FMT_SB_DISP8

#define FMT_SB_DISP8   '1'

Definition at line 379 of file tricore.h.

◆ FMT_SB_NONE

#define FMT_SB_NONE   '0'

Definition at line 378 of file tricore.h.

◆ FMT_SBC_CONST4

#define FMT_SBC_CONST4   '1'

Definition at line 381 of file tricore.h.

◆ FMT_SBC_DISP4

#define FMT_SBC_DISP4   '2'

Definition at line 382 of file tricore.h.

◆ FMT_SBC_NONE

#define FMT_SBC_NONE   '0'

Definition at line 380 of file tricore.h.

◆ FMT_SBR_DISP4

#define FMT_SBR_DISP4   '2'

Definition at line 385 of file tricore.h.

◆ FMT_SBR_NONE

#define FMT_SBR_NONE   '0'

Definition at line 383 of file tricore.h.

◆ FMT_SBR_S2

#define FMT_SBR_S2   '1'

Definition at line 384 of file tricore.h.

◆ FMT_SBRN_DISP4

#define FMT_SBRN_DISP4   '2'

Definition at line 388 of file tricore.h.

◆ FMT_SBRN_N

#define FMT_SBRN_N   '1'

Definition at line 387 of file tricore.h.

◆ FMT_SBRN_NONE

#define FMT_SBRN_NONE   '0'

Definition at line 386 of file tricore.h.

◆ FMT_SC_CONST8

#define FMT_SC_CONST8   '1'

Definition at line 390 of file tricore.h.

◆ FMT_SC_NONE

#define FMT_SC_NONE   '0'

Definition at line 389 of file tricore.h.

◆ FMT_SLR_D

#define FMT_SLR_D   '2'

Definition at line 393 of file tricore.h.

◆ FMT_SLR_NONE

#define FMT_SLR_NONE   '0'

Definition at line 391 of file tricore.h.

◆ FMT_SLR_S2

#define FMT_SLR_S2   '1'

Definition at line 392 of file tricore.h.

◆ FMT_SLRO_D

#define FMT_SLRO_D   '2'

Definition at line 396 of file tricore.h.

◆ FMT_SLRO_NONE

#define FMT_SLRO_NONE   '0'

Definition at line 394 of file tricore.h.

◆ FMT_SLRO_OFF4

#define FMT_SLRO_OFF4   '1'

Definition at line 395 of file tricore.h.

◆ FMT_SR_NONE

#define FMT_SR_NONE   '0'

Definition at line 397 of file tricore.h.

◆ FMT_SR_S1_D

#define FMT_SR_S1_D   '1'

Definition at line 398 of file tricore.h.

◆ FMT_SRC_CONST4

#define FMT_SRC_CONST4   '1'

Definition at line 400 of file tricore.h.

◆ FMT_SRC_NONE

#define FMT_SRC_NONE   '0'

Definition at line 399 of file tricore.h.

◆ FMT_SRC_S1_D

#define FMT_SRC_S1_D   '2'

Definition at line 401 of file tricore.h.

◆ FMT_SRO_NONE

#define FMT_SRO_NONE   '0'

Definition at line 402 of file tricore.h.

◆ FMT_SRO_OFF4

#define FMT_SRO_OFF4   '2'

Definition at line 404 of file tricore.h.

◆ FMT_SRO_S2

#define FMT_SRO_S2   '1'

Definition at line 403 of file tricore.h.

◆ FMT_SRR_NONE

#define FMT_SRR_NONE   '0'

Definition at line 405 of file tricore.h.

◆ FMT_SRR_S1_D

#define FMT_SRR_S1_D   '2'

Definition at line 407 of file tricore.h.

◆ FMT_SRR_S2

#define FMT_SRR_S2   '1'

Definition at line 406 of file tricore.h.

◆ FMT_SRRS_N

#define FMT_SRRS_N   '3'

Definition at line 411 of file tricore.h.

◆ FMT_SRRS_NONE

#define FMT_SRRS_NONE   '0'

Definition at line 408 of file tricore.h.

◆ FMT_SRRS_S1_D

#define FMT_SRRS_S1_D   '2'

Definition at line 410 of file tricore.h.

◆ FMT_SRRS_S2

#define FMT_SRRS_S2   '1'

Definition at line 409 of file tricore.h.

◆ FMT_SSR_NONE

#define FMT_SSR_NONE   '0'

Definition at line 412 of file tricore.h.

◆ FMT_SSR_S1

#define FMT_SSR_S1   '2'

Definition at line 414 of file tricore.h.

◆ FMT_SSR_S2

#define FMT_SSR_S2   '1'

Definition at line 413 of file tricore.h.

◆ FMT_SSRO_NONE

#define FMT_SSRO_NONE   '0'

Definition at line 415 of file tricore.h.

◆ FMT_SSRO_OFF4

#define FMT_SSRO_OFF4   '1'

Definition at line 416 of file tricore.h.

◆ FMT_SSRO_S1

#define FMT_SSRO_S1   '2'

Definition at line 417 of file tricore.h.

◆ FMT_SYS_NONE

#define FMT_SYS_NONE   '0'

Definition at line 376 of file tricore.h.

◆ FMT_SYS_S1_D

#define FMT_SYS_S1_D   '1'

Definition at line 377 of file tricore.h.

◆ SEC_ARCH_BIT_0

#define SEC_ARCH_BIT_0   0x008

Definition at line 45 of file tricore.h.

◆ TRICORE_RIDER_B_DN

#define TRICORE_RIDER_B_DN   TRICORE_RIDER_B

Definition at line 52 of file tricore.h.

◆ TRICORE_RIDER_B_UP

#define TRICORE_RIDER_B_UP   (TRICORE_RIDER_B | TRICORE_RIDER_D_UP)

Definition at line 50 of file tricore.h.

◆ TRICORE_RIDER_D_DN

#define TRICORE_RIDER_D_DN   (TRICORE_RIDER_D | TRICORE_RIDER_B_DN)

Definition at line 53 of file tricore.h.

◆ TRICORE_RIDER_D_UP

#define TRICORE_RIDER_D_UP   (TRICORE_RIDER_D | TRICORE_V2_UP)

Definition at line 49 of file tricore.h.

◆ TRICORE_V2_DN

#define TRICORE_V2_DN   (TRICORE_V2 | TRICORE_RIDER_D_DN)

Definition at line 54 of file tricore.h.

◆ TRICORE_V2_UP

#define TRICORE_V2_UP   TRICORE_V2

Definition at line 48 of file tricore.h.

Typedef Documentation

◆ tricore_fmt

typedef enum _tricore_fmt tricore_fmt

◆ tricore_isa

Enumeration Type Documentation

◆ _tricore_fmt

Enumerator
TRICORE_FMT_ABS 
TRICORE_FMT_ABSB 
TRICORE_FMT_B 
TRICORE_FMT_BIT 
TRICORE_FMT_BO 
TRICORE_FMT_BOL 
TRICORE_FMT_BRC 
TRICORE_FMT_BRN 
TRICORE_FMT_BRR 
TRICORE_FMT_RC 
TRICORE_FMT_RCPW 
TRICORE_FMT_RCR 
TRICORE_FMT_RCRR 
TRICORE_FMT_RCRW 
TRICORE_FMT_RLC 
TRICORE_FMT_RR 
TRICORE_FMT_RR1 
TRICORE_FMT_RR2 
TRICORE_FMT_RRPW 
TRICORE_FMT_RRR 
TRICORE_FMT_RRR1 
TRICORE_FMT_RRR2 
TRICORE_FMT_RRRR 
TRICORE_FMT_RRRW 
TRICORE_FMT_SYS 
TRICORE_FMT_SB 
TRICORE_FMT_SBC 
TRICORE_FMT_SBR 
TRICORE_FMT_SBRN 
TRICORE_FMT_SC 
TRICORE_FMT_SLR 
TRICORE_FMT_SLRO 
TRICORE_FMT_SR 
TRICORE_FMT_SRC 
TRICORE_FMT_SRO 
TRICORE_FMT_SRR 
TRICORE_FMT_SRRS 
TRICORE_FMT_SSR 
TRICORE_FMT_SSRO 
TRICORE_FMT_MAX 

Definition at line 58 of file tricore.h.

58  {
59  /* 32-bit formats */
60 
86 
87  /* 16-bit formats */
88 
103  TRICORE_FMT_MAX /* Sentinel. */
104 } tricore_fmt;
@ TRICORE_FMT_RLC
Definition: tricore.h:75
@ TRICORE_FMT_BO
Definition: tricore.h:65
@ TRICORE_FMT_SRC
Definition: tricore.h:97
@ TRICORE_FMT_SRO
Definition: tricore.h:98
@ TRICORE_FMT_SYS
Definition: tricore.h:85
@ TRICORE_FMT_SBRN
Definition: tricore.h:92
@ TRICORE_FMT_RR
Definition: tricore.h:76
@ TRICORE_FMT_RRPW
Definition: tricore.h:79
@ TRICORE_FMT_MAX
Definition: tricore.h:103
@ TRICORE_FMT_RR1
Definition: tricore.h:77
@ TRICORE_FMT_SSR
Definition: tricore.h:101
@ TRICORE_FMT_RRRR
Definition: tricore.h:83
@ TRICORE_FMT_RRR2
Definition: tricore.h:82
@ TRICORE_FMT_SLR
Definition: tricore.h:94
@ TRICORE_FMT_ABS
Definition: tricore.h:61
@ TRICORE_FMT_RCR
Definition: tricore.h:72
@ TRICORE_FMT_RRR
Definition: tricore.h:80
@ TRICORE_FMT_SR
Definition: tricore.h:96
@ TRICORE_FMT_RCRW
Definition: tricore.h:74
@ TRICORE_FMT_SSRO
Definition: tricore.h:102
@ TRICORE_FMT_SLRO
Definition: tricore.h:95
@ TRICORE_FMT_SC
Definition: tricore.h:93
@ TRICORE_FMT_RRRW
Definition: tricore.h:84
@ TRICORE_FMT_BOL
Definition: tricore.h:66
@ TRICORE_FMT_BRN
Definition: tricore.h:68
@ TRICORE_FMT_B
Definition: tricore.h:63
@ TRICORE_FMT_RCPW
Definition: tricore.h:71
@ TRICORE_FMT_SBC
Definition: tricore.h:90
@ TRICORE_FMT_RRR1
Definition: tricore.h:81
@ TRICORE_FMT_BRR
Definition: tricore.h:69
@ TRICORE_FMT_RCRR
Definition: tricore.h:73
@ TRICORE_FMT_ABSB
Definition: tricore.h:62
@ TRICORE_FMT_RR2
Definition: tricore.h:78
@ TRICORE_FMT_SRR
Definition: tricore.h:99
@ TRICORE_FMT_RC
Definition: tricore.h:70
@ TRICORE_FMT_SRRS
Definition: tricore.h:100
@ TRICORE_FMT_BRC
Definition: tricore.h:67
@ TRICORE_FMT_BIT
Definition: tricore.h:64
@ TRICORE_FMT_SBR
Definition: tricore.h:91
@ TRICORE_FMT_SB
Definition: tricore.h:89
enum _tricore_fmt tricore_fmt

◆ _tricore_opcode_arch_val

Enumerator
TRICORE_GENERIC 
TRICORE_RIDER_A 
TRICORE_RIDER_B 
TRICORE_RIDER_D 
TRICORE_V2 
TRICORE_PCP 
TRICORE_PCP2 

Definition at line 28 of file tricore.h.

28  {
29  TRICORE_GENERIC = 0x00000000,
30  TRICORE_RIDER_A = 0x00000001,
31  TRICORE_RIDER_B = 0x00000002,
33  TRICORE_V2 = 0x00000004,
34  TRICORE_PCP = 0x00000010,
35  TRICORE_PCP2 = 0x00000020
36 } tricore_isa;
@ TRICORE_RIDER_A
Definition: tricore.h:30
@ TRICORE_PCP2
Definition: tricore.h:35
@ TRICORE_RIDER_B
Definition: tricore.h:31
@ TRICORE_V2
Definition: tricore.h:33
@ TRICORE_PCP
Definition: tricore.h:34
@ TRICORE_RIDER_D
Definition: tricore.h:32
@ TRICORE_GENERIC
Definition: tricore.h:29
enum _tricore_opcode_arch_val tricore_isa

Function Documentation

◆ PARAMS()

void tricore_init_arch_vars PARAMS ( (unsigned long )

Variable Documentation

◆ pcp_numopcodes

const int pcp_numopcodes
extern

Definition at line 2514 of file tricore-opc.c.

◆ pcp_opcodes

struct pcp_opcode pcp_opcodes[]
extern

Definition at line 2378 of file tricore-opc.c.

Referenced by init_hash_tables().

◆ tricore_mask_abs

unsigned long tricore_mask_abs
extern

Definition at line 34 of file cpu-tricore.c.

Referenced by tricore_init_arch_vars().

◆ tricore_mask_absb

unsigned long tricore_mask_absb
extern

Definition at line 35 of file cpu-tricore.c.

Referenced by tricore_init_arch_vars().

◆ tricore_mask_b

unsigned long tricore_mask_b
extern

Definition at line 36 of file cpu-tricore.c.

Referenced by tricore_init_arch_vars().

◆ tricore_mask_bit

unsigned long tricore_mask_bit
extern

Definition at line 37 of file cpu-tricore.c.

Referenced by tricore_init_arch_vars().

◆ tricore_mask_bo

unsigned long tricore_mask_bo
extern

Definition at line 38 of file cpu-tricore.c.

Referenced by tricore_init_arch_vars().

◆ tricore_mask_bol

unsigned long tricore_mask_bol
extern

Definition at line 39 of file cpu-tricore.c.

Referenced by tricore_init_arch_vars().

◆ tricore_mask_brc

unsigned long tricore_mask_brc
extern

Definition at line 40 of file cpu-tricore.c.

Referenced by tricore_init_arch_vars().

◆ tricore_mask_brn

unsigned long tricore_mask_brn
extern

Definition at line 41 of file cpu-tricore.c.

Referenced by tricore_init_arch_vars().

◆ tricore_mask_brr

unsigned long tricore_mask_brr
extern

Definition at line 42 of file cpu-tricore.c.

Referenced by tricore_init_arch_vars().

◆ tricore_mask_rc

unsigned long tricore_mask_rc
extern

Definition at line 43 of file cpu-tricore.c.

Referenced by tricore_init_arch_vars().

◆ tricore_mask_rcpw

unsigned long tricore_mask_rcpw
extern

Definition at line 44 of file cpu-tricore.c.

Referenced by tricore_init_arch_vars().

◆ tricore_mask_rcr

unsigned long tricore_mask_rcr
extern

Definition at line 45 of file cpu-tricore.c.

Referenced by tricore_init_arch_vars().

◆ tricore_mask_rcrr

unsigned long tricore_mask_rcrr
extern

Definition at line 46 of file cpu-tricore.c.

Referenced by tricore_init_arch_vars().

◆ tricore_mask_rcrw

unsigned long tricore_mask_rcrw
extern

Definition at line 47 of file cpu-tricore.c.

Referenced by tricore_init_arch_vars().

◆ tricore_mask_rlc

unsigned long tricore_mask_rlc
extern

Definition at line 48 of file cpu-tricore.c.

Referenced by tricore_init_arch_vars().

◆ tricore_mask_rr

unsigned long tricore_mask_rr
extern

Definition at line 49 of file cpu-tricore.c.

Referenced by tricore_init_arch_vars().

◆ tricore_mask_rr1

unsigned long tricore_mask_rr1
extern

Definition at line 50 of file cpu-tricore.c.

Referenced by tricore_init_arch_vars().

◆ tricore_mask_rr2

unsigned long tricore_mask_rr2
extern

Definition at line 51 of file cpu-tricore.c.

Referenced by tricore_init_arch_vars().

◆ tricore_mask_rrpw

unsigned long tricore_mask_rrpw
extern

Definition at line 52 of file cpu-tricore.c.

Referenced by tricore_init_arch_vars().

◆ tricore_mask_rrr

unsigned long tricore_mask_rrr
extern

Definition at line 53 of file cpu-tricore.c.

Referenced by tricore_init_arch_vars().

◆ tricore_mask_rrr1

unsigned long tricore_mask_rrr1
extern

Definition at line 54 of file cpu-tricore.c.

Referenced by tricore_init_arch_vars().

◆ tricore_mask_rrr2

unsigned long tricore_mask_rrr2
extern

Definition at line 55 of file cpu-tricore.c.

Referenced by tricore_init_arch_vars().

◆ tricore_mask_rrrr

unsigned long tricore_mask_rrrr
extern

Definition at line 56 of file cpu-tricore.c.

Referenced by tricore_init_arch_vars().

◆ tricore_mask_rrrw

unsigned long tricore_mask_rrrw
extern

Definition at line 57 of file cpu-tricore.c.

Referenced by tricore_init_arch_vars().

◆ tricore_mask_sb

unsigned long tricore_mask_sb
extern

Definition at line 59 of file cpu-tricore.c.

Referenced by tricore_init_arch_vars().

◆ tricore_mask_sbc

unsigned long tricore_mask_sbc
extern

Definition at line 60 of file cpu-tricore.c.

Referenced by tricore_init_arch_vars().

◆ tricore_mask_sbr

unsigned long tricore_mask_sbr
extern

Definition at line 61 of file cpu-tricore.c.

Referenced by tricore_init_arch_vars().

◆ tricore_mask_sbrn

unsigned long tricore_mask_sbrn
extern

Definition at line 62 of file cpu-tricore.c.

Referenced by tricore_init_arch_vars().

◆ tricore_mask_sc

unsigned long tricore_mask_sc
extern

Definition at line 63 of file cpu-tricore.c.

Referenced by tricore_init_arch_vars().

◆ tricore_mask_slr

unsigned long tricore_mask_slr
extern

Definition at line 64 of file cpu-tricore.c.

Referenced by tricore_init_arch_vars().

◆ tricore_mask_slro

unsigned long tricore_mask_slro
extern

Definition at line 65 of file cpu-tricore.c.

Referenced by tricore_init_arch_vars().

◆ tricore_mask_sr

unsigned long tricore_mask_sr
extern

Definition at line 66 of file cpu-tricore.c.

Referenced by tricore_init_arch_vars().

◆ tricore_mask_src

unsigned long tricore_mask_src
extern

Definition at line 67 of file cpu-tricore.c.

Referenced by tricore_init_arch_vars().

◆ tricore_mask_sro

unsigned long tricore_mask_sro
extern

Definition at line 68 of file cpu-tricore.c.

Referenced by tricore_init_arch_vars().

◆ tricore_mask_srr

unsigned long tricore_mask_srr
extern

Definition at line 69 of file cpu-tricore.c.

Referenced by tricore_init_arch_vars().

◆ tricore_mask_srrs

unsigned long tricore_mask_srrs
extern

Definition at line 70 of file cpu-tricore.c.

Referenced by tricore_init_arch_vars().

◆ tricore_mask_ssr

unsigned long tricore_mask_ssr
extern

Definition at line 71 of file cpu-tricore.c.

Referenced by tricore_init_arch_vars().

◆ tricore_mask_ssro

unsigned long tricore_mask_ssro
extern

Definition at line 72 of file cpu-tricore.c.

Referenced by tricore_init_arch_vars().

◆ tricore_mask_sys

unsigned long tricore_mask_sys
extern

Definition at line 58 of file cpu-tricore.c.

Referenced by tricore_init_arch_vars().

◆ tricore_numopcodes

const int tricore_numopcodes
extern

Definition at line 2378 of file tricore-opc.c.

◆ tricore_numsfrs

const int tricore_numsfrs
extern

Definition at line 301 of file tricore-opc.c.

◆ tricore_opcodes

struct tricore_opcode tricore_opcodes[]
extern

Definition at line 301 of file tricore-opc.c.

Referenced by init_hash_tables().

◆ tricore_opmask

unsigned long tricore_opmask
extern

Definition at line 177 of file tricore.h.

Referenced by decode_tricore_insn(), and tricore_init_arch_vars().

◆ tricore_sfrs

const struct tricore_core_register tricore_sfrs[]
extern

Definition at line 1 of file tricore-opc.c.

Referenced by init_hash_tables().