mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-29 05:13:54 -06:00
target-sparc: Don't compute full flags value so often
Avoid speculatively computing flags before every potentially trapping operation and instead do the flags computation when a trap actually occurs. This gives approximately 30% speedup in emulation. Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
6234ac09a9
commit
20132b9605
4 changed files with 26 additions and 19 deletions
|
@ -1114,6 +1114,11 @@ void cpu_loop (CPUSPARCState *env)
|
|||
while (1) {
|
||||
trapnr = cpu_sparc_exec (env);
|
||||
|
||||
/* Compute PSR before exposing state. */
|
||||
if (env->cc_op != CC_OP_FLAGS) {
|
||||
cpu_get_psr(env);
|
||||
}
|
||||
|
||||
switch (trapnr) {
|
||||
#ifndef TARGET_SPARC64
|
||||
case 0x88:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue