mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-10-07 03:29:37 +00:00
Update docs on dynamic condition code calculation
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
d084469ca0
commit
f0f26a06d5
|
@ -363,7 +363,9 @@ look at @code{tcg/README}.
|
||||||
Lazy evaluation of CPU condition codes (@code{EFLAGS} register on x86)
|
Lazy evaluation of CPU condition codes (@code{EFLAGS} register on x86)
|
||||||
is important for CPUs where every instruction sets the condition
|
is important for CPUs where every instruction sets the condition
|
||||||
codes. It tends to be less important on conventional RISC systems
|
codes. It tends to be less important on conventional RISC systems
|
||||||
where condition codes are only updated when explicitly requested.
|
where condition codes are only updated when explicitly requested. On
|
||||||
|
Sparc64, costly update of both 32 and 64 bit condition codes can be
|
||||||
|
avoided with lazy evaluation.
|
||||||
|
|
||||||
Instead of computing the condition codes after each x86 instruction,
|
Instead of computing the condition codes after each x86 instruction,
|
||||||
QEMU just stores one operand (called @code{CC_SRC}), the result
|
QEMU just stores one operand (called @code{CC_SRC}), the result
|
||||||
|
@ -376,8 +378,8 @@ conditional branches.
|
||||||
@code{CC_OP} is almost never explicitly set in the generated code
|
@code{CC_OP} is almost never explicitly set in the generated code
|
||||||
because it is known at translation time.
|
because it is known at translation time.
|
||||||
|
|
||||||
The lazy condition code evaluation is used on x86, m68k and cris. ARM
|
The lazy condition code evaluation is used on x86, m68k, cris and
|
||||||
uses a simplified variant for the N and Z flags.
|
Sparc. ARM uses a simplified variant for the N and Z flags.
|
||||||
|
|
||||||
@node CPU state optimisations
|
@node CPU state optimisations
|
||||||
@section CPU state optimisations
|
@section CPU state optimisations
|
||||||
|
|
Loading…
Reference in a new issue