Skip to content
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

emul-cache: Cache instruction decoding #527

Closed
wants to merge 1 commit into from
Closed

emul-cache: Cache instruction decoding #527

wants to merge 1 commit into from

Conversation

naure
Copy link
Collaborator

@naure naure commented Nov 1, 2024

Issue #524

This is an approach to accelerate decoding. The original idea was to pre-decode all instructions of the program.

This PR does it by caching instead. It caches from instruction word to decoded structure. This may make the emulator marginally faster; did not benchmark.

In principle it could cache from PC to decoded, saving one hash table lookup. However, that’s a little more complicated because you’d need to change the tracer too.

Copy link
Collaborator

@matthiasgoergens matthiasgoergens left a comment

Choose a reason for hiding this comment

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

I don't think this is useful. It mostly just adds more complexity, and doesn't actually simplify anything.

@naure naure closed this Nov 4, 2024
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.

2 participants