Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
plugins: optimize cpu_index code generation
When running with a single vcpu, we can return a constant instead of a load when accessing cpu_index. A side effect is that all tcg operations using it are optimized, most notably scoreboard access. When running a simple loop in user-mode, the speedup is around 20%. Signed-off-by: Pierrick Bouvier <[email protected]> --- v2: - no need to do a flush, as user-mode already does it when spawning a second cpu (to honor CF_PARALLEL flags). - change condition detection to use CF_PARALLEL instead Signed-off-by: Pierrick Bouvier <[email protected]>
- Loading branch information