Skip to content

halfix: 64-bit drive, 4GiB chunk fix, IndexedDB idb: backend, WASM 1536MB heap - #48

Open
warsang wants to merge 1 commit into
nepx:masterfrom
warsang:halfix/win10-22h2-lab
Open

halfix: 64-bit drive, 4GiB chunk fix, IndexedDB idb: backend, WASM 1536MB heap#48
warsang wants to merge 1 commit into
nepx:masterfrom
warsang:halfix/win10-22h2-lab

Conversation

@warsang

@warsang warsang commented Sep 2, 2026

Copy link
Copy Markdown

Win10 22H2 x32 lab fixes (see warsang/halfix halfix/win10-22h2-lab):

  • drive.c: 64-bit size, ALLOW_64BIT_OFFSETS, libhalfix.js chunk math, IndexedDBImage
  • makefile: WASM 1536MB heap, -DEMSCRIPTEN, SDL/arm64 int3 guard
  • win10.conf: Bochs BIOS, 1024M

Tested native 1024M boots to 07c0:0000 and web boots to BIOS.

From https://github.com/warsang/halfix/tree/halfix/win10-22h2-lab

…36MB heap, SDL/arm64 int3 guard

- widen drive_info_file size to 64-bit (12B info.dat) and ALLOW_64BIT_OFFSETS for Emscripten to support >4GiB (Win10 16-20GiB)
- fix libhalfix.js/js FileImage chunk math (<<18 -> *262144) and XHR infoDan 8->12B pad, add IndexedDBImage (idb:halfix-win10) for reload-persistent 20GiB
- makefile: -Wno-error for clang21, -DEMSCRIPTEN for int3 guard, TOTAL_MEMORY 1536MB + ALLOW_MEMORY_GROWTH for 1024M guest
- util.c/opcodes.c: int3 -> __builtin_trap on arm64
- win10.conf: Bochs BIOS, 1024M, ata0-master hd + ata0-slave cd, boot cd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant