From 2ed598fa2b1c8c2a2aa17e65b0894ba46f08a1b3 Mon Sep 17 00:00:00 2001 From: Lephe Date: Wed, 21 Oct 2020 14:29:58 +0200 Subject: [PATCH] gint/ram: accelerate SPU RAM discovery by jumping 32 bytes --- src/gint/ram.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gint/ram.c b/src/gint/ram.c index 7d14674..ec8ffee 100644 --- a/src/gint/ram.c +++ b/src/gint/ram.c @@ -98,7 +98,8 @@ static uint32_t region_size(uint8_t volatile *mem, int *reason, int use_lword) if(y) return size; } - size += use_lword ? 4 : 1; + /* In PXYRAM, skip some longwords to go faster */ + size += use_lword ? 32 : 1; } *reason = 3;