mirror of
https://github.com/RetroPortingToolKit/psxrecomp
synced 2026-10-28 19:07:47 -04:00
6f7fcdc89b
The "v4" suffix was a holdover from iterative project restarts. There is now one psxrecomp; all identifiers, include guards, cmake variables, function names, log strings, schema tags, and tool paths drop the v4 suffix. Changes: - PSXRECOMP_V4_ROOT → PSXRECOMP_ROOT (cmake) - PSXRECOMP_V4_RUNTIME_SOURCES/_INCLUDE_DIRS/_BIOS_GENERATED → no V4 - psxrecomp_v4_add_runtime_target → psxrecomp_add_runtime_target - PSXRECOMP_V4_*_H include guards → PSXRECOMP_*_H - "psxrecomp-v4" log/window strings → "psxrecomp" - Schema version strings in recompiler JSON output - Tool script hardcoded absolute paths updated Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
30 lines
824 B
C
30 lines
824 B
C
#ifndef PSXRECOMP_PSX_CYCLES_H
|
|
#define PSXRECOMP_PSX_CYCLES_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* PSX guest CPU cycle clock — the single source of truth for guest-
|
|
* visible time. Peripherals derive all schedules from this counter.
|
|
*
|
|
* Phase 1.0e-a (scaffold): the counter exists and psx_advance_cycles is
|
|
* defined, but no caller invokes psx_advance_cycles yet. Validation:
|
|
* counter remains 0 throughout a normal session. */
|
|
extern uint64_t psx_cycle_count;
|
|
|
|
/* Advance guest time. Negative or zero is a no-op. Phase 1.0e-a body
|
|
* just updates the counter; 1.0e-b adds peripheral *_advance() calls. */
|
|
void psx_advance_cycles(uint32_t cycles);
|
|
|
|
/* Read accessor for telemetry. */
|
|
uint64_t psx_get_cycle_count(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* PSXRECOMP_PSX_CYCLES_H */
|