| /netbsd/src/external/gpl3/gdb/dist/sim/common/ |
| D | sim-io.c | 52 sim_io_init (SIM_DESC sd) in sim_io_init() argument 54 return STATE_CALLBACK (sd)->init (STATE_CALLBACK (sd)); in sim_io_init() 59 sim_io_shutdown (SIM_DESC sd) in sim_io_shutdown() argument 61 return STATE_CALLBACK (sd)->shutdown (STATE_CALLBACK (sd)); in sim_io_shutdown() 66 sim_io_unlink (SIM_DESC sd, in sim_io_unlink() argument 69 return STATE_CALLBACK (sd)->unlink (STATE_CALLBACK (sd), f1); in sim_io_unlink() 74 sim_io_time (SIM_DESC sd) in sim_io_time() argument 76 return STATE_CALLBACK (sd)->time (STATE_CALLBACK (sd)); in sim_io_time() 81 sim_io_system (SIM_DESC sd, const char *s) in sim_io_system() argument 83 return STATE_CALLBACK (sd)->system (STATE_CALLBACK (sd), s); in sim_io_system() [all …]
|
| D | sim-base.h | 97 # define STATE_CPU(sd, n) ((sd)->cpu[n]) argument 99 # define STATE_CPU(sd, n) ((sd)->cpu[0]) argument 104 #define STATE_MY_NAME(sd) ((sd)->my_name) argument 108 #define STATE_OPEN_KIND(sd) ((sd)->open_kind) argument 112 #define STATE_CALLBACK(sd) ((sd)->callback) argument 116 #define STATE_ENVIRONMENT(sd) ((sd)->environment) argument 121 #define STATE_CONFIG(sd) ((sd)->config) 126 #define STATE_MODULES(sd) ((sd)->modules) argument 130 #define STATE_OPTIONS(sd) ((sd)->options) argument 134 #define STATE_VERBOSE_P(sd) ((sd)->verbose_p) argument [all …]
|
| D | sim-trace.c | 159 set_trace_option_mask (SIM_DESC sd, const char *name, int mask, const char *arg) in set_trace_option_mask() argument 177 …sim_io_eprintf (sd, "Argument `%s' for `--trace%s' invalid, one of `on', `off', `yes', `no' expect… in set_trace_option_mask() 189 STATE_TRACE_FLAGS (sd)[trace_nr] = trace_val; in set_trace_option_mask() local 194 CPU_TRACE_FLAGS (STATE_CPU (sd, cpu_nr))[trace_nr] = trace_val; in set_trace_option_mask() 202 CPU_TRACE_DATA (STATE_CPU (sd, cpu_nr))->trace_any_p = 1; in set_trace_option_mask() 208 CPU_TRACE_DATA (STATE_CPU (sd, cpu_nr))->trace_any_p = 0; in set_trace_option_mask() 211 if (CPU_TRACE_FLAGS (STATE_CPU (sd, cpu_nr))[trace_nr]) in set_trace_option_mask() 213 CPU_TRACE_DATA (STATE_CPU (sd, cpu_nr))->trace_any_p = 1; in set_trace_option_mask() 226 set_trace_option (SIM_DESC sd, const char *name, int idx, const char *arg) in set_trace_option() argument 228 return set_trace_option_mask (sd, name, 1 << idx, arg); in set_trace_option() [all …]
|
| D | sim-profile.c | 124 set_profile_option_mask (SIM_DESC sd, const char *name, int mask, const char *arg) in set_profile_option_mask() argument 142 …sim_io_eprintf (sd, "Argument `%s' for `--profile%s' invalid, one of `on', `off', `yes', `no' expe… in set_profile_option_mask() 165 CPU_PROFILE_FLAGS (STATE_CPU (sd, cpu_nr))[profile_nr] = profile_val; in set_profile_option_mask() 173 CPU_PROFILE_DATA (STATE_CPU (sd, cpu_nr))->profile_any_p = 1; in set_profile_option_mask() 179 CPU_PROFILE_DATA (STATE_CPU (sd, cpu_nr))->profile_any_p = 0; in set_profile_option_mask() 182 if (CPU_PROFILE_FLAGS (STATE_CPU (sd, cpu_nr))[profile_nr]) in set_profile_option_mask() 184 CPU_PROFILE_DATA (STATE_CPU (sd, cpu_nr))->profile_any_p = 1; in set_profile_option_mask() 198 sim_profile_set_option (SIM_DESC sd, const char *name, int idx, const char *arg) in sim_profile_set_option() argument 200 return set_profile_option_mask (sd, name, 1 << idx, arg); in sim_profile_set_option() 204 parse_frequency (SIM_DESC sd, const char *arg, unsigned long *freq) in parse_frequency() argument [all …]
|
| D | sim-module.c | 55 sim_pre_argv_init (SIM_DESC sd, const char *myname) in sim_pre_argv_init() argument 57 SIM_ASSERT (STATE_MAGIC (sd) == SIM_MAGIC_NUMBER); in sim_pre_argv_init() 58 SIM_ASSERT (STATE_MODULES (sd) == NULL); in sim_pre_argv_init() 60 STATE_MY_NAME (sd) = lbasename (myname); in sim_pre_argv_init() 70 CPU_NAME (STATE_CPU (sd, i)) = name; in sim_pre_argv_init() 74 sim_config_default (sd); in sim_pre_argv_init() 77 if (sim_module_install (sd) != SIM_RC_OK) in sim_pre_argv_init() 81 return sim_module_install_list (sd, sim_modules_detected, in sim_pre_argv_init() 88 sim_post_argv_init (SIM_DESC sd) in sim_post_argv_init() argument 91 SIM_ASSERT (STATE_MAGIC (sd) == SIM_MAGIC_NUMBER); in sim_post_argv_init() [all …]
|
| D | sim-engine.c | 36 sim_engine_get_run_state (SIM_DESC sd, enum sim_stop *reason, int *sigrc) in sim_engine_get_run_state() argument 38 sim_engine *engine = STATE_ENGINE (sd); in sim_engine_get_run_state() 39 ASSERT (STATE_MAGIC (sd) == SIM_MAGIC_NUMBER); in sim_engine_get_run_state() 49 sim_engine_set_run_state (SIM_DESC sd, enum sim_stop reason, int sigrc) in sim_engine_set_run_state() argument 51 sim_engine *engine = STATE_ENGINE (sd); in sim_engine_set_run_state() 52 ASSERT (STATE_MAGIC (sd) == SIM_MAGIC_NUMBER); in sim_engine_set_run_state() 60 sim_engine_halt (SIM_DESC sd, in sim_engine_halt() argument 67 sim_engine *engine = STATE_ENGINE (sd); in sim_engine_halt() 68 ASSERT (STATE_MAGIC (sd) == SIM_MAGIC_NUMBER); in sim_engine_halt() 77 SIM_ENGINE_HALT_HOOK (sd, last_cpu, cia); in sim_engine_halt() [all …]
|
| D | sim-watch.c | 49 option_to_type (SIM_DESC sd, in option_to_type() argument 52 sim_watchpoints *watch = STATE_WATCHPOINTS (sd); in option_to_type() 60 option_to_interrupt_nr (SIM_DESC sd, in option_to_interrupt_nr() argument 63 sim_watchpoints *watch = STATE_WATCHPOINTS (sd); in option_to_interrupt_nr() 70 type_to_option (SIM_DESC sd, in type_to_option() argument 74 sim_watchpoints *watch = STATE_WATCHPOINTS (sd); in type_to_option() 84 do_watchpoint_delete (SIM_DESC sd, in do_watchpoint_delete() argument 88 sim_watchpoints *watch = STATE_WATCHPOINTS (sd); in do_watchpoint_delete() 98 sim_events_deschedule (sd, dead->event); in do_watchpoint_delete() 109 watchpoint_type_to_str (SIM_DESC sd, in watchpoint_type_to_str() argument [all …]
|
| D | cgen-run.c | 44 #define SIM_ENGINE_PREFIX_HOOK(sd) argument 47 #define SIM_ENGINE_POSTFIX_HOOK(sd) argument 57 cgen_get_fast_p (SIM_DESC sd) in cgen_get_fast_p() argument 63 SIM_CPU *cpu = STATE_CPU (sd, c); in cgen_get_fast_p() 75 sim_resume (SIM_DESC sd, int step, int siggnal) in sim_resume() argument 77 sim_engine *engine = STATE_ENGINE (sd); in sim_resume() 82 ASSERT (STATE_MAGIC (sd) == SIM_MAGIC_NUMBER); in sim_resume() 85 fast_p = cgen_get_fast_p (sd); in sim_resume() 90 sim_events_deschedule (sd, engine->stepper); in sim_resume() 94 engine->stepper = sim_events_schedule (sd, 1, has_stepped, sd); in sim_resume() [all …]
|
| D | sim-options.c | 45 sim_add_option_table (SIM_DESC sd, sim_cpu *cpu, const OPTION *table) in sim_add_option_table() argument 62 ol->next = STATE_OPTIONS (sd); in sim_add_option_table() 64 STATE_OPTIONS (sd) = ol; in sim_add_option_table() 207 env_set (SIM_DESC sd, const char *arg) in env_set() argument 213 if (STATE_PROG_ENVP (sd) == NULL) in env_set() 214 STATE_PROG_ENVP (sd) = dupargv (environ); in env_set() 219 sim_io_eprintf (sd, "invalid syntax when setting env var `%s'" in env_set() 227 envp = STATE_PROG_ENVP (sd); in env_set() 244 STATE_PROG_ENVP (sd) = envp; in env_set() 251 standard_option_handler (SIM_DESC sd, sim_cpu *cpu, int opt, in standard_option_handler() argument [all …]
|
| D | sim-model.c | 59 model_option_handler (SIM_DESC sd, sim_cpu *cpu, int opt, in model_option_handler() argument 66 const SIM_MODEL *model = sim_model_lookup (sd, arg); in model_option_handler() 69 sim_io_eprintf (sd, "unknown model `%s'\n", arg); in model_option_handler() 72 STATE_MODEL_NAME (sd) = arg; in model_option_handler() 73 sim_model_set (sd, cpu, model); in model_option_handler() 82 if (STATE_MACHS (sd) == NULL) in model_option_handler() 84 sim_io_printf (sd, "This target does not support any models\n"); in model_option_handler() 88 for (machp = STATE_MACHS(sd); *machp != NULL; ++machp) in model_option_handler() 90 sim_io_printf (sd, "Models for architecture `%s':\n", in model_option_handler() 94 sim_io_printf (sd, " %s", MODEL_NAME (model)); in model_option_handler() [all …]
|
| D | sim-utils.c | 54 SIM_DESC sd = ZALLOC (struct sim_state); in sim_state_alloc_extra() local 56 STATE_MAGIC (sd) = SIM_MAGIC_NUMBER; in sim_state_alloc_extra() 57 STATE_CALLBACK (sd) = callback; in sim_state_alloc_extra() 58 STATE_OPEN_KIND (sd) = kind; in sim_state_alloc_extra() 61 STATE_ARCH_DATA (sd) = zalloc (extra_bytes); in sim_state_alloc_extra() 77 CPU_STATE (STATE_CPU (sd, cpu_nr)) = sd; in sim_state_alloc_extra() 78 CPU_INDEX (STATE_CPU (sd, cpu_nr)) = cpu_nr; in sim_state_alloc_extra() 84 SIM_STATE_INIT (sd); in sim_state_alloc_extra() 87 return sd; in sim_state_alloc_extra() 93 sim_state_free (SIM_DESC sd) in sim_state_free() argument [all …]
|
| /netbsd/src/lib/libc/net/ |
| D | getservent_r.c | 59 _servent_open(struct servent_data *sd) in __weak_alias() 61 if (sd->flags & (_SV_CDB | _SV_PLAINFILE)) { in __weak_alias() 62 sd->flags |= _SV_FIRST; in __weak_alias() 66 free(sd->line); in __weak_alias() 67 sd->line = NULL; in __weak_alias() 68 free(sd->cdb_buf); in __weak_alias() 69 sd->cdb_buf = NULL; in __weak_alias() 70 sd->cdb_buf_len = 0; in __weak_alias() 71 free(sd->aliases); in __weak_alias() 72 sd->aliases = NULL; in __weak_alias() [all …]
|
| /netbsd/src/external/gpl3/gdb/dist/sim/m68hc11/ |
| D | interp.c | 41 static void sim_get_info (SIM_DESC sd, char *cmd); 70 free_state (SIM_DESC sd) in free_state() argument 72 if (STATE_MODULES (sd) != NULL) in free_state() 73 sim_module_uninstall (sd); in free_state() 75 sim_state_free (sd); in free_state() 80 sim_get_info (SIM_DESC sd, char *cmd) in sim_get_info() argument 84 cpu = STATE_CPU (sd, 0); in sim_get_info() 92 arch = STATE_ARCHITECTURE (sd); in sim_get_info() 106 sim_io_eprintf (sd, "Device '%s' not found.\n", cmd); in sim_get_info() 107 sim_io_eprintf (sd, "Valid devices: cpu timer sio eeprom\n"); in sim_get_info() [all …]
|
| /netbsd/src/external/gpl3/gdb/dist/sim/m32c/ |
| D | srcdest.c | 122 srcdest sd; in decode_srcdest4() local 130 sd.bytes = bw ? 2 : 1; in decode_srcdest4() 131 sd.mem = (destcode >= 6) ? 1 : 0; in decode_srcdest4() 147 sd.u.reg = bw ? r0 : r0l; in decode_srcdest4() 150 sd.u.reg = bw ? r1 : r0h; in decode_srcdest4() 153 sd.u.reg = bw ? r2 : r1l; in decode_srcdest4() 156 sd.u.reg = bw ? r3 : r1h; in decode_srcdest4() 159 sd.u.reg = a0; in decode_srcdest4() 162 sd.u.reg = a1; in decode_srcdest4() 165 sd.u.addr = get_reg (a0); in decode_srcdest4() [all …]
|
| /netbsd/src/sys/dev/wscons/ |
| D | wsdisplay_compat_usl.c | 101 struct usl_syncdata *sd; in usl_sync_init() local 104 sd = kmem_intr_alloc(sizeof(*sd), KM_SLEEP); in usl_sync_init() 106 sd->s_scr = scr; in usl_sync_init() 107 sd->s_proc = p; in usl_sync_init() 108 sd->s_pid = p->p_pid; in usl_sync_init() 109 sd->s_flags = 0; in usl_sync_init() 110 sd->s_acqsig = acqsig; in usl_sync_init() 111 sd->s_relsig = relsig; in usl_sync_init() 112 sd->s_frsig = frsig; in usl_sync_init() 113 callout_init(&sd->s_attach_ch, 0); in usl_sync_init() [all …]
|
| /netbsd/src/sys/dev/ic/ |
| D | smc93cx6.c | 88 #define CLOCK_PULSE(sd, rdy) do { \ argument 97 while ((SEEPROM_STATUS_INB(sd) & rdy) == 0 && cpi-- > 0) { \ 100 (void)SEEPROM_INB(sd); /* Clear clock */ \ 108 read_seeprom(struct seeprom_descriptor *sd, u_int16_t *buf, bus_size_t start_addr, bus_size_t count) in read_seeprom() argument 121 temp = sd->sd_MS ^ sd->sd_CS; in read_seeprom() 122 SEEPROM_OUTB(sd, temp ^ sd->sd_CK); in read_seeprom() 123 CLOCK_PULSE(sd, sd->sd_RDY); in read_seeprom() 131 temp ^= sd->sd_DO; in read_seeprom() 132 SEEPROM_OUTB(sd, temp); in read_seeprom() 133 CLOCK_PULSE(sd, sd->sd_RDY); in read_seeprom() [all …]
|
| D | smc93cx6var.h | 81 #define SEEPROM_INB(sd) \ argument 82 (((sd)->sd_regsize == 4) \ 83 ? bus_space_read_4((sd)->sd_tag, (sd)->sd_bsh, \ 84 (sd)->sd_control_offset) \ 85 : bus_space_read_1((sd)->sd_tag, (sd)->sd_bsh, \ 86 (sd)->sd_control_offset)) 88 #define SEEPROM_OUTB(sd, value) do { \ argument 89 if ((sd)->sd_regsize == 4) \ 90 bus_space_write_4((sd)->sd_tag, (sd)->sd_bsh, \ 91 (sd)->sd_control_offset, (value)); \ [all …]
|
| /netbsd/src/external/gpl3/gdb/dist/sim/m32r/ |
| D | sim-if.c | 44 free_state (SIM_DESC sd) in free_state() argument 46 if (STATE_MODULES (sd) != NULL) in free_state() 47 sim_module_uninstall (sd); in free_state() 48 sim_cpu_free_all (sd); in free_state() 49 sim_state_free (sd); in free_state() 60 SIM_DESC sd = sim_state_alloc (kind, callback); in sim_open() local 65 STATE_MACHS (sd) = m32r_sim_machs; in sim_open() 66 STATE_MODEL_NAME (sd) = "m32r/d"; in sim_open() 71 if (sim_cpu_alloc_all_extra (sd, 0, sizeof (struct m32r_sim_cpu)) in sim_open() 74 free_state (sd); in sim_open() [all …]
|
| /netbsd/src/external/gpl3/gdb/dist/sim/mn10300/ |
| D | interp.c | 32 mn10300_option_handler (SIM_DESC sd, in mn10300_option_handler() argument 92 SIM_DESC sd = sim_state_alloc (kind, cb); in sim_open() local 94 SIM_ASSERT (STATE_MAGIC (sd) == SIM_MAGIC_NUMBER); in sim_open() 100 if (sim_cpu_alloc_all (sd, 0) != SIM_RC_OK) in sim_open() 104 simulator = sd; in sim_open() 109 STATE_WATCHPOINTS (sd)->interrupt_handler = NULL; in sim_open() 110 STATE_WATCHPOINTS (sd)->interrupt_names = NULL; in sim_open() 112 if (sim_pre_argv_init (sd, argv[0]) != SIM_RC_OK) in sim_open() 114 sim_add_option_table (sd, NULL, mn10300_options); in sim_open() 117 sim_do_command (sd, "memory region 0,0x100000"); in sim_open() [all …]
|
| /netbsd/src/external/gpl3/gdb/dist/sim/frv/ |
| D | sim-if.c | 40 free_state (SIM_DESC sd) in free_state() argument 42 if (STATE_MODULES (sd) != NULL) in free_state() 43 sim_module_uninstall (sd); in free_state() 44 sim_cpu_free_all (sd); in free_state() 45 sim_state_free (sd); in free_state() 59 SIM_DESC sd = sim_state_alloc (kind, callback); in sim_open() local 62 STATE_MACHS (sd) = frv_sim_machs; in sim_open() 63 STATE_MODEL_NAME (sd) = "fr500"; in sim_open() 68 if (sim_cpu_alloc_all_extra (sd, 0, sizeof (struct frv_sim_cpu)) != SIM_RC_OK) in sim_open() 70 free_state (sd); in sim_open() [all …]
|
| /netbsd/src/crypto/external/bsd/heimdal/dist/lib/hx509/ |
| D | test_cms.in | 55 ${hxtool} cms-create-sd \ 58 sd.data > /dev/null || exit 1 61 ${hxtool} cms-verify-sd \ 64 sd.data sd.data.out > /dev/null || exit 1 65 cmp "$srcdir/test_chain.in" sd.data.out || exit 1 69 ${hxtool} cms-create-sd \ 72 sd.data > /dev/null || exit 1 75 ${hxtool} cms-verify-sd \ 78 sd.data sd.data.out > /dev/null || exit 1 79 cmp "$srcdir/test_chain.in" sd.data.out || exit 1 [all …]
|
| /netbsd/src/external/gpl3/gdb/dist/sim/lm32/ |
| D | sim-if.c | 35 free_state (SIM_DESC sd) in free_state() argument 37 if (STATE_MODULES (sd) != NULL) in free_state() 38 sim_module_uninstall (sd); in free_state() 39 sim_cpu_free_all (sd); in free_state() 40 sim_state_free (sd); in free_state() 73 find_limit (SIM_DESC sd) in find_limit() argument 77 addr = trace_sym_value (sd, "_fstack"); in find_limit() 92 SIM_DESC sd = sim_state_alloc (kind, callback); in sim_open() local 98 STATE_MACHS (sd) = lm32_sim_machs; in sim_open() 99 STATE_MODEL_NAME (sd) = "lm32"; in sim_open() [all …]
|
| /netbsd/src/external/gpl3/gdb/dist/sim/d10v/ |
| D | simops.c | 20 #define EXCEPTION(sig) sim_engine_halt (sd, cpu, NULL, PC, sim_stopped, sig) 70 move_to_cr (SIM_DESC sd, SIM_CPU *cpu, int cr, reg_t mask, reg_t val, int psw_hw_p) in move_to_cr() argument 96 (sd, in move_to_cr() 127 static void trace_input_func (SIM_DESC sd, 133 #define trace_input(name, in1, in2, in3) do { if (d10v_debug) trace_input_func (sd, name, in1, in2,… 160 trace_input_func (SIM_DESC sd, const char *name, enum op_types in1, enum op_types in2, enum op_type… in trace_input_func() argument 193 sim_io_printf (sd, in trace_input_func() 203 if (STATE_TEXT_SECTION (sd) in trace_input_func() 204 && byte_pc >= STATE_TEXT_START (sd) in trace_input_func() 205 && byte_pc < STATE_TEXT_END (sd)) in trace_input_func() [all …]
|
| /netbsd/src/external/gpl3/gdb/dist/sim/iq2000/ |
| D | sim-if.c | 46 free_state (SIM_DESC sd) in free_state() argument 48 if (STATE_MODULES (sd) != NULL) in free_state() 49 sim_module_uninstall (sd); in free_state() 50 sim_cpu_free_all (sd); in free_state() 51 sim_state_free (sd); in free_state() 63 SIM_DESC sd = sim_state_alloc (kind, callback); in sim_open() local 66 STATE_MACHS (sd) = iq2000_sim_machs; in sim_open() 67 STATE_MODEL_NAME (sd) = "iq2000"; in sim_open() 72 if (sim_cpu_alloc_all_extra (sd, 0, sizeof (struct iq2000_sim_cpu)) in sim_open() 75 free_state (sd); in sim_open() [all …]
|
| /netbsd/src/external/gpl3/gdb/dist/sim/mips/ |
| D | interp.c | 61 #define SD sd 84 static void ColdReset (SIM_DESC sd); 92 … sim_io_eprintf(sd,"Delay slot already activated (branch in delay slot?)\n");\ 141 static SIM_RC sim_firmware_command (SIM_DESC sd, char* arg); 149 static void open_trace (SIM_DESC sd); 151 #define open_trace(sd) argument 173 mips_option_handler (SIM_DESC sd, sim_cpu *cpu, int opt, char *arg, in mips_option_handler() argument 187 cpu = STATE_CPU (sd, cpu_nr); in mips_option_handler() 219 sim_io_printf(sd,"Failed to allocate buffer for tracefile name \"%s\"\n",optarg); in mips_option_handler() 225 sim_io_printf(sd,"Placing trace information into file \"%s\"\n",tracefile); in mips_option_handler() [all …]
|