Rizin
unix-like reverse engineering framework and cli tools
xtensa.h File Reference
#include "elf/reloc-macros.h"

Go to the source code of this file.

Classes

struct  property_table_entry_t
 

Macros

#define EF_XTENSA_MACH   0x0000000f
 
#define E_XTENSA_MACH   0x00000000
 
#define EF_XTENSA_XT_INSN   0x00000100
 
#define EF_XTENSA_XT_LIT   0x00000200
 
#define DT_XTENSA_GOT_LOC_OFF   0x70000000
 
#define DT_XTENSA_GOT_LOC_SZ   0x70000001
 
#define XTENSA_INSN_SEC_NAME   ".xt.insn"
 
#define XTENSA_LIT_SEC_NAME   ".xt.lit"
 
#define XTENSA_PROP_SEC_NAME   ".xt.prop"
 
#define XTENSA_PROP_LITERAL   0x00000001
 
#define XTENSA_PROP_INSN   0x00000002
 
#define XTENSA_PROP_DATA   0x00000004
 
#define XTENSA_PROP_UNREACHABLE   0x00000008
 
#define XTENSA_PROP_INSN_LOOP_TARGET   0x00000010
 
#define XTENSA_PROP_INSN_BRANCH_TARGET   0x00000020
 
#define XTENSA_PROP_INSN_NO_DENSITY   0x00000040
 
#define XTENSA_PROP_INSN_NO_REORDER   0x00000080
 
#define XTENSA_PROP_NO_TRANSFORM   0x00000100
 
#define XTENSA_PROP_BT_ALIGN_MASK   0x00000600
 
#define XTENSA_PROP_BT_ALIGN_NONE   0x0
 
#define XTENSA_PROP_BT_ALIGN_LOW   0x1
 
#define XTENSA_PROP_BT_ALIGN_HIGH   0x2
 
#define XTENSA_PROP_BT_ALIGN_REQUIRE   0x3
 
#define GET_XTENSA_PROP_BT_ALIGN(flag)    (((unsigned)((flag) & (XTENSA_PROP_BT_ALIGN_MASK))) >> 9)
 
#define SET_XTENSA_PROP_BT_ALIGN(flag, align)
 
#define XTENSA_PROP_ALIGN   0x00000800
 
#define XTENSA_PROP_ALIGNMENT_MASK   0x0001f000
 
#define GET_XTENSA_PROP_ALIGNMENT(flag)    (((unsigned)((flag) & (XTENSA_PROP_ALIGNMENT_MASK))) >> 12)
 
#define SET_XTENSA_PROP_ALIGNMENT(flag, align)
 
#define XTENSA_PROP_INSN_ABSLIT   0x00020000
 

Typedefs

typedef struct property_table_entry_t property_table_entry
 

Macro Definition Documentation

◆ DT_XTENSA_GOT_LOC_OFF

#define DT_XTENSA_GOT_LOC_OFF   0x70000000

Definition at line 108 of file xtensa.h.

◆ DT_XTENSA_GOT_LOC_SZ

#define DT_XTENSA_GOT_LOC_SZ   0x70000001

Definition at line 111 of file xtensa.h.

◆ E_XTENSA_MACH

#define E_XTENSA_MACH   0x00000000

Definition at line 97 of file xtensa.h.

◆ EF_XTENSA_MACH

#define EF_XTENSA_MACH   0x0000000f

Definition at line 94 of file xtensa.h.

◆ EF_XTENSA_XT_INSN

#define EF_XTENSA_XT_INSN   0x00000100

Definition at line 102 of file xtensa.h.

◆ EF_XTENSA_XT_LIT

#define EF_XTENSA_XT_LIT   0x00000200

Definition at line 103 of file xtensa.h.

◆ GET_XTENSA_PROP_ALIGNMENT

#define GET_XTENSA_PROP_ALIGNMENT (   flag)     (((unsigned)((flag) & (XTENSA_PROP_ALIGNMENT_MASK))) >> 12)

Definition at line 200 of file xtensa.h.

◆ GET_XTENSA_PROP_BT_ALIGN

#define GET_XTENSA_PROP_BT_ALIGN (   flag)     (((unsigned)((flag) & (XTENSA_PROP_BT_ALIGN_MASK))) >> 9)

Definition at line 179 of file xtensa.h.

◆ SET_XTENSA_PROP_ALIGNMENT

#define SET_XTENSA_PROP_ALIGNMENT (   flag,
  align 
)
Value:
(((flag) & (~XTENSA_PROP_ALIGNMENT_MASK)) | \
(((align) << 12) & XTENSA_PROP_ALIGNMENT_MASK))
#define XTENSA_PROP_ALIGNMENT_MASK
Definition: xtensa.h:198

Definition at line 202 of file xtensa.h.

◆ SET_XTENSA_PROP_BT_ALIGN

#define SET_XTENSA_PROP_BT_ALIGN (   flag,
  align 
)
Value:
(((flag) & (~XTENSA_PROP_BT_ALIGN_MASK)) | \
(((align) << 9) & XTENSA_PROP_BT_ALIGN_MASK))
#define XTENSA_PROP_BT_ALIGN_MASK
Definition: xtensa.h:168

Definition at line 181 of file xtensa.h.

◆ XTENSA_INSN_SEC_NAME

#define XTENSA_INSN_SEC_NAME   ".xt.insn"

Definition at line 121 of file xtensa.h.

◆ XTENSA_LIT_SEC_NAME

#define XTENSA_LIT_SEC_NAME   ".xt.lit"

Definition at line 122 of file xtensa.h.

◆ XTENSA_PROP_ALIGN

#define XTENSA_PROP_ALIGN   0x00000800

Definition at line 196 of file xtensa.h.

◆ XTENSA_PROP_ALIGNMENT_MASK

#define XTENSA_PROP_ALIGNMENT_MASK   0x0001f000

Definition at line 198 of file xtensa.h.

◆ XTENSA_PROP_BT_ALIGN_HIGH

#define XTENSA_PROP_BT_ALIGN_HIGH   0x2

Definition at line 175 of file xtensa.h.

◆ XTENSA_PROP_BT_ALIGN_LOW

#define XTENSA_PROP_BT_ALIGN_LOW   0x1

Definition at line 173 of file xtensa.h.

◆ XTENSA_PROP_BT_ALIGN_MASK

#define XTENSA_PROP_BT_ALIGN_MASK   0x00000600

Definition at line 168 of file xtensa.h.

◆ XTENSA_PROP_BT_ALIGN_NONE

#define XTENSA_PROP_BT_ALIGN_NONE   0x0

Definition at line 171 of file xtensa.h.

◆ XTENSA_PROP_BT_ALIGN_REQUIRE

#define XTENSA_PROP_BT_ALIGN_REQUIRE   0x3

Definition at line 177 of file xtensa.h.

◆ XTENSA_PROP_DATA

#define XTENSA_PROP_DATA   0x00000004

Definition at line 143 of file xtensa.h.

◆ XTENSA_PROP_INSN

#define XTENSA_PROP_INSN   0x00000002

Definition at line 142 of file xtensa.h.

◆ XTENSA_PROP_INSN_ABSLIT

#define XTENSA_PROP_INSN_ABSLIT   0x00020000

Definition at line 206 of file xtensa.h.

◆ XTENSA_PROP_INSN_BRANCH_TARGET

#define XTENSA_PROP_INSN_BRANCH_TARGET   0x00000020

Definition at line 147 of file xtensa.h.

◆ XTENSA_PROP_INSN_LOOP_TARGET

#define XTENSA_PROP_INSN_LOOP_TARGET   0x00000010

Definition at line 146 of file xtensa.h.

◆ XTENSA_PROP_INSN_NO_DENSITY

#define XTENSA_PROP_INSN_NO_DENSITY   0x00000040

Definition at line 149 of file xtensa.h.

◆ XTENSA_PROP_INSN_NO_REORDER

#define XTENSA_PROP_INSN_NO_REORDER   0x00000080

Definition at line 150 of file xtensa.h.

◆ XTENSA_PROP_LITERAL

#define XTENSA_PROP_LITERAL   0x00000001

Definition at line 141 of file xtensa.h.

◆ XTENSA_PROP_NO_TRANSFORM

#define XTENSA_PROP_NO_TRANSFORM   0x00000100

Definition at line 153 of file xtensa.h.

◆ XTENSA_PROP_SEC_NAME

#define XTENSA_PROP_SEC_NAME   ".xt.prop"

Definition at line 123 of file xtensa.h.

◆ XTENSA_PROP_UNREACHABLE

#define XTENSA_PROP_UNREACHABLE   0x00000008

Definition at line 144 of file xtensa.h.

Typedef Documentation

◆ property_table_entry