Statistics
| Branch: | Revision:

root / target-s390x @ cfef53e3

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

target-s390: Convert SPX, STPX

Signed-off-by: Richard Henderson <>

411fea3d 01/05/2013 10:18 pm Richard Henderson

target-s390: Convert STAP

Signed-off-by: Richard Henderson <>

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

target-s390: Convert IPTE

Signed-off-by: Richard Henderson <>

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 <>

374724f9 01/05/2013 10:18 pm Richard Henderson

target-s390: Convert CKSM

Signed-off-by: Richard Henderson <>

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

target-s390: Convert EAR, SAR

Signed-off-by: Richard Henderson <>

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

target-s390: Convert MVPG

Signed-off-by: Richard Henderson <>

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

target-s390: Convert CLST, MVST

Signed-off-by: Richard Henderson <>

4600c994 01/05/2013 10:18 pm Richard Henderson

target-s390: Convert SRST

Signed-off-by: Richard Henderson <>

71bd6669 01/05/2013 10:18 pm Richard Henderson

target-s390: Convert STIDP

Signed-off-by: Richard Henderson <>

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

target-s390: Convert SCK

Signed-off-by: Richard Henderson <>

434c91a5 01/05/2013 10:18 pm Richard Henderson

target-s390: Convert STCK

Signed-off-by: Richard Henderson <>

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

target-s390: Convert SCKC, STCKC

Signed-off-by: Richard Henderson <>

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

target-s390: Convert SPT, STPT

Signed-off-by: Richard Henderson <>

28d55556 01/05/2013 10:18 pm Richard Henderson

target-s390: Convert SPKA

Signed-off-by: Richard Henderson <>

0568d8aa 01/05/2013 10:18 pm Richard Henderson

target-s390: Convert PTLB

Signed-off-by: Richard Henderson <>

1a800a2d 01/05/2013 10:18 pm Richard Henderson

target-s390: Convert FP SUBTRACT

Signed-off-by: Richard Henderson <>

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

target-s390: Convert FP DIVIDE

Signed-off-by: Richard Henderson <>

83b00736 01/05/2013 10:18 pm Richard Henderson

target-s390: Convert FP MULTIPLY

Signed-off-by: Richard Henderson <>

722bfec3 01/05/2013 10:18 pm Richard Henderson

target-s390: Convert MULTIPLY AND ADD, SUBTRACT

Use the new float*_muladd interface to softfloat.

Signed-off-by: Richard Henderson <>

31aa97d1 01/05/2013 10:18 pm Richard Henderson

target-s390: Convert TEST DATA CLASS

Signed-off-by: Richard Henderson <>

5d7fd045 01/05/2013 10:18 pm Richard Henderson

target-s390: Convert FP LOAD COMPLIMENT, NEGATIVE, POSITIVE

Signed-off-by: Richard Henderson <>

16d7b2a4 01/05/2013 10:18 pm Richard Henderson

target-s390: Convert FP SQUARE ROOT

Signed-off-by: Richard Henderson <>

24db8412 01/05/2013 10:18 pm Richard Henderson

target-s390: Convert LOAD ZERO

Signed-off-by: Richard Henderson <>

68c8bd93 01/05/2013 10:18 pm Richard Henderson

target-s390: Convert CONVERT TO FIXED

Signed-off-by: Richard Henderson <>

683bb9a8 01/05/2013 10:18 pm Richard Henderson

target-s390: Convert CONVERT FROM FIXED

Signed-off-by: Richard Henderson <>

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

target-s390: Convert FLOGR

Signed-off-by: Richard Henderson <>

8379bfdb 01/05/2013 10:18 pm Richard Henderson

target-s390: Convert LFPC, SFPC

Note that we were failing to set the rounding mode in fpu_status.

Signed-off-by: Richard Henderson <>

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

target-s390: Convert EFPC, STFPC

Signed-off-by: Richard Henderson <>

504488b8 01/05/2013 10:18 pm Richard Henderson

target-s390: Convert LCTL, STCTL

Signed-off-by: Richard Henderson <>

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

target-s390: Convert COMPARE AND SWAP

Signed-off-by: Richard Henderson <>

32a44d58 01/05/2013 10:18 pm Richard Henderson

target-s390: Convert CLM

Signed-off-by: Richard Henderson <>

2ae68059 01/05/2013 10:18 pm Richard Henderson

target-s390: Convert STCM

Signed-off-by: Richard Henderson <>

112bf079 01/05/2013 10:18 pm Richard Henderson

target-s390: Convert TPROT

Signed-off-by: Richard Henderson <>

3e398cf9 01/05/2013 10:18 pm Richard Henderson

target-s390: Convert LOAD CONTROL, part 2

Signed-off-by: Richard Henderson <>

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

target-s390: Convert LOAD REVERSED

Signed-off-by: Richard Henderson <>

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

target-s390: Convert STORE REVERSED

Signed-off-by: Richard Henderson <>

7691c23b 01/05/2013 10:18 pm Richard Henderson

target-s390: Convert LLGT

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 <>

77f8d6c3 01/05/2013 10:18 pm Richard Henderson

target-s390: Convert LOAD, STORE MULTIPLE

Signed-off-by: Richard Henderson <>

6a04d76a 01/05/2013 10:18 pm Richard Henderson

target-s390: Convert MOVE

Signed-off-by: Richard Henderson <>

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

target-s390: Convert NI, XI, OI

Signed-off-by: Richard Henderson <>

145cdb40 01/05/2013 10:18 pm Richard Henderson

target-s390: Convert STNSM, STOSM

Signed-off-by: Richard Henderson <>

7df3e93a 01/05/2013 10:18 pm Richard Henderson

target-s390: Convert LAM, STAM

Signed-off-by: Richard Henderson <>

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

target-s390: Convert CLCLE, MVCLE

Signed-off-by: Richard Henderson <>

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

target-s390: Convert MVC

The code that was in gen_op_mvc was a bit confused wrt what lengths
it wanted to handle. I also disbelieve that the inline memset is
worthwhile.

Signed-off-by: Richard Henderson <>

0a949039 01/05/2013 10:18 pm Richard Henderson

target-s390: Convert NC, XC, OC, TR, UNPK

Signed-off-by: Richard Henderson <>

4f7403d5 01/05/2013 10:18 pm Richard Henderson

target-s390: Convert CLC

Signed-off-by: Richard Henderson <>

97c3ab61 01/05/2013 10:18 pm Richard Henderson

target-s390: Convert MVCP, MVCS

Signed-off-by: Richard Henderson <>

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

target-s390: Convert LRA

Note that truncating the store to r1 based on PSW_MASK_64
is incorrect. We always modify the entire register.

Signed-off-by: Richard Henderson <>

0c240015 01/05/2013 10:18 pm Richard Henderson

target-s390: Convert SIGP

Signed-off-by: Richard Henderson <>

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

target-s390: Convert FP LOAD

Signed-off-by: Richard Henderson <>

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

target-s390: Convert INSERT CHARACTER

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 <>

6e764e97 01/05/2013 10:18 pm Richard Henderson

target-s390: Convert EXECUTE

Signed-off-by: Richard Henderson <>

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

target-s390: Convert FP STORE

Signed-off-by: Richard Henderson <>

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

target-s390: Convert CONVERT TO DECIMAL

Signed-off-by: Richard Henderson <>

7d30bb73 01/05/2013 10:18 pm Richard Henderson

target-s390: Convert SET SYSTEM MASK

Signed-off-by: Richard Henderson <>

8b5ff571 01/05/2013 10:18 pm Richard Henderson

target-s390: Convert LOAD PSW

Signed-off-by: Richard Henderson <>

972e35b9 01/05/2013 10:18 pm Richard Henderson

target-s390: Convert DIAGNOSE

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 <>

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

target-s390: Convert SHIFT DOUBLE

Signed-off-by: Richard Henderson <>

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

target-s390: Send signals for divide

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 <>

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

target-s390: Convert SET ADDRESSING MODE

Signed-off-by: Richard Henderson <>

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

target-s390: Convert SUPERVISOR CALL

Signed-off-by: Richard Henderson <>

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

target-s390: Convert MOVE LONG

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...

8ac33cdb 01/05/2013 10:00 pm Richard Henderson

target-s390: Convert BRANCH AND SAVE

Signed-off-by: Richard Henderson <>

7233f2ed 01/05/2013 10:00 pm Richard Henderson

target-s390: Convert BRANCH ON CONDITION

Signed-off-by: Richard Henderson <>

c61aad69 01/05/2013 10:00 pm Richard Henderson

target-s390: Convert BRANCH ON COUNT

Signed-off-by: Richard Henderson <>

891452e5 01/05/2013 10:00 pm Richard Henderson

target-s390: Convert DIVIDE

Signed-off-by: Richard Henderson <>

d5a103cd 01/05/2013 10:00 pm Richard Henderson

target-s390: Reorg exception handling

Make the user path more like the system path. Prepare for more kinds
of runtime exceptions. Rename ILC to ILEN to make it clear that we
want to pass around a full instruction length, rather than a "code"
that happens to be stored one bit left in a larger field....

d82287de 01/05/2013 10:00 pm Richard Henderson

target-s390: Convert ADD HALFWORD

Signed-off-by: Richard Henderson <>

3f4cb56a 01/05/2013 10:00 pm Richard Henderson

target-s390: Implement SUBTRACT HALFWORD

Signed-off-by: Richard Henderson <>

e272b3ac 01/05/2013 10:00 pm Richard Henderson

target-s390: Implement ADD LOGICAL WITH SIGNED IMMEDIATE

Signed-off-by: Richard Henderson <>

d1c04a2b 01/05/2013 10:00 pm Richard Henderson

target-s390: Convert MULTIPLY HALFWORD, SINGLE

Signed-off-by: Richard Henderson <>

d87aaf93 01/05/2013 10:00 pm Richard Henderson

target-s390: Convert 32-bit MULTIPLY, MULTIPLY LOGICAL

Signed-off-by: Richard Henderson <>

1ac5889f 01/05/2013 10:00 pm Richard Henderson

target-s390: Convert 64-bit MULTIPLY LOGICAL

Use a new "retxl" member of CPUS290XState to return the "eXtra Low" part
of a 128-bit value. That said, this will get used when two independent
values need returning (e.g. quotient+remainder) as well.

At the same time, shuffle the elements of CPUS390XState to get this new...

3bbfbd1f 01/05/2013 10:00 pm Richard Henderson

target-s390: Convert AND, OR, XOR

Signed-off-by: Richard Henderson <>

a7e836d5 01/05/2013 10:00 pm Richard Henderson

target-s390: Convert COMPARE, COMPARE LOGICAL

Signed-off-by: Richard Henderson <>

22c37a08 01/05/2013 10:00 pm Richard Henderson

target-s390: Convert LOAD, LOAD LOGICAL

Signed-off-by: Richard Henderson <>

aedec19d 01/05/2013 10:00 pm Richard Henderson

target-s390: Convert LOAD ADDRESS

Signed-off-by: Richard Henderson <>

c698d876 01/05/2013 10:00 pm Richard Henderson

target-s390: Convert LOAD (LOGICAL) BYTE, CHARACTER, HALFWORD

Signed-off-by: Richard Henderson <>

11bf2d73 01/05/2013 10:00 pm Richard Henderson

target-s390: Convert LOAD AND TEST

Signed-off-by: Richard Henderson <>

ade9dea4 01/05/2013 10:00 pm Richard Henderson

target-s390: Convert LOAD LOGICAL IMMEDIATE

Signed-off-by: Richard Henderson <>

b9bca3e5 01/05/2013 10:00 pm Richard Henderson

target-s390: Convert LOAD COMPLIMENT, POSITIVE, NEGATIVE

Signed-off-by: Richard Henderson <>

facfc864 01/05/2013 10:00 pm Richard Henderson

target-s390: Convert AND, OR, XOR, INSERT IMMEDIATE

Signed-off-by: Richard Henderson <>

2b280b97 01/05/2013 10:00 pm Richard Henderson

target-s390: Convert STORE

Signed-off-by: Richard Henderson <>

6ee77b16 01/05/2013 10:00 pm Richard Henderson

target-s390: Fix gdbstub

The real gdb protocol doesn't split out pc or cc as real registers.
Those are pseudos that are extracted as needed from the PSW. Don't
modify env->cc_op during read -- that way lies heisenbugs.

Fill in the XXX for the fp registers....

063eb0f3 01/05/2013 10:00 pm Richard Henderson

target-s390: Add missing temp_free in gen_op_calc_cc

Signed-off-by: Richard Henderson <>

431253c2 01/05/2013 10:00 pm Richard Henderson

target-s390: Use TCG registers for FPR

At the same time, tidy other usages of tcg_gen_deposit_i64.
In some cases we can "type cast" rather than extend, and in
others we can allow tcg_gen_deposit_i64 itself to optimize
the HOST_LONG_BITS==32 case.

Signed-off-by: Richard Henderson <>

7e68da2a 01/05/2013 10:00 pm Richard Henderson

target-s390: Register helpers

Which highlights a lot of cc helpers that no longer exist.

Signed-off-by: Richard Henderson <>

afd43fec 01/05/2013 10:00 pm Richard Henderson

target-s390: Fix SACF exit

DISAS_EXCP is exit via exception; we wanted DISAS_JUMP.
This matters when we start cleaning up the TB exit paths.

Signed-off-by: Richard Henderson <>

9d126faf 01/05/2013 10:00 pm Richard Henderson

target-s390: Fix BCR

There were are two exit paths for which we forgot to
copy s->cc_op back to the tcg register.

Signed-off-by: Richard Henderson <>

2f22e2ec 01/05/2013 10:00 pm Richard Henderson

target-s390: Tidy unconditional BRCL

Yes, we're about to rewrite all of this, but having this unconditional
jump recompute cc_op is a large source of "false diff errors" when
trying to examine before and after dumps.

Signed-off-by: Richard Henderson <>

51855ecf 01/05/2013 10:00 pm Richard Henderson

target-s390: Fix PSW_MASK handling

We were treating psw.mask as the 32-bit quantity it is in ESA mode.
In particular, the CC field was at the wrong place.

Signed-off-by: Richard Henderson <>

ad044d09 01/05/2013 10:00 pm Richard Henderson

target-s390: Add format based disassassmbly infrastructure

Signed-off-by: Richard Henderson <>

3fde06f5 01/05/2013 10:00 pm Richard Henderson

target-s390: Split out disas_jcc

Lots of duplicated code replaced with a couple of tables. We no longer
attempt to manually invert the logic operation: the comments now match
the code. In the fully general test, constant propagate (1 << (3 - cc))
into (8 >> cc)....