Rizin
unix-like reverse engineering framework and cli tools
xtensa-isa-internal.h File Reference

Go to the source code of this file.

Classes

struct  xtensa_format_internal_struct
 
struct  xtensa_slot_internal_struct
 
struct  xtensa_operand_internal_struct
 
struct  xtensa_arg_internal_struct
 
struct  xtensa_iclass_internal_struct
 
struct  xtensa_opcode_internal_struct
 
struct  xtensa_regfile_internal_struct
 
struct  xtensa_interface_internal_struct
 
struct  xtensa_funcUnit_internal_struct
 
struct  xtensa_state_internal_struct
 
struct  xtensa_sysreg_internal_struct
 
struct  xtensa_lookup_entry_struct
 
struct  xtensa_isa_internal_struct
 

Macros

#define XTENSA_OPERAND_IS_REGISTER   0x00000001
 
#define XTENSA_OPERAND_IS_PCRELATIVE   0x00000002
 
#define XTENSA_OPERAND_IS_INVISIBLE   0x00000004
 
#define XTENSA_OPERAND_IS_UNKNOWN   0x00000008
 
#define XTENSA_OPCODE_IS_BRANCH   0x00000001
 
#define XTENSA_OPCODE_IS_JUMP   0x00000002
 
#define XTENSA_OPCODE_IS_LOOP   0x00000004
 
#define XTENSA_OPCODE_IS_CALL   0x00000008
 
#define XTENSA_STATE_IS_EXPORTED   0x00000001
 
#define XTENSA_STATE_IS_SHARED_OR   0x00000002
 
#define XTENSA_INTERFACE_HAS_SIDE_EFFECT   0x00000001
 

Typedefs

typedef void(* xtensa_format_encode_fn) (xtensa_insnbuf)
 
typedef void(* xtensa_get_slot_fn) (const xtensa_insnbuf, xtensa_insnbuf)
 
typedef void(* xtensa_set_slot_fn) (xtensa_insnbuf, const xtensa_insnbuf)
 
typedef int(* xtensa_opcode_decode_fn) (const xtensa_insnbuf)
 
typedef uint32(* xtensa_get_field_fn) (const xtensa_insnbuf)
 
typedef void(* xtensa_set_field_fn) (xtensa_insnbuf, uint32)
 
typedef int(* xtensa_immed_decode_fn) (uint32 *)
 
typedef int(* xtensa_immed_encode_fn) (uint32 *)
 
typedef int(* xtensa_do_reloc_fn) (uint32 *, uint32)
 
typedef int(* xtensa_undo_reloc_fn) (uint32 *, uint32)
 
typedef void(* xtensa_opcode_encode_fn) (xtensa_insnbuf)
 
typedef int(* xtensa_format_decode_fn) (const xtensa_insnbuf)
 
typedef int(* xtensa_length_decode_fn) (const unsigned char *)
 
typedef struct xtensa_format_internal_struct xtensa_format_internal
 
typedef struct xtensa_slot_internal_struct xtensa_slot_internal
 
typedef struct xtensa_operand_internal_struct xtensa_operand_internal
 
typedef struct xtensa_arg_internal_struct xtensa_arg_internal
 
typedef struct xtensa_iclass_internal_struct xtensa_iclass_internal
 
typedef struct xtensa_opcode_internal_struct xtensa_opcode_internal
 
typedef struct xtensa_regfile_internal_struct xtensa_regfile_internal
 
typedef struct xtensa_interface_internal_struct xtensa_interface_internal
 
typedef struct xtensa_funcUnit_internal_struct xtensa_funcUnit_internal
 
typedef struct xtensa_state_internal_struct xtensa_state_internal
 
typedef struct xtensa_sysreg_internal_struct xtensa_sysreg_internal
 
typedef struct xtensa_lookup_entry_struct xtensa_lookup_entry
 
typedef struct xtensa_isa_internal_struct xtensa_isa_internal
 

Functions

int xtensa_isa_name_compare (const void *, const void *)
 

Variables

xtensa_isa_status xtisa_errno
 
char xtisa_error_msg []
 

Macro Definition Documentation

◆ XTENSA_INTERFACE_HAS_SIDE_EFFECT

#define XTENSA_INTERFACE_HAS_SIDE_EFFECT   0x00000001

Definition at line 42 of file xtensa-isa-internal.h.

◆ XTENSA_OPCODE_IS_BRANCH

#define XTENSA_OPCODE_IS_BRANCH   0x00000001

Definition at line 34 of file xtensa-isa-internal.h.

◆ XTENSA_OPCODE_IS_CALL

#define XTENSA_OPCODE_IS_CALL   0x00000008

Definition at line 37 of file xtensa-isa-internal.h.

◆ XTENSA_OPCODE_IS_JUMP

#define XTENSA_OPCODE_IS_JUMP   0x00000002

Definition at line 35 of file xtensa-isa-internal.h.

◆ XTENSA_OPCODE_IS_LOOP

#define XTENSA_OPCODE_IS_LOOP   0x00000004

Definition at line 36 of file xtensa-isa-internal.h.

◆ XTENSA_OPERAND_IS_INVISIBLE

#define XTENSA_OPERAND_IS_INVISIBLE   0x00000004

Definition at line 31 of file xtensa-isa-internal.h.

◆ XTENSA_OPERAND_IS_PCRELATIVE

#define XTENSA_OPERAND_IS_PCRELATIVE   0x00000002

Definition at line 30 of file xtensa-isa-internal.h.

◆ XTENSA_OPERAND_IS_REGISTER

#define XTENSA_OPERAND_IS_REGISTER   0x00000001

Definition at line 29 of file xtensa-isa-internal.h.

◆ XTENSA_OPERAND_IS_UNKNOWN

#define XTENSA_OPERAND_IS_UNKNOWN   0x00000008

Definition at line 32 of file xtensa-isa-internal.h.

◆ XTENSA_STATE_IS_EXPORTED

#define XTENSA_STATE_IS_EXPORTED   0x00000001

Definition at line 39 of file xtensa-isa-internal.h.

◆ XTENSA_STATE_IS_SHARED_OR

#define XTENSA_STATE_IS_SHARED_OR   0x00000002

Definition at line 40 of file xtensa-isa-internal.h.

Typedef Documentation

◆ xtensa_arg_internal

◆ xtensa_do_reloc_fn

typedef int(* xtensa_do_reloc_fn) (uint32 *, uint32)

Definition at line 53 of file xtensa-isa-internal.h.

◆ xtensa_format_decode_fn

typedef int(* xtensa_format_decode_fn) (const xtensa_insnbuf)

Definition at line 56 of file xtensa-isa-internal.h.

◆ xtensa_format_encode_fn

typedef void(* xtensa_format_encode_fn) (xtensa_insnbuf)

Definition at line 45 of file xtensa-isa-internal.h.

◆ xtensa_format_internal

◆ xtensa_funcUnit_internal

◆ xtensa_get_field_fn

typedef uint32(* xtensa_get_field_fn) (const xtensa_insnbuf)

Definition at line 49 of file xtensa-isa-internal.h.

◆ xtensa_get_slot_fn

typedef void(* xtensa_get_slot_fn) (const xtensa_insnbuf, xtensa_insnbuf)

Definition at line 46 of file xtensa-isa-internal.h.

◆ xtensa_iclass_internal

◆ xtensa_immed_decode_fn

typedef int(* xtensa_immed_decode_fn) (uint32 *)

Definition at line 51 of file xtensa-isa-internal.h.

◆ xtensa_immed_encode_fn

typedef int(* xtensa_immed_encode_fn) (uint32 *)

Definition at line 52 of file xtensa-isa-internal.h.

◆ xtensa_interface_internal

◆ xtensa_isa_internal

◆ xtensa_length_decode_fn

typedef int(* xtensa_length_decode_fn) (const unsigned char *)

Definition at line 57 of file xtensa-isa-internal.h.

◆ xtensa_lookup_entry

◆ xtensa_opcode_decode_fn

typedef int(* xtensa_opcode_decode_fn) (const xtensa_insnbuf)

Definition at line 48 of file xtensa-isa-internal.h.

◆ xtensa_opcode_encode_fn

typedef void(* xtensa_opcode_encode_fn) (xtensa_insnbuf)

Definition at line 55 of file xtensa-isa-internal.h.

◆ xtensa_opcode_internal

◆ xtensa_operand_internal

◆ xtensa_regfile_internal

◆ xtensa_set_field_fn

typedef void(* xtensa_set_field_fn) (xtensa_insnbuf, uint32)

Definition at line 50 of file xtensa-isa-internal.h.

◆ xtensa_set_slot_fn

typedef void(* xtensa_set_slot_fn) (xtensa_insnbuf, const xtensa_insnbuf)

Definition at line 47 of file xtensa-isa-internal.h.

◆ xtensa_slot_internal

◆ xtensa_state_internal

◆ xtensa_sysreg_internal

◆ xtensa_undo_reloc_fn

typedef int(* xtensa_undo_reloc_fn) (uint32 *, uint32)

Definition at line 54 of file xtensa-isa-internal.h.

Function Documentation

◆ xtensa_isa_name_compare()

int xtensa_isa_name_compare ( const void *  v1,
const void *  v2 
)

Definition at line 395 of file xtensa-isa.c.

396 {
399 
400  return rz_str_casecmp (e1->key, e2->key);
401 }
@ v1
Definition: lanai.h:85
RZ_API int rz_str_casecmp(const char *dst, const char *orig)
Definition: str.c:121
const char * key

References xtensa_lookup_entry_struct::key, rz_str_casecmp(), and v1.

Referenced by xtensa_funcUnit_lookup(), xtensa_interface_lookup(), xtensa_isa_init(), xtensa_opcode_lookup(), xtensa_state_lookup(), and xtensa_sysreg_lookup_name().

Variable Documentation

◆ xtisa_errno

◆ xtisa_error_msg