// SPDX-License-Identifier: GPL-3.0-or-later // Re-declares NanoBoyAdvance's interface (Copyright (C) fleroviux, GPL-3.0-or-later) so its // ARM core links into the referee; see referees/README.md. // Stand-in for NanoBoyAdvance's scheduler: the ARM core only uses it for the // two-cycle user-mode LDM bank conflict, which the referee clears after the // instruction (the corpus runs one instruction per case). #pragma once #include namespace nba::core { struct Scheduler { enum class EventClass : u16 { ARM_ldm_usermode_conflict }; template void Register(EventClass, T*, M, uint = 0) {} void Add(u64, EventClass, uint = 0, u64 = 0) { pending_ldm_conflict = true; } bool pending_ldm_conflict = false; }; } // namespace nba::core