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

Add specialized instruction to rv32emu (2) #339

Closed
wants to merge 8 commits into from

Conversation

HenryChaing
Copy link

Overview

In order to optimize the performance of the interpreter for frequently occurring instructions during runtime, I specialized the addi and beq、bne instruction by introducing several specialized methods at runtime to accelerate the execution speed.

Modified Files

  • decode.[ch]
  • rv32_template.c
  • rv32_constopt.c

Description of Changes

The changed of decode.[ch] is responsible for adding specialized instructions to the instruction table and, during the decode phase, determining if the addi or two branch instruction is specialized. As for rv32_template.c and rv32_constopt.c, they will include instruction methods for emulate.c , and I have also added specialized instructions for them here.

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