MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / custom_reset_cpu

Function custom_reset_cpu

src/newcpu.cpp:5608–5621  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5606#endif
5607
5608static void custom_reset_cpu(bool hardreset, bool keyboardreset)
5609{
5610#ifdef WITH_THREADED_CPU
5611 if (is_cpu_thread()) {
5612 __atomic_store_n(&cpu_thread_reset, 1 | (hardreset ? 2 : 0) | (keyboardreset ? 4 : 0), __ATOMIC_RELEASE);
5613 uae_sem_post(&cpu_wakeup_sema);
5614 uae_sem_wait(&cpu_in_sema);
5615 } else {
5616 custom_reset(hardreset, keyboardreset);
5617 }
5618#else
5619 custom_reset(hardreset, keyboardreset);
5620#endif
5621}
5622
5623#ifdef JIT /* Completely different run_2 replacement */
5624

Callers 1

cpuresetFunction · 0.85

Calls 2

is_cpu_threadFunction · 0.85
custom_resetFunction · 0.85

Tested by

no test coverage detected