Skip to content

Fix T2C in system simulation #593

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vacantron
Copy link
Collaborator

@vacantron vacantron commented Apr 29, 2025

  • Add MMU-related code in memory operation
  • Fix indirect branch handling

Summary by Bito

This pull request enhances the memory management unit (MMU) functionality and refines T2C operations by refactoring read/write processes and improving indirect branch handling. Key updates include modifications to the JIT cache structure for better key management, aimed at boosting performance and reliability in system simulations.

Unit tests added: False

Estimated effort to review (1-5, lower is better): 2 - The changes are focused and well-defined, making the review process straightforward.

@jserv jserv added this to the release-2025.1 milestone Apr 29, 2025
@jserv jserv requested a review from ChinYikMing April 29, 2025 20:31
Copy link
Collaborator

@ChinYikMing ChinYikMing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the ENABLE_T2C=0 option for macOS host as well.

make distclean && make INITRD_SIZE=32 ENABLE_SYSTEM=1 ENABLE_JIT=1 ENABLE_T2C=0 ENABLE_MOP_FUSION=0 $PARALLEL && make ENABLE_SYSTEM=1 artifact $PARALLEL

make ENABLE_SYSTEM=1 ENABLE_JIT=1 ENABLE_T2C=0 ENABLE_MOP_FUSION=0 clean

- Add MMU-related code in memory operation
- Fix indirect branch handling
LLVMBuildCall2(*builder, mmu_fn_type, mmu_fn_ptr, params, 3, ""); \
}

t2c_mmu_load_impl(lb, mmu_read_b, 8, true);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we enforce capitalization for consistency (e.g., BRANCH_FUNC in the same file) in such function declarations?

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.

3 participants