Statistics
| Branch: | Revision:

root / target-i386 / cc_helper.c @ feature-archipelago

History | View | Annotate | Download (10.1 kB)

# Date Author Comment
d2fe51bd 02/28/2014 06:43 pm Richard Henderson

target-i386: Fix CC_OP_CLR vs PF

Parity should be set for a zero result.

Cc:
Reviewed-by: Paolo Bonzini <>
Reviewed-by: Edgar E. Iglesias <>
Signed-off-by: Richard Henderson <>

80cf2c81 06/15/2013 08:50 pm liguang

target-i386/helper: remove DF macro

Signed-off-by: liguang <>
Reviewed-by: Andreas Färber <>
Reviewed-by: Richard Henderson <>
Signed-off-by: Blue Swirl <>

cd7f97ca 02/20/2013 09:05 am Richard Henderson

target-i386: Implement ADX extension

Signed-off-by: Richard Henderson <>

436ff2d2 02/20/2013 09:05 am Richard Henderson

target-i386: Add CC_OP_CLR

Special case xor with self. We need not even store the known
zero into cc_src.

Signed-off-by: Richard Henderson <>

bc4b43dc 02/19/2013 01:52 am Richard Henderson

target-i386: Implement BLSR, BLSMSK, BLSI

Do all of group 17 at one time for ease.

Signed-off-by: Richard Henderson <>

988c3eb0 02/19/2013 01:39 am Richard Henderson

target-i386: Use CC_SRC2 for ADC and SBB

Add another slot in ENV and store two of the three inputs. This lets us
do less work when carry-out is not needed, and avoids the unpredictable
CC_OP after translating these insns.

Signed-off-by: Richard Henderson <>

db9f2597 02/19/2013 01:25 am Richard Henderson

target-i386: Make helper_cc_compute_{all,c} const

Pass the data in explicitly, rather than indirectly via env.
This avoids all sorts of unnecessary register spillage.

Signed-off-by: Richard Henderson <>

8601c0b6 02/19/2013 01:21 am Richard Henderson

target-i386: Don't reference ENV through most of cc helpers

In preparation for making this a const helper.

By using the proper types in the parameters to the helper functions,
we get to avoid quite a lot of subsequent casting.

Signed-off-by: Richard Henderson <>

a9321a4d 10/01/2012 04:04 pm H. Peter Anvin

x86: Implement SMEP and SMAP

This patch implements Supervisor Mode Execution Prevention (SMEP) and
Supervisor Mode Access Prevention (SMAP) for x86. The purpose of the
patch, obviously, is to help kernel developers debug the support for
those features.
...

f0967a1a 08/14/2012 10:01 pm Blue Swirl

x86: avoid AREG0 for condition code helpers

Add an explicit CPUX86State parameter instead of relying on AREG0.

Signed-off-by: Blue Swirl <>

5918fffb 06/28/2012 11:28 pm Blue Swirl

x86: split off condition code helpers

Move condition code helpers to cc_helper.c.

Move the shared inline functions lshift(), cpu_load_eflags() and
cpu_cc_compute_all() to cpu.h.

Signed-off-by: Blue Swirl <>