/dports/games/libretro-mame2003/mame2003-libretro-4358db4/src/ |
H A D | cpuexec.c | 225 for (cpunum = 0; cpunum < MAX_CPU; cpunum++) in cpu_init() 292 for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++) in cpu_pre_run() 316 for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++) in cpu_pre_run() 404 for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++) in cpu_exit() 1143 for (cpunum = 0; cpunum < MAX_CPU; cpunum++) in cpu_trigger() 1340 for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++) in cpu_vblankreset() 1382 for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++) in cpu_vblankcallback() 1620 for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++) in cpu_inittimers() 1631 for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++) in cpu_inittimers() 1643 for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++) in cpu_inittimers() [all …]
|
H A D | cpuint.c | 110 int cpunum; in cpuint_init() local 114 for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++) in cpuint_init() 121 irq_line_vector[cpunum][irqline] = cpunum_default_irq_vector(cpunum); in cpuint_init() 125 irq_event_index[cpunum] = 0; in cpuint_init() 152 interrupt_enable[cpunum] = 1; in cpuint_reset_cpu() 155 interrupt_vector[cpunum][irqline] = cpunum_default_irq_vector(cpunum); in cpuint_reset_cpu() 156 irq_event_index[cpunum] = 0; in cpuint_reset_cpu() 204 if (drv_irq_callbacks[cpunum]) in cpu_irq_callback() 292 cpu_triggerint(cpunum); in cpu_empty_event_queue() 299 irq_event_index[cpunum] = 0; in cpu_empty_event_queue() [all …]
|
H A D | cpuintrf.c | 199 if (cpunum < 0 || cpunum >= totalcpu) \ 205 if (cpunum < 0 || cpunum >= totalcpu) \ 687 activecpu = cpunum; in set_cpu_context() 693 (*cpu[cpunum].intf.set_context)(cpu[cpunum].context); in set_cpu_context() 712 if (cpunum != activecpu && cpunum != -1) in cpuintrf_push_context() 716 activecpu = cpunum; in cpuintrf_push_context() 726 if (cpunum != activecpu && cpunum != -1) in cpuintrf_pop_context() 838 (*cpu[cpunum].intf.get_context)(cpu[cpunum].context); in cpuintrf_init_cpu() 1179 return (cpu_active_context[cpu[cpunum].family] == cpunum) ? NULL : cpu[cpunum].context; in cpunum_get_context_ptr() 1384 int cpunum; in cpu_dump_states() local [all …]
|
H A D | cpuexec.h | 157 void cpunum_resume(int cpunum, int reason); 160 int cpunum_is_suspended(int cpunum, int reason); 166 double cpunum_get_localtime(int cpunum); 169 double cpunum_get_clockscale(int cpunum); 178 #define timer_suspendcpu(cpunum, suspend, reason) do { if (suspend) cpunum_suspend(cpunum, reason, … argument 179 #define timer_holdcpu(cpunum, suspend, reason) do { if (suspend) cpunum_suspend(cpunum, reason, 0)… argument 181 #define timer_get_overclock(cpunum) cpunum_get_clockscale(cpunum) argument 182 #define timer_set_overclock(cpunum, overclock) cpunum_set_clockscale(cpunum, overclock) argument 203 UINT32 cpunum_gettotalcycles(int cpunum); 204 UINT64 cpunum_gettotalcycles64(int cpunum); [all …]
|
H A D | cpuintrf.h | 467 void cpuintrf_exit_cpu(int cpunum); 470 void cpuintrf_push_context(int cpunum); 595 void *cpunum_get_context_ptr(int cpunum); 610 offs_t cpunum_get_pc_byte(int cpunum); 619 const char *cpunum_flags(int cpunum); 631 unsigned cpunum_address_bits(int cpunum); 634 unsigned cpunum_address_mask(int cpunum); 637 int cpunum_address_shift(int cpunum); 640 unsigned cpunum_endianess(int cpunum); 646 unsigned cpunum_align_unit(int cpunum); [all …]
|
H A D | mame-memory.c | 285 for (cpunum = 0; cpunum < MAX_CPU; cpunum++ ) in memory_shutdown() 1087 for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++) in init_cpudata() 1138 data->cpunum = cpunum; in init_memport() 1190 for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++) in verify_memory() 1270 for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++) in verify_ports() 1357 for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++) in allocate_memory() 1447 for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++) in populate_memory() 1498 for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++) in populate_ports() 1667 for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++) in register_banks() 2907 for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++) in mem_dump() [all …]
|
/dports/games/libretro-mame2003_plus/mame2003-plus-libretro-17e9889/src/ |
H A D | cpuexec.c | 225 for (cpunum = 0; cpunum < MAX_CPU; cpunum++) in cpu_init() 292 for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++) in cpu_pre_run() 316 for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++) in cpu_pre_run() 404 for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++) in cpu_exit() 1143 for (cpunum = 0; cpunum < MAX_CPU; cpunum++) in cpu_trigger() 1340 for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++) in cpu_vblankreset() 1382 for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++) in cpu_vblankcallback() 1620 for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++) in cpu_inittimers() 1631 for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++) in cpu_inittimers() 1643 for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++) in cpu_inittimers() [all …]
|
H A D | cpuint.c | 110 int cpunum; in cpuint_init() local 114 for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++) in cpuint_init() 121 irq_line_vector[cpunum][irqline] = cpunum_default_irq_vector(cpunum); in cpuint_init() 125 irq_event_index[cpunum] = 0; in cpuint_init() 152 interrupt_enable[cpunum] = 1; in cpuint_reset_cpu() 155 interrupt_vector[cpunum][irqline] = cpunum_default_irq_vector(cpunum); in cpuint_reset_cpu() 156 irq_event_index[cpunum] = 0; in cpuint_reset_cpu() 204 if (drv_irq_callbacks[cpunum]) in cpu_irq_callback() 292 cpu_triggerint(cpunum); in cpu_empty_event_queue() 299 irq_event_index[cpunum] = 0; in cpu_empty_event_queue() [all …]
|
H A D | cpuintrf.c | 199 if (cpunum < 0 || cpunum >= totalcpu) \ 205 if (cpunum < 0 || cpunum >= totalcpu) \ 687 activecpu = cpunum; in set_cpu_context() 693 (*cpu[cpunum].intf.set_context)(cpu[cpunum].context); in set_cpu_context() 712 if (cpunum != activecpu && cpunum != -1) in cpuintrf_push_context() 716 activecpu = cpunum; in cpuintrf_push_context() 726 if (cpunum != activecpu && cpunum != -1) in cpuintrf_pop_context() 838 (*cpu[cpunum].intf.get_context)(cpu[cpunum].context); in cpuintrf_init_cpu() 1179 return (cpu_active_context[cpu[cpunum].family] == cpunum) ? NULL : cpu[cpunum].context; in cpunum_get_context_ptr() 1384 int cpunum; in cpu_dump_states() local [all …]
|
H A D | cpuexec.h | 157 void cpunum_resume(int cpunum, int reason); 160 int cpunum_is_suspended(int cpunum, int reason); 166 double cpunum_get_localtime(int cpunum); 169 double cpunum_get_clockscale(int cpunum); 178 #define timer_suspendcpu(cpunum, suspend, reason) do { if (suspend) cpunum_suspend(cpunum, reason, … argument 179 #define timer_holdcpu(cpunum, suspend, reason) do { if (suspend) cpunum_suspend(cpunum, reason, 0)… argument 181 #define timer_get_overclock(cpunum) cpunum_get_clockscale(cpunum) argument 182 #define timer_set_overclock(cpunum, overclock) cpunum_set_clockscale(cpunum, overclock) argument 203 UINT32 cpunum_gettotalcycles(int cpunum); 204 UINT64 cpunum_gettotalcycles64(int cpunum); [all …]
|
H A D | cpuintrf.h | 467 void cpuintrf_exit_cpu(int cpunum); 470 void cpuintrf_push_context(int cpunum); 595 void *cpunum_get_context_ptr(int cpunum); 610 offs_t cpunum_get_pc_byte(int cpunum); 619 const char *cpunum_flags(int cpunum); 631 unsigned cpunum_address_bits(int cpunum); 634 unsigned cpunum_address_mask(int cpunum); 637 int cpunum_address_shift(int cpunum); 640 unsigned cpunum_endianess(int cpunum); 646 unsigned cpunum_align_unit(int cpunum); [all …]
|
H A D | mame-memory.c | 285 for (cpunum = 0; cpunum < MAX_CPU; cpunum++ ) in memory_shutdown() 1087 for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++) in init_cpudata() 1138 data->cpunum = cpunum; in init_memport() 1190 for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++) in verify_memory() 1270 for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++) in verify_ports() 1357 for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++) in allocate_memory() 1447 for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++) in populate_memory() 1498 for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++) in populate_ports() 1667 for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++) in register_banks() 2907 for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++) in mem_dump() [all …]
|
/dports/games/libretro-mame2000/mame2000-libretro-e364a15/src/ |
H A D | cpuintrf.c | 751 int cpunum; in cpu_run() local 772 for( cpunum = 0; cpunum < totalcpu; cpunum++ ) in cpu_run() 791 for( cpunum = 0; cpunum < totalcpu; cpunum++ ) in cpu_run() 970 activecpu = cpunum; in cpu_setactivecpu() 989 SETPC(cpunum,val); in cpu_set_pc() 1001 SETSP(cpunum,val); in cpu_set_sp() 1047 …int result = TIME_TO_CYCLES(cpunum, cpu[cpunum].vblankint_period - timer_timeelapsed(cpu[cpunum].v… in cpu_geticount() 1535 cpunum = param & 7; in cpu_manualnmicallback() 1540 activecpu = cpunum; in cpu_manualnmicallback() 1877 RESET(cpunum); in cpu_reset_cpu() [all …]
|
H A D | cpuintrf.h | 319 int cpu_getstatus(int cpunum); 322 void cpu_setactivecpu(int cpunum); 423 void cpu_set_nmi_line(int cpunum, int state); 426 void cpu_set_irq_line(int cpunum, int irqline, int state); 546 unsigned cpunum_get_reg(int cpunum, int regnum); 552 const char *cpunum_flags(int cpunum); 554 const char *cpunum_name(int cpunum); 556 const char *cpunum_core_family(int cpunum); 558 const char *cpunum_core_version(int cpunum); 560 const char *cpunum_core_file(int cpunum); [all …]
|
H A D | timer.c | 299 cpu_entry *cpu = &cpudata[cpunum]; in timer_get_overclock() 308 cpu_entry *cpu = &cpudata[cpunum]; in timer_set_overclock() 310 cpu->sec_to_cycles = sec_to_cycles[cpunum] = cpu->overclock * Machine->drv->cpu[cpunum].cpu_clock; in timer_set_overclock() 311 cpu->cycles_to_sec = cycles_to_sec[cpunum] = TIME_ONE_SEC / sec_to_cycles[cpunum]; in timer_set_overclock() 550 cpu_entry *cpu = cpudata + cpunum; in timer_update_cpu() 592 cpu_entry *cpu = cpudata + cpunum; in timer_suspendcpu() 636 cpu_entry *cpu = cpudata + cpunum; in timer_holdcpu() 653 cpu_entry *cpu = cpudata + cpunum; in timer_iscpususpended() 664 cpu_entry *cpu = cpudata + cpunum; in timer_iscpuheld() 675 cpu_entry *cpu = cpudata + cpunum; in timer_suspendcpu_trigger() [all …]
|
/dports/sysutils/x86info/x86info-1b41e8b/vendors/amd/ |
H A D | machine_check.c | 22 void decode_athlon_machine_check(int cpunum) in decode_athlon_machine_check() argument 30 if (read_msr(cpunum, MCG_CAP, &val) != 1) in decode_athlon_machine_check() 41 if (read_msr(cpunum, MCG_STATUS, &val) == 1) { in decode_athlon_machine_check() 45 dumpmsr_bin (cpunum, MCG_STATUS, 32); in decode_athlon_machine_check() 54 if (read_msr(cpunum, MC_CTL, &val2) == 1) { in decode_athlon_machine_check() 67 if (read_msr(cpunum, MC_CTL+4, &val2) == 1) { in decode_athlon_machine_check() 83 if (read_msr(cpunum, MC_CTL+8, &val2) == 1) { in decode_athlon_machine_check() 109 dumpmsr_bin (cpunum, MC_CTL+i*4, 32); in decode_athlon_machine_check() 111 dumpmsr_bin (cpunum, MC_STATUS+i*4, 32); in decode_athlon_machine_check() 113 dumpmsr_bin (cpunum, MC_ADDR+i*4, 32); in decode_athlon_machine_check() [all …]
|
/dports/games/libretro-fbneo/FBNeo-bbe3c05/src/burn/devices/ |
H A D | midtcs.cpp | 40 INT32 cpunum = M6809GetActive(); in tcs_data_write() local 41 if (cpunum == -1) { in tcs_data_write() 44 else if (cpunum != cpu_select) in tcs_data_write() 53 if (cpunum == -1) { in tcs_data_write() 56 else if (cpunum != cpu_select) in tcs_data_write() 59 M6809Open(cpunum); in tcs_data_write() 77 if (cpunum == -1) { in tcs_reset_write() 80 else if (cpunum != cpu_select) in tcs_reset_write() 86 if (cpunum == -1) { in tcs_reset_write() 92 M6809Open(cpunum); in tcs_reset_write() [all …]
|
/dports/games/libretro-fbalpha/fbalpha-84eb9d9/src/burn/devices/ |
H A D | midtcs.cpp | 40 INT32 cpunum = M6809GetActive(); in tcs_data_write() local 41 if (cpunum == -1) { in tcs_data_write() 44 else if (cpunum != cpu_select) in tcs_data_write() 53 if (cpunum == -1) { in tcs_data_write() 56 else if (cpunum != cpu_select) in tcs_data_write() 59 M6809Open(cpunum); in tcs_data_write() 77 if (cpunum == -1) { in tcs_reset_write() 80 else if (cpunum != cpu_select) in tcs_reset_write() 86 if (cpunum == -1) { in tcs_reset_write() 92 M6809Open(cpunum); in tcs_reset_write() [all …]
|
/dports/sysutils/x86info/x86info-1b41e8b/vendors/intel/ |
H A D | machine_check.c | 26 static void decode_mcg_ctl(int cpunum) in decode_mcg_ctl() argument 30 if (read_msr(cpunum, MCG_CTL, &val) == 1) { in decode_mcg_ctl() 35 if (read_msr(cpunum, MC_CTL, &val2) == 1) { in decode_mcg_ctl() 48 if (read_msr(cpunum, MC_CTL+4, &val2) == 1) { in decode_mcg_ctl() 64 if (read_msr(cpunum, MC_CTL+8, &val2) == 1) { in decode_mcg_ctl() 77 if (read_msr(cpunum, MC_CTL+12, &val2) == 1) { in decode_mcg_ctl() 95 if (read_msr(cpunum, MCG_CAP, &val) != 1) in decode_intel_machine_check() 115 decode_mcg_ctl(cpunum); in decode_intel_machine_check() 120 dumpmsr_bin (cpunum, MC_CTL+i*4, 64); in decode_intel_machine_check() 122 dumpmsr_bin (cpunum, MC_STATUS+i*4, 64); in decode_intel_machine_check() [all …]
|
/dports/emulators/quasi88/quasi88-0.6.4/src/snddrv/src/ |
H A D | driver.c | 76 int cpunum; 78 for (cpunum = 0; cpunum < MAX_CPU; cpunum++) 84 return &machine->cpu[cpunum]; 99 int cpunum; 101 for (cpunum = 0; cpunum < MAX_CPU; cpunum++) 102 if (machine->cpu[cpunum].tag && strcmp(machine->cpu[cpunum].tag, tag) == 0) 103 return &machine->cpu[cpunum]; 117 int cpunum; 119 for (cpunum = 0; cpunum < MAX_CPU; cpunum++) 120 if (machine->cpu[cpunum].tag && strcmp(machine->cpu[cpunum].tag, tag) == 0) [all …]
|
/dports/audio/deadbeef/deadbeef-0.7.2/plugins/ao/ |
H A D | cpuintrf.h | 267 int cpu_getstatus(int cpunum); 270 void cpu_setactivecpu(int cpunum); 504 const char *cpunum_reg_layout(int cpunum); 506 const char *cpunum_win_layout(int cpunum); 510 const char *cpunum_flags(int cpunum); 515 const char *cpunum_dump_state(int cpunum); 517 const char *cpunum_name(int cpunum); 519 const char *cpunum_core_family(int cpunum); 521 const char *cpunum_core_version(int cpunum); 523 const char *cpunum_core_file(int cpunum); [all …]
|
/dports/audio/deadbeef/deadbeef-0.7.2/plugins/ao/eng_psf/ |
H A D | cpuintrf.h | 267 int cpu_getstatus(int cpunum); 270 void cpu_setactivecpu(int cpunum); 504 const char *cpunum_reg_layout(int cpunum); 506 const char *cpunum_win_layout(int cpunum); 510 const char *cpunum_flags(int cpunum); 515 const char *cpunum_dump_state(int cpunum); 517 const char *cpunum_name(int cpunum); 519 const char *cpunum_core_family(int cpunum); 521 const char *cpunum_core_version(int cpunum); 523 const char *cpunum_core_file(int cpunum); [all …]
|
/dports/multimedia/audacious-plugins/audacious-plugins-4.1/src/psf/ |
H A D | cpuintrf.h | 267 int cpu_getstatus(int cpunum); 270 void cpu_setactivecpu(int cpunum); 504 const char *cpunum_reg_layout(int cpunum); 506 const char *cpunum_win_layout(int cpunum); 510 const char *cpunum_flags(int cpunum); 515 const char *cpunum_dump_state(int cpunum); 517 const char *cpunum_name(int cpunum); 519 const char *cpunum_core_family(int cpunum); 521 const char *cpunum_core_version(int cpunum); 523 const char *cpunum_core_file(int cpunum); [all …]
|
/dports/emulators/mess/mame-mame0226/src/mame/drivers/ |
H A D | cmi.cpp | 731 return perr_r<cpunum>(addr); in ram_range_r() 758 perr_w<cpunum>(addr, data); in ram_range_w() 868 if (cpunum) in periphs_range_r() 893 if (cpunum) in periphs_range_w() 956 m_m6809_bs_hack_cnt[cpunum]--; in irq_ram_r() 957 …RQ vector byte %d (offset %d): %02x\n", cpunum + 1, 1 - m_m6809_bs_hack_cnt[cpunum], offset, m_irq… in irq_ram_r() 1003 int cpunum = data & 1; in cpufunc_w() local 1015 case 6: if (cpunum == CPU_1) in cpufunc_w() 1288 m_curr_mapinfo[cpunum] = mapinfo; in update_address_space() 1861 if (cpunum == 0) in set_interrupt() [all …]
|
/dports/emulators/mame/mame-mame0226/src/mame/drivers/ |
H A D | cmi.cpp | 731 return perr_r<cpunum>(addr); in ram_range_r() 758 perr_w<cpunum>(addr, data); in ram_range_w() 868 if (cpunum) in periphs_range_r() 893 if (cpunum) in periphs_range_w() 956 m_m6809_bs_hack_cnt[cpunum]--; in irq_ram_r() 957 …RQ vector byte %d (offset %d): %02x\n", cpunum + 1, 1 - m_m6809_bs_hack_cnt[cpunum], offset, m_irq… in irq_ram_r() 1003 int cpunum = data & 1; in cpufunc_w() local 1015 case 6: if (cpunum == CPU_1) in cpufunc_w() 1288 m_curr_mapinfo[cpunum] = mapinfo; in update_address_space() 1861 if (cpunum == 0) in set_interrupt() [all …]
|