-
Couldn't load subscription status.
- Fork 119
Advance timer properly during JIT execution #592
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmarks
| Benchmark suite | Current: a27625b | Previous: 5001cfd | Ratio |
|---|---|---|---|
Dhrystone |
1285 Average DMIPS over 10 runs |
1087 Average DMIPS over 10 runs |
0.85 |
Coremark |
915.126 Average iterations/sec over 10 runs |
915.504 Average iterations/sec over 10 runs |
1.00 |
This comment was automatically generated by workflow using github-action-benchmark.
f478189 to
e2a430a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix typo: "untill"
In the current implementation, the timer would not be updated until the control flow exits the JIT-ed code. This commit updates the timer correctly after every instruction has been dispatched.
|
Thank @vacantron for contributing! |
In the current implementation, the timer would not be updated until the control flow exits the JIT-ed code. This commit updates the timer correctly after every instruction has been dispatched.
Summary by Bito
This pull request enhances the timer functionality in the JIT execution context by replacing the static counter with a dynamic timer variable. It introduces new methods for timer management in JIT compilation and T2C generation, improving the accuracy of time-related operations.Unit tests added: False
Estimated effort to review (1-5, lower is better): 2 - The changes are straightforward and well-defined, making the review process relatively simple.