reorganize libmwemu/src into logical module groups#164
Merged
sha0coder merged 2 commits intosha0coder:mainfrom Apr 5, 2026
Merged
reorganize libmwemu/src into logical module groups#164sha0coder merged 2 commits intosha0coder:mainfrom
sha0coder merged 2 commits intosha0coder:mainfrom
Conversation
Group ~20 top-level files and ~16 subdirectories into 7 parent modules: - arch/: Arch enum + x86/ (regs, flags, FPU, eflags, context) + aarch64/ (regs) - loaders/: binary format parsers — elf/, macho/, pe/ - threading/: scheduler, thread context, crit_state, global_locks - exception/: SEH/VEH/UEF handlers, exception types - windows/: peb/, structures/, kuser_shared, constants - debug/: console, script, GDB server, breakpoints, tracing, definitions - utils/: macros, ANSI colors, helper utilities Also: - Move banzai.rs into api/ (tracks unimplemented API param counts) - Move emu_context.rs into emu/ (thread-local emu access) - Add CLAUDE.md with Apple Silicon cross-compile gotcha and module layout - Fix unused import warnings and unreachable pattern in libsystem.rs - Preserve backward-compatible re-exports in lib.rs for external crates All 250+ constants.rs references updated to windows::constants path. lib.rs re-exports (regs64, eflags, flags, fpu, winapi, etc.) maintained for mwemu, pymwemu, and mwemu-test compatibility. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The x86_64 emulator produces incorrect results when compiled natively for aarch64. Auto-detect Apple Silicon in the Makefile and pass --target x86_64-apple-darwin to all cargo commands. Add the corresponding rustup target to CI for macOS ARM runners. Clean up stale commented-out CI steps. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #163