From 2f5f60eb6c7334b4479078ede27d26f05fa2f6e9 Mon Sep 17 00:00:00 2001 From: Baptiste MOINE Date: Sat, 2 May 2026 15:34:56 +0200 Subject: [PATCH] Map iROM and IPATCH CAM regions for Hekate Bootrom Info --- main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/main.cpp b/main.cpp index 691a9d5..1e61ea5 100644 --- a/main.cpp +++ b/main.cpp @@ -228,6 +228,14 @@ static uc_engine *setup_emulation(EmuState *state, uint8_t *payload, size_t payl uc_mem_map(uc, 0x7000E000, 0x1000, UC_PROT_ALL); // RTC/PMC uc_mem_map(uc, 0x6000C000, 0x2000, UC_PROT_ALL); // SYSREG/APB_SEMAPH + // BootROM (iROM) at 0x100000, 96 KB. We don't have the real BootROM + // contents, but mapping the region as zero-filled lets Hekate's "Bootrom + // Info" / "Dump Bootrom" features read it without faulting. The IPATCH + // CAM at 0x6001DC00 is also zero-mapped so the ipatches table renders + // empty (which matches an unpatched SoC). + uc_mem_map(uc, 0x00100000, 0x18000, UC_PROT_READ | UC_PROT_EXEC); // iROM + uc_mem_map(uc, 0x6001D000, 0x1000, UC_PROT_ALL); // IPATCH CAM page + // ---- heap region (32MB @ 0x90000000) ---- // Already mapped as part of 2GB DRAM chunk