Skip to content

Conversation

jserv
Copy link
Contributor

@jserv jserv commented Oct 15, 2025

This introduces SYSTEM_MMIO feature flag to properly gate MMIO-related code in JIT. This flag is enabled only when SYSTEM=1 and ELF_LOADER=0 (Linux kernel mode), preventing compilation errors when both SYSTEM and ELF_LOADER are enabled.


Summary by cubic

Fix JIT build when SYSTEM and ELF_LOADER are both enabled by gating MMIO code to Linux kernel mode only. This prevents compilation errors while keeping MMIO for kernel emulation.

  • Bug Fixes
    • Introduced RV32_FEATURE_SYSTEM_MMIO (enabled when SYSTEM=1 and ELF_LOADER=0).
    • Switched JIT MMIO checks to RV32_HAS(SYSTEM_MMIO) in jit.c and rv32_jit.c.
    • Scoped MMIO macros in system.h behind !RV32_HAS(ELF_LOADER) to avoid conflicts.

This introduces SYSTEM_MMIO feature flag to properly gate MMIO-related
code in JIT. This flag is enabled only when SYSTEM=1 and ELF_LOADER=0
(Linux kernel mode), preventing compilation errors when both SYSTEM and
ELF_LOADER are enabled.
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