Merge "QEMU update with VENOM (CVE-2015-3456) patch" into 5.0.2
[packages/centos6/qemu.git] / 0096-tcg-Adjust-descriptions-of-cond-opcodes.patch
1 From a2c90b264762d3ddcc9a830653315a6fe9107055 Mon Sep 17 00:00:00 2001
2 From: Richard Henderson <rth@twiddle.net>
3 Date: Fri, 21 Sep 2012 17:18:09 -0700
4 Subject: [PATCH] tcg: Adjust descriptions of *cond opcodes
5
6 The README file documented the operand ordering of the tcg_gen_*
7 functions.  Since we're documenting opcodes here, use the true
8 operand ordering.
9
10 Signed-off-by: Richard Henderson <rth@twiddle.net>
11 Cc: malc <av1474@comtv.ru>
12 Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
13 Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
14 ---
15  tcg/README | 10 +++++-----
16  1 file changed, 5 insertions(+), 5 deletions(-)
17
18 diff --git a/tcg/README b/tcg/README
19 index 33783ee..27846f1 100644
20 --- a/tcg/README
21 +++ b/tcg/README
22 @@ -141,7 +141,7 @@ Define label 'label' at the current program point.
23  
24  Jump to label.
25  
26 -* brcond_i32/i64 cond, t0, t1, label
27 +* brcond_i32/i64 t0, t1, cond, label
28  
29  Conditional jump if t0 cond t1 is true. cond can be:
30      TCG_COND_EQ
31 @@ -301,13 +301,13 @@ This operation would be equivalent to
32  
33  ********* Conditional moves
34  
35 -* setcond_i32/i64 cond, dest, t1, t2
36 +* setcond_i32/i64 dest, t1, t2, cond
37  
38  dest = (t1 cond t2)
39  
40  Set DEST to 1 if (T1 cond T2) is true, otherwise set to 0.
41  
42 -* movcond_i32/i64 cond, dest, c1, c2, v1, v2
43 +* movcond_i32/i64 dest, c1, c2, v1, v2, cond
44  
45  dest = (c1 cond c2 ? v1 : v2)
46  
47 @@ -360,7 +360,7 @@ The following opcodes are internal to TCG.  Thus they are to be implemented by
48  32-bit host code generators, but are not to be emitted by guest translators.
49  They are emitted as needed by inline functions within "tcg-op.h".
50  
51 -* brcond2_i32 cond, t0_low, t0_high, t1_low, t1_high, label
52 +* brcond2_i32 t0_low, t0_high, t1_low, t1_high, cond, label
53  
54  Similar to brcond, except that the 64-bit values T0 and T1
55  are formed from two 32-bit arguments.
56 @@ -377,7 +377,7 @@ is returned in two 32-bit outputs.
57  Similar to mul, except two 32-bit (unsigned) inputs T1 and T2 yielding
58  the full 64-bit product T0.  The later is returned in two 32-bit outputs.
59  
60 -* setcond2_i32 cond, dest, t1_low, t1_high, t2_low, t2_high
61 +* setcond2_i32 dest, t1_low, t1_high, t2_low, t2_high, cond
62  
63  Similar to setcond, except that the 64-bit values T1 and T2 are
64  formed from two 32-bit arguments.  The result is a 32-bit value.
65 -- 
66 1.7.12.1
67