From 8b02ac7db53918533f24cbe9a62d6d3cd1962104 Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Tue, 10 Nov 2026 12:52:46 +0100 Subject: [PATCH] feat: map xemu flash images by 64 KiB granule xbox_flash_init maps any image whose size is a positive multiple of 65536 bytes (hw/xbox/xbox.c:75-81), not three listed sizes. --- emulators/xemu.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/emulators/xemu.yml b/emulators/xemu.yml index 86b4b40c1..573fd6be8 100644 --- a/emulators/xemu.yml +++ b/emulators/xemu.yml @@ -131,9 +131,10 @@ files: - name: Complex_4627.bin mode: standalone required: true - size: [262144, 524288, 1048576] + min_size: 65536 + size_multiple: 65536 validation: [size] - size_note: "Any size that is a positive multiple of 64 KiB is mapped, and the image is mirrored across the 16 MB flash window" + size_note: "Any size that is a positive multiple of 64 KiB is mapped (hw/xbox/xbox.c:75-81), and the image is mirrored across the 16 MB flash window" config_key: sys.files.flashrom_path found_by: content description: "Xbox flash ROM image" @@ -150,9 +151,10 @@ files: path: "xemu/Complex_4627.bin" aliases: [Complex_4627v1.03.bin] required: true - size: [262144, 524288, 1048576] + min_size: 65536 + size_multiple: 65536 validation: [size] - size_note: "Any size that is a positive multiple of 64 KiB is mapped, and the image is mirrored across the 16 MB flash window" + size_note: "Any size that is a positive multiple of 64 KiB is mapped (hw/xbox/xbox.c:75-81), and the image is mirrored across the 16 MB flash window" description: "Xbox flash ROM image" note: >- The core tries Complex_4627v1.03.bin, then Complex_4627.bin, in