From 92a7c5e49c070cd01fb3797de997067025e62bd5 Mon Sep 17 00:00:00 2001 From: Scott Duensing Date: Tue, 6 Oct 2026 17:02:35 -0500 Subject: [PATCH] AGI and Space Taxi spun off into their own projects. --- src/core/surfaceInternal.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/surfaceInternal.h b/src/core/surfaceInternal.h index 2b92b42..8e55d64 100644 --- a/src/core/surfaceInternal.h +++ b/src/core/surfaceInternal.h @@ -85,11 +85,12 @@ extern uint8_t gStageMaxWord[SURFACE_HEIGHT]; // per-row bands themselves, so marking has nothing extra to keep in step -- // unlike the IIgs's gStageDirtyGroup below, which exists only because the // 65816 has no 32-bit load. gStageMinWord is aligned(2), which x86 (and a -// 68000 long load) accepts. +// 68000 long load) accepts; the type says so (aligned(2)), so a long read at +// a 2-byte boundary is defined C, not just something the CPUs tolerate. #define STAGE_DIRTY_GROUP4_SHIFT 2 #define STAGE_DIRTY_GROUP4_ROWS (1u << STAGE_DIRTY_GROUP4_SHIFT) #define STAGE_DIRTY_GROUP4_ALL_CLEAN 0xFFFFFFFFul -typedef uint32_t __attribute__((may_alias)) StageBandGroupT; +typedef uint32_t __attribute__((may_alias, aligned(2))) StageBandGroupT; #define STAGE_DIRTY_GROUP4_CLEAN(_g) (((const StageBandGroupT *)(const void *)gStageMinWord)[_g] == STAGE_DIRTY_GROUP4_ALL_CLEAN) // Present-path telemetry (NATIVE-PERF Phase 6 W0, IIgs added W2).