Statistics
| Branch: | Revision:

root / target-s390x / cc_helper.c @ 5b50e790

History | View | Annotate | Download (12.7 kB)

# Date Author Comment
6e2704e7 01/05/2013 10:18 pm Richard Henderson

target-s390: Convert IPM

Note that the previous placement of the PM field was incorrect.

Signed-off-by: Richard Henderson <>

102bf2c6 01/05/2013 10:18 pm Richard Henderson

target-s390: Convert FLOGR

Signed-off-by: Richard Henderson <>

587626f8 01/05/2013 10:18 pm Richard Henderson

target-s390: Convert FP ADD, COMPARE, LOAD TEST/ROUND/LENGTHENED

Signed-off-by: Richard Henderson <>

443aaeb8 01/05/2013 10:18 pm Richard Henderson

target-s390: Cleanup cc computation helpers

The inline markers hid the fact that {n}abs_32 were unused
because of typos in the main do_calc_cc function. Let the
compiler handle auto-inlining here.

Signed-off-by: Richard Henderson <>

58a9e35b 01/05/2013 10:18 pm Richard Henderson

target-s390: Convert INSERT CHARACTERS UNDER MASK

Change the CC handling to be more like TEST UNDER MASK, with val & mask.
This lets us handle ICMH much more like ICM.

Signed-off-by: Richard Henderson <>

cbe24bfa 01/05/2013 10:18 pm Richard Henderson

target-s390: Convert SHIFT, ROTATE SINGLE

Note that we were missing the 32-bit SLA.

Signed-off-by: Richard Henderson <>

00d2dc19 01/05/2013 10:18 pm Richard Henderson

target-s390: Convert TEST UNDER MASK

Signed-off-by: Richard Henderson <>

4e4bb438 01/05/2013 10:00 pm Richard Henderson

target-s390: Convert ADD LOGICAL CARRY and SUBTRACT LOGICAL BORROW

I'm resonably certain that the carry/borrow-out condition for both
helpers was incorrect, failing to take into account the carry-in.
Adding the new CC_OP codes also allows removing the awkward interface...

a78b0504 09/10/2012 02:38 pm Blue Swirl

target-s390x: split condition code helpers

Move condition code helpers to cc_helper.c.

Signed-off-by: Blue Swirl <>
Signed-off-by: Alexander Graf <>

449c0d70 09/10/2012 02:38 pm Blue Swirl

target-s390x: avoid AREG0 for FPU helpers

Make FPU helpers take a parameter for CPUState instead
of relying on global env.

Introduce temporary wrappers for FPU load and store ops.

Signed-off-by: Blue Swirl <>
Signed-off-by: Alexander Graf <>

932385a3 09/10/2012 02:38 pm Blue Swirl

target-s390x: avoid AREG0 for condition code helpers

Make condition code helpers take a parameter for CPUState instead
of relying on global env.

Signed-off-by: Blue Swirl <>
Signed-off-by: Alexander Graf <>