OpenOCD
nds32 Struct Reference

Represents a generic Andes core. More...

Collaboration diagram for nds32:

Data Fields

int active_syscall_id
 Record syscall ID for other operations to do special processing for target. More...
 
void * arch_info
 
bool attached
 
bool audio_enable
 Flag to indicate audio-extension is enabled or not. More...
 
bool auto_convert_hw_bp
 Flag to indicate if auto convert software breakpoints to hardware breakpoints or not in ROM. More...
 
uint32_t backup_edm_ctl
 
uint32_t boot_time
 Period to wait after SRST. More...
 
unsigned int common_magic
 
struct reg_cachecore_cache
 
struct nds32_cpu_version cpu_version
 cpu version More...
 
uint32_t current_interrupt_level
 current interrupt level More...
 
enum target_endianness data_endian
 Endian of data memory. More...
 
enum target_endianness device_reg_endian
 Endian of device registers. More...
 
struct nds32_edm edm
 Handle for the debug module. More...
 
char * edm_passcode
 EDM passcode for debugging secure MCU. More...
 
int(* enter_debug_state )(struct nds32 *nds32, bool enable_watchpoint)
 Backup target registers may be modified in debug state. More...
 
bool fpu_enable
 Flag to indicate fpu-extension is enabled or not. More...
 
int(* full_context )(struct nds32 *nds32)
 Retrieve all core registers, for display. More...
 
int(* get_debug_reason )(struct nds32 *nds32, uint32_t *reason)
 Get debug exception virtual address. More...
 
int(* get_watched_address )(struct nds32 *nds32, uint32_t *address, uint32_t reason)
 Get address hit watchpoint. More...
 
bool global_stop
 Flag reporting whether global stop is active. More...
 
bool hit_syscall
 Flag reporting whether continue/step hits syscall or not. More...
 
bool init_arch_info_after_halted
 Flag to indicate register table is ready or not. More...
 
bool keep_target_edm_ctl
 backup/restore target EDM_CTL value. More...
 
int(* leave_debug_state )(struct nds32 *nds32, bool enable_watchpoint)
 Restore target registers may be modified in debug state. More...
 
uint32_t max_interrupt_level
 maximum interrupt level More...
 
struct nds32_memory memory
 Memory information. More...
 
struct nds32_misc_config misc_config
 Misc configuration. More...
 
struct nds32_mmu_config mmu_config
 MMU configuration. More...
 
int privilege_level
 current privilege_level if using secure MCU. More...
 
int(* register_map )(struct nds32 *nds32, int reg_no)
 Register mappings. More...
 
bool reset_halt_as_examine
 reset-halt as target examine More...
 
bool soft_reset_halt
 Flag reporting whether to use soft-reset-halt or not as issuing reset-halt. More...
 
bool step_isr_enable
 Flag to indicate HSS steps into ISR or not. More...
 
struct breakpoint syscall_break
 
struct targettarget
 Backpointer to the target. More...
 
bool virtual_hosting
 Flag reporting whether virtual hosting is active. More...
 
bool virtual_hosting_ctrl_c
 Flag reporting whether syscall is aborted. More...
 
int virtual_hosting_errno
 Value to be returned by virtual hosting SYS_ERRNO request. More...
 
uint32_t watched_address
 
bool word_access_mem
 always use word-aligned address to access memory More...
 

Detailed Description

Represents a generic Andes core.

Definition at line 226 of file nds32.h.

Field Documentation

◆ active_syscall_id

int nds32::active_syscall_id

Record syscall ID for other operations to do special processing for target.

Definition at line 285 of file nds32.h.

Referenced by nds32_gdb_fileio_end(), nds32_gdb_fileio_write_memory(), nds32_get_gdb_fileio_info(), and nds32_init_arch_info().

◆ arch_info

void* nds32::arch_info

Definition at line 348 of file nds32.h.

◆ attached

bool nds32::attached

Definition at line 343 of file nds32.h.

Referenced by nds32_gdb_attach(), nds32_gdb_detach(), and nds32_init_arch_info().

◆ audio_enable

bool nds32::audio_enable

Flag to indicate audio-extension is enabled or not.

Definition at line 324 of file nds32.h.

Referenced by nds32_check_extension(), nds32_get_core_reg(), and nds32_set_core_reg().

◆ auto_convert_hw_bp

bool nds32::auto_convert_hw_bp

Flag to indicate if auto convert software breakpoints to hardware breakpoints or not in ROM.

Definition at line 340 of file nds32.h.

Referenced by COMMAND_HANDLER(), nds32_init_arch_info(), nds32_v2_add_breakpoint(), nds32_v3_add_breakpoint(), and nds32_v3m_add_breakpoint().

◆ backup_edm_ctl

uint32_t nds32::backup_edm_ctl

Definition at line 303 of file nds32.h.

Referenced by nds32_gdb_attach(), and nds32_gdb_detach().

◆ boot_time

uint32_t nds32::boot_time

Period to wait after SRST.

Definition at line 315 of file nds32.h.

Referenced by COMMAND_HANDLER(), nds32_assert_reset(), and nds32_init_arch_info().

◆ common_magic

unsigned int nds32::common_magic

Definition at line 227 of file nds32.h.

Referenced by is_nds32(), nds32_arch_state(), and nds32_init_arch_info().

◆ core_cache

◆ cpu_version

struct nds32_cpu_version nds32::cpu_version

cpu version

Definition at line 229 of file nds32.h.

Referenced by nds32_assert_reset(), nds32_init_config(), and nds32_init_option_registers().

◆ current_interrupt_level

uint32_t nds32::current_interrupt_level

◆ data_endian

enum target_endianness nds32::data_endian

Endian of data memory.

Definition at line 327 of file nds32.h.

Referenced by nds32_update_psw().

◆ device_reg_endian

enum target_endianness nds32::device_reg_endian

Endian of device registers.

Definition at line 327 of file nds32.h.

◆ edm

struct nds32_edm nds32::edm

Handle for the debug module.

Definition at line 229 of file nds32.h.

Referenced by COMMAND_HANDLER(), nds32_assert_reset(), nds32_edm_config(), nds32_init_option_registers(), and nds32_select_memory_mode().

◆ edm_passcode

char* nds32::edm_passcode

EDM passcode for debugging secure MCU.

Definition at line 309 of file nds32.h.

Referenced by COMMAND_HANDLER(), nds32_init_arch_info(), and nds32_login().

◆ enter_debug_state

int(* nds32::enter_debug_state) (struct nds32 *nds32, bool enable_watchpoint)

Backup target registers may be modified in debug state.

Definition at line 259 of file nds32.h.

Referenced by nds32_halt(), nds32_poll(), nds32_step(), nds32_step_without_watchpoint(), nds32_v2_target_create(), and nds32_v3_target_create_common().

◆ fpu_enable

bool nds32::fpu_enable

Flag to indicate fpu-extension is enabled or not.

Definition at line 327 of file nds32.h.

Referenced by nds32_check_extension(), nds32_get_core_reg(), nds32_get_core_reg_64(), and nds32_set_core_reg().

◆ full_context

int(* nds32::full_context) (struct nds32 *nds32)

Retrieve all core registers, for display.

Definition at line 247 of file nds32.h.

◆ get_debug_reason

int(* nds32::get_debug_reason) (struct nds32 *nds32, uint32_t *reason)

Get debug exception virtual address.

Definition at line 253 of file nds32.h.

Referenced by nds32_examine_debug_reason(), nds32_v2_target_create(), and nds32_v3_target_create_common().

◆ get_watched_address

int(* nds32::get_watched_address) (struct nds32 *nds32, uint32_t *address, uint32_t reason)

Get address hit watchpoint.

Definition at line 262 of file nds32.h.

Referenced by nds32_examine_debug_reason(), nds32_v2_target_create(), and nds32_v3_target_create_common().

◆ global_stop

◆ hit_syscall

bool nds32::hit_syscall

◆ init_arch_info_after_halted

bool nds32::init_arch_info_after_halted

Flag to indicate register table is ready or not.

Definition at line 321 of file nds32.h.

Referenced by nds32_init_arch_info(), nds32_v2_debug_entry(), and nds32_v3_debug_entry().

◆ keep_target_edm_ctl

bool nds32::keep_target_edm_ctl

backup/restore target EDM_CTL value.

As debugging target debug handler, it should be true.

Definition at line 300 of file nds32.h.

Referenced by COMMAND_HANDLER(), nds32_gdb_attach(), nds32_gdb_detach(), and nds32_init_arch_info().

◆ leave_debug_state

int(* nds32::leave_debug_state) (struct nds32 *nds32, bool enable_watchpoint)

Restore target registers may be modified in debug state.

Definition at line 256 of file nds32.h.

Referenced by nds32_resume(), nds32_step(), nds32_step_without_watchpoint(), nds32_v2_target_create(), and nds32_v3_target_create_common().

◆ max_interrupt_level

uint32_t nds32::max_interrupt_level

◆ memory

◆ misc_config

struct nds32_misc_config nds32::misc_config

Misc configuration.

Definition at line 229 of file nds32.h.

Referenced by nds32_config(), nds32_init_config(), and nds32_init_option_registers().

◆ mmu_config

struct nds32_mmu_config nds32::mmu_config

MMU configuration.

Definition at line 229 of file nds32.h.

Referenced by nds32_init_config(), nds32_init_option_registers(), nds32_mmu(), nds32_update_mmu_info(), and nds32_walk_page_table().

◆ privilege_level

int nds32::privilege_level

current privilege_level if using secure MCU.

value 0 is the highest level.

Definition at line 312 of file nds32.h.

Referenced by nds32_init_arch_info(), nds32_init_option_registers(), and nds32_login().

◆ register_map

int(* nds32::register_map) (struct nds32 *nds32, int reg_no)

◆ reset_halt_as_examine

bool nds32::reset_halt_as_examine

reset-halt as target examine

Definition at line 296 of file nds32.h.

Referenced by COMMAND_HANDLER(), nds32_init_arch_info(), nds32_v2_examine(), nds32_v3_examine(), and nds32_v3m_examine().

◆ soft_reset_halt

bool nds32::soft_reset_halt

Flag reporting whether to use soft-reset-halt or not as issuing reset-halt.

Definition at line 293 of file nds32.h.

Referenced by COMMAND_HANDLER(), nds32_assert_reset(), and nds32_init_arch_info().

◆ step_isr_enable

bool nds32::step_isr_enable

Flag to indicate HSS steps into ISR or not.

Definition at line 318 of file nds32.h.

Referenced by COMMAND_HANDLER(), nds32_step(), and nds32_step_without_watchpoint().

◆ syscall_break

struct breakpoint nds32::syscall_break

Definition at line 285 of file nds32.h.

Referenced by nds32_init_arch_info(), nds32_v3_debug_entry(), and nds32_v3_leave_debug_state().

◆ target

◆ virtual_hosting

bool nds32::virtual_hosting

Flag reporting whether virtual hosting is active.

Definition at line 273 of file nds32.h.

Referenced by COMMAND_HANDLER(), nds32_arch_state(), nds32_gdb_detach(), nds32_init_arch_info(), nds32_v2_debug_entry(), nds32_v3_debug_entry(), and nds32_v3_leave_debug_state().

◆ virtual_hosting_ctrl_c

bool nds32::virtual_hosting_ctrl_c

Flag reporting whether syscall is aborted.

Definition at line 282 of file nds32.h.

Referenced by nds32_gdb_fileio_end(), nds32_init_arch_info(), and nds32_resume().

◆ virtual_hosting_errno

int nds32::virtual_hosting_errno

Value to be returned by virtual hosting SYS_ERRNO request.

Definition at line 279 of file nds32.h.

Referenced by nds32_gdb_fileio_end(), nds32_get_gdb_fileio_info(), and nds32_init_arch_info().

◆ watched_address

uint32_t nds32::watched_address

◆ word_access_mem

bool nds32::word_access_mem

always use word-aligned address to access memory

Definition at line 306 of file nds32.h.

Referenced by COMMAND_HANDLER(), and nds32_init_arch_info().


The documentation for this struct was generated from the following file: