tcg patch queue
The following changes since commit 9e5319ca52a5b9e84d55ad9c36e2c0b317a122bb:
Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging (2019-10-04 18:32:34 +0100)
are available in the Git repository at:
https://github.com/rth7680/qemu.git tags/pull-tcg-20191013
for you to fetch changes up to d2f86bba6931388e275e8eb4ccd1dbcc7cae6328:
cpus: kick all vCPUs when running thread=single (2019-10-07 14:08:58 -0400)
----------------------------------------------------------------
Host vector support for tcg/ppc.
Fix thread=single cpu kicking.
----------------------------------------------------------------
Alex Bennée (1):
cpus: kick all vCPUs when running thread=single
Richard Henderson (22):
tcg/ppc: Introduce Altivec registers tcg/ppc: Introduce macro VX4()
tcg/ppc: Introduce macros VRT(), VRA(), VRB(), VRC() tcg/ppc: Create TCGPowerISA and have_isa tcg/ppc: Replace HAVE_ISA_2_06
tcg/ppc: Replace HAVE_ISEL macro with a variable tcg/ppc: Enable tcg backend vector compilation tcg/ppc: Add support for load/store/logic/comparison tcg/ppc: Add support for vector maximum/minimum tcg/ppc: Add support for vector add/subtract tcg/ppc: Add support for vector saturated add/subtract tcg/ppc: Support vector shift by immediate tcg/ppc: Support vector multiply
tcg/ppc: Support vector dup2
tcg/ppc: Enable Altivec detection
tcg/ppc: Update vector support for VSX tcg/ppc: Update vector support for v2.07 Altivec tcg/ppc: Update vector support for v2.07 VSX tcg/ppc: Update vector support for v2.07 FP tcg/ppc: Update vector support for v3.00 Altivec tcg/ppc: Update vector support for v3.00 load/store tcg/ppc: Update vector support for v3.00 dup/dupi
tcg/ppc/tcg-target.h | 51 ++- tcg/ppc/tcg-target.opc.h | 13 + cpus.c | 24 +- tcg/ppc/tcg-target.inc.c | 1118 ++++++++++++++++++++++++++++++++++++++++++---- 4 files changed, 1119 insertions(+), 87 deletions(-) create mode 100644 tcg/ppc/tcg-target.opc.h
[PULL 02/23] tcg/ppc: Introduce macro VX4()
Introduce macro VX4() used for encoding Altivec instructions.
--- tcg/ppc/tcg-target.inc.c | 1 + 1 file changed, 1 insertion(+)
tcg/ppc/tcg-target.inc.c +1 -0
@@ -319,6 +319,7 @@ static int tcg_target_const_match(tcg_target_long val, TCGType type,#define XO31 (opc) (OPCD(31)|((opc)<<1))#define XO58 (opc) (OPCD(58)|(opc))#define XO62 (opc) (OPCD(62)|(opc)) +#define VX4 (opc) (OPCD(4)|(opc))#define B OPCD( 18)#define BC OPCD( 16)
Signature · 1 line
2.17.1
[PULL 01/23] tcg/ppc: Introduce Altivec registers
In reply to Richard HendersonAltivec supports 32 128-bit vector registers, whose names are by convention v0 through v31.
--- tcg/ppc/tcg-target.h | 11 ++++- tcg/ppc/tcg-target.inc.c | 88 +++++++++++++++++++++++++--------------- 2 files changed, 65 insertions(+), 34 deletions(-)
tcg/ppc/tcg-target.h +10 -1
@@ -31,7 +31,7 @@# define TCG_TARGET_REG_BITS 32#endif -#define TCG_TARGET_NB_REGS 32 +#define TCG_TARGET_NB_REGS 64#define TCG_TARGET_INSN_UNIT_SIZE 4#define TCG_TARGET_TLB_DISPLACEMENT_BITS 16
@@ -45,6 +45,15 @@ typedef enum {TCG_REG_R24 ,TCG_REG_R25 ,TCG_REG_R26 ,TCG_REG_R27 ,TCG_REG_R28 ,TCG_REG_R29 ,TCG_REG_R30 ,TCG_REG_R31 , +TCG_REG_V0 ,TCG_REG_V1 ,TCG_REG_V2 ,TCG_REG_V3 , +TCG_REG_V4 ,TCG_REG_V5 ,TCG_REG_V6 ,TCG_REG_V7 , +TCG_REG_V8 ,TCG_REG_V9 ,TCG_REG_V10 ,TCG_REG_V11 , +TCG_REG_V12 ,TCG_REG_V13 ,TCG_REG_V14 ,TCG_REG_V15 , +TCG_REG_V16 ,TCG_REG_V17 ,TCG_REG_V18 ,TCG_REG_V19 , +TCG_REG_V20 ,TCG_REG_V21 ,TCG_REG_V22 ,TCG_REG_V23 , +TCG_REG_V24 ,TCG_REG_V25 ,TCG_REG_V26 ,TCG_REG_V27 , +TCG_REG_V28 ,TCG_REG_V29 ,TCG_REG_V30 ,TCG_REG_V31 , +TCG_REG_CALL_STACK =TCG_REG_R1 , TCG_AREG0 = TCG_REG_R27 } TCGReg;
tcg/ppc/tcg-target.inc.c +55 -33
118 lines not on this page · raw message
Signature · 1 line
2.17.1
[PULL 04/23] tcg/ppc: Create TCGPowerISA and have_isa
In reply to Richard HendersonIntroduce an enum to hold base < 2.06 < 3.00. Use macros to preserve the existing have_isa_2_06 and have_isa_3_00 predicates.
--- tcg/ppc/tcg-target.h | 12 ++++++++++-- tcg/ppc/tcg-target.inc.c | 8 ++++---- 2 files changed, 14 insertions(+), 6 deletions(-)
tcg/ppc/tcg-target.h +10 -2
@@ -58,8 +58,16 @@ typedef enum { TCG_AREG0 = TCG_REG_R27 } TCGReg; -extern bool have_isa_2_06; -extern bool have_isa_3_00; +typedef enum { + tcg_isa_base, + tcg_isa_2_06, + tcg_isa_3_00, +}TCGPowerISA ; + +extern TCGPowerISA have_isa; + +#define have_isa_2_06 (have_isa >= tcg_isa_2_06) +#define have_isa_3_00 (have_isa >= tcg_isa_3_00)/* optional instructions automatically implemented */ #define TCG_TARGET_HAS_ext8u_i32 0/* andi */
tcg/ppc/tcg-target.inc.c +4 -4
@@ -64,8 +64,7 @@static tcg_insn_unit *tb_ret_addr; -bool have_isa_2_06; -bool have_isa_3_00; +TCGPowerISA have_isa;#define HAVE_ISA_2_06 have_isa_2_06#define HAVE_ISEL have_isa_2_06
@@ -2787,12 +2786,13 @@ static void tcg_target_init(TCGContext *s)unsigned long hwcap =qemu_getauxval (AT_HWCAP );unsigned long hwcap2 =qemu_getauxval (AT_HWCAP2 ); + have_isa = tcg_isa_base;if (hwcap &PPC_FEATURE_ARCH_2_06 ) { - have_isa_2_06 = true; + have_isa = tcg_isa_2_06; }#ifdef PPC_FEATURE2_ARCH_3_00 if (hwcap2 &PPC_FEATURE2_ARCH_3_00 ) { - have_isa_3_00 = true; + have_isa = tcg_isa_3_00; }#endif
Signature · 1 line
2.17.1
[PULL 05/23] tcg/ppc: Replace HAVE_ISA_2_06
In reply to Richard HendersonThis is identical to have_isa_2_06, so replace it.
--- tcg/ppc/tcg-target.inc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
tcg/ppc/tcg-target.inc.c +2 -3
@@ -66,7 +66,6 @@ static tcg_insn_unit *tb_ret_addr;TCGPowerISA have_isa; -#define HAVE_ISA_2_06 have_isa_2_06#define HAVE_ISEL have_isa_2_06#ifndef CONFIG_SOFTMMU
@@ -1797,7 +1796,7 @@ static void tcg_out_qemu_ld(TCGContext *s, const TCGArg *args, bool is_64) } }else {uint32_t insn = qemu_ldx_opc[opc & (MO_BSWAP |MO_SSIZE )]; -if (!HAVE_ISA_2_06 && insn ==LDBRX ) { +if (!have_isa_2_06 && insn ==LDBRX ) {tcg_out32 (s,ADDI |TAI (TCG_REG_R0 , addrlo,4 ));tcg_out32 (s,LWBRX |TAB (datalo, rbase, addrlo));tcg_out32 (s,LWBRX |TAB (TCG_REG_R0 , rbase,TCG_REG_R0 ));
@@ -1869,7 +1868,7 @@ static void tcg_out_qemu_st(TCGContext *s, const TCGArg *args, bool is_64) } }else {uint32_t insn = qemu_stx_opc[opc & (MO_BSWAP |MO_SIZE )]; -if (!HAVE_ISA_2_06 && insn ==STDBRX ) { +if (!have_isa_2_06 && insn ==STDBRX ) {tcg_out32 (s,STWBRX |SAB (datalo, rbase, addrlo));tcg_out32 (s,ADDI |TAI (TCG_REG_TMP1 , addrlo,4 ));tcg_out_shri64 (s,TCG_REG_R0 , datalo,32 );
Signature · 1 line
2.17.1
[PULL 03/23] tcg/ppc: Introduce macros VRT(), VRA(), VRB(), VRC()
In reply to Richard HendersonIntroduce macros VRT(), VRA(), VRB(), VRC() used for encoding elements of Altivec instructions.
--- tcg/ppc/tcg-target.inc.c | 5 +++++ 1 file changed, 5 insertions(+)
tcg/ppc/tcg-target.inc.c +5 -0
@@ -473,6 +473,11 @@ static int tcg_target_const_match(tcg_target_long val, TCGType type,#define MB64 (b) ((b)<<5)#define FXM (b) (1 << (19 - (b))) +#define VRT (r) (((r) & 31) << 21) +#define VRA (r) (((r) & 31) << 16) +#define VRB (r) (((r) & 31) << 11) +#define VRC (r) (((r) & 31) << 6) +#define LK 1#define TAB (t, a, b) (RT(t) | RA(a) | RB(b))
Signature · 1 line
2.17.1
[PULL 15/23] tcg/ppc: Enable Altivec detection
In reply to Richard HendersonNow that we have implemented the required tcg operations, we can enable detection of host vector support.
--- tcg/ppc/tcg-target.inc.c | 4 ++++ 1 file changed, 4 insertions(+)
tcg/ppc/tcg-target.inc.c +4 -0
@@ -3528,6 +3528,10 @@ static void tcg_target_init(TCGContext *s) have_isel = have_isa_2_06;#endif +if (hwcap &PPC_FEATURE_HAS_ALTIVEC ) { + have_altivec = true; + } + tcg_target_available_regs[TCG_TYPE_I32 ] =0xffffffff ; tcg_target_available_regs[TCG_TYPE_I64 ] =0xffffffff ;if (have_altivec) {
Signature · 1 line
2.17.1
[PULL 11/23] tcg/ppc: Add support for vector saturated add/subtract
In reply to Richard HendersonAdd support for vector saturated add/subtract using Altivec instructions:
VADDSBS, VADDSHS, VADDSWS, VADDUBS, VADDUHS, VADDUWS, and VSUBSBS, VSUBSHS, VSUBSWS, VSUBUBS, VSUBUHS, VSUBUWS.
--- tcg/ppc/tcg-target.h | 2 +- tcg/ppc/tcg-target.inc.c | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-)
tcg/ppc/tcg-target.h +1 -1
@@ -163,7 +163,7 @@ extern bool have_altivec;#define TCG_TARGET_HAS_shv_vec 0#define TCG_TARGET_HAS_cmp_vec 1#define TCG_TARGET_HAS_mul_vec 0 -#define TCG_TARGET_HAS_sat_vec 0 +#define TCG_TARGET_HAS_sat_vec 1#define TCG_TARGET_HAS_minmax_vec 1#define TCG_TARGET_HAS_bitsel_vec 0#define TCG_TARGET_HAS_cmpsel_vec 0
tcg/ppc/tcg-target.inc.c +36 -0
@@ -471,12 +471,24 @@ static int tcg_target_const_match(tcg_target_long val, TCGType type,#define STVX XO31(231)#define STVEWX XO31(199) +#define VADDSBS VX4(768) +#define VADDUBS VX4(512)#define VADDUBM VX4(0) +#define VADDSHS VX4(832) +#define VADDUHS VX4(576)#define VADDUHM VX4(64) +#define VADDSWS VX4(896) +#define VADDUWS VX4(640)#define VADDUWM VX4(128) +#define VSUBSBS VX4(1792) +#define VSUBUBS VX4(1536)#define VSUBUBM VX4(1024) +#define VSUBSHS VX4(1856) +#define VSUBUHS VX4(1600)#define VSUBUHM VX4(1088) +#define VSUBSWS VX4(1920) +#define VSUBUWS VX4(1664)#define VSUBUWM VX4(1152)#define VMAXSB VX4(258)
@@ -2844,6 +2856,10 @@ int tcg_can_emit_vec_op(TCGOpcode opc, TCGType type, unsigned vece)case INDEX_op_smin_vec:case INDEX_op_umax_vec:case INDEX_op_umin_vec: +case INDEX_op_ssadd_vec: +case INDEX_op_sssub_vec: +case INDEX_op_usadd_vec: +case INDEX_op_ussub_vec:return vece <=MO_32 ;case INDEX_op_cmp_vec:return vece <=MO_32 ?-1 :0 ;
@@ -2945,6 +2961,10 @@ static void tcg_out_vec_op(TCGContext *s, TCGOpcode opc, eq_op[4] = { VCMPEQUB, VCMPEQUH, VCMPEQUW, 0 }, gts_op[4] = { VCMPGTSB, VCMPGTSH, VCMPGTSW, 0 }, gtu_op[4] = { VCMPGTUB, VCMPGTUH, VCMPGTUW, 0 }, + ssadd_op[4] = { VADDSBS, VADDSHS, VADDSWS, 0 }, + usadd_op[4] = { VADDUBS, VADDUHS, VADDUWS, 0 }, + sssub_op[4] = { VSUBSBS, VSUBSHS, VSUBSWS, 0 }, + ussub_op[4] = { VSUBUBS, VSUBUHS, VSUBUWS, 0 }, umin_op[4] = { VMINUB, VMINUH, VMINUW, 0 }, smin_op[4] = { VMINSB, VMINSH, VMINSW, 0 }, umax_op[4] = { VMAXUB, VMAXUH, VMAXUW, 0 },
@@ -2971,6 +2991,18 @@ static void tcg_out_vec_op(TCGContext *s, TCGOpcode opc,case INDEX_op_sub_vec: insn = sub_op[vece];break ; +case INDEX_op_ssadd_vec: + insn = ssadd_op[vece]; +break ; +case INDEX_op_sssub_vec: + insn = sssub_op[vece]; +break ; +case INDEX_op_usadd_vec: + insn = usadd_op[vece]; +break ; +case INDEX_op_ussub_vec: + insn = ussub_op[vece]; +break ;case INDEX_op_smin_vec: insn = smin_op[vece];break ;
@@ -3277,6 +3309,10 @@ static const TCGTargetOpDef *tcg_target_op_def(TCGOpcode op)case INDEX_op_andc_vec:case INDEX_op_orc_vec:case INDEX_op_cmp_vec: +case INDEX_op_ssadd_vec: +case INDEX_op_sssub_vec: +case INDEX_op_usadd_vec: +case INDEX_op_ussub_vec:case INDEX_op_smax_vec:case INDEX_op_smin_vec:case INDEX_op_umax_vec:
Signature · 1 line
2.17.1
[PULL 10/23] tcg/ppc: Add support for vector add/subtract
In reply to Richard HendersonAdd support for vector add/subtract using Altivec instructions:
VADDUBM, VADDUHM, VADDUWM, VSUBUBM, VSUBUHM, VSUBUWM.
--- tcg/ppc/tcg-target.inc.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)
tcg/ppc/tcg-target.inc.c +20 -0
@@ -471,6 +471,14 @@ static int tcg_target_const_match(tcg_target_long val, TCGType type,#define STVX XO31(231)#define STVEWX XO31(199) +#define VADDUBM VX4(0) +#define VADDUHM VX4(64) +#define VADDUWM VX4(128) + +#define VSUBUBM VX4(1024) +#define VSUBUHM VX4(1088) +#define VSUBUWM VX4(1152) +#define VMAXSB VX4(258)#define VMAXSH VX4(322)#define VMAXSW VX4(386)
@@ -2830,6 +2838,8 @@ int tcg_can_emit_vec_op(TCGOpcode opc, TCGType type, unsigned vece)case INDEX_op_andc_vec:case INDEX_op_not_vec:return 1 ; +case INDEX_op_add_vec: +case INDEX_op_sub_vec:case INDEX_op_smax_vec:case INDEX_op_smin_vec:case INDEX_op_umax_vec:
@@ -2930,6 +2940,8 @@ static void tcg_out_vec_op(TCGContext *s, TCGOpcode opc, const TCGArg *args, const int *const_args) {static const uint32_t + add_op[4 ] = {VADDUBM ,VADDUHM ,VADDUWM ,0 }, + sub_op[4 ] = {VSUBUBM ,VSUBUHM ,VSUBUWM ,0 }, eq_op[4 ] = {VCMPEQUB ,VCMPEQUH ,VCMPEQUW ,0 }, gts_op[4 ] = {VCMPGTSB ,VCMPGTSH ,VCMPGTSW ,0 }, gtu_op[4] = { VCMPGTUB, VCMPGTUH, VCMPGTUW, 0 },
@@ -2953,6 +2965,12 @@ static void tcg_out_vec_op(TCGContext *s, TCGOpcode opc,tcg_out_dupm_vec (s, type, vece, a0, a1, a2);return ; +case INDEX_op_add_vec: + insn = add_op[vece]; +break ; +case INDEX_op_sub_vec: + insn = sub_op[vece]; +break ;case INDEX_op_smin_vec: insn = smin_op[vece];break ;
@@ -3251,6 +3269,8 @@ static const TCGTargetOpDef *tcg_target_op_def(TCGOpcode op)return (TCG_TARGET_REG_BITS ==64 ? &S_S :TARGET_LONG_BITS ==32 ? &S_S_S : &S_S_S_S ); +case INDEX_op_add_vec: +case INDEX_op_sub_vec:case INDEX_op_and_vec:case INDEX_op_or_vec:case INDEX_op_xor_vec:
Signature · 1 line
2.17.1
[PULL 06/23] tcg/ppc: Replace HAVE_ISEL macro with a variable
In reply to Richard HendersonPreviously we've been hard-coding knowledge that Power7 has ISEL, but it was an optional instruction before that. Use the AT_HWCAP2 bit, when present, to properly determine support.
--- tcg/ppc/tcg-target.inc.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-)
tcg/ppc/tcg-target.inc.c +12 -5
@@ -65,8 +65,7 @@static tcg_insn_unit *tb_ret_addr;TCGPowerISA have_isa; - -#define HAVE_ISEL have_isa_2_06 +static bool have_isel;#ifndef CONFIG_SOFTMMU #define TCG_GUEST_BASE_REG 30
@@ -1100,7 +1099,7 @@ static void tcg_out_setcond(TCGContext *s, TCGType type, TCGCond cond,/* If we have ISEL, we can implement everything with 3 or 4 insns. All other cases below are also at least 3 insns, so speed up the code generator by not considering them and always using ISEL. */ -if (HAVE_ISEL ) { +if (have_isel) {int isel, tab;tcg_out_cmp (s, cond, arg1, arg2, const_arg2,7 , type);
@@ -1203,7 +1202,7 @@ static void tcg_out_movcond(TCGContext *s, TCGType type, TCGCond cond,tcg_out_cmp (s, cond, c1, c2, const_c2,7 , type); -if (HAVE_ISEL ) { +if (have_isel) {int isel = tcg_to_isel[cond];/* Swap the V operands if the operation indicates inversion. */
@@ -1247,7 +1246,7 @@ static void tcg_out_cntxz(TCGContext *s, TCGType type, uint32_t opc, }else {tcg_out_cmp (s,TCG_COND_EQ , a1,0 ,1 ,7 , type);/* Note that the only other valid constant for a2 is 0. */ -if (HAVE_ISEL ) { +if (have_isel) {tcg_out32 (s, opc |RA (TCG_REG_R0 ) |RS (a1));tcg_out32 (s, tcg_to_isel[TCG_COND_EQ ] |TAB (a0, a2,TCG_REG_R0 )); }else if (!const_a2 && a0 == a2) {
@@ -2795,6 +2794,14 @@ static void tcg_target_init(TCGContext *s) }#endif +#ifdef PPC_FEATURE2_HAS_ISEL +/* Prefer explicit instruction from the kernel. */ + have_isel = (hwcap2 &PPC_FEATURE2_HAS_ISEL ) !=0 ; +#else +/* Fall back to knowing Power7 (2.06) has ISEL. */ + have_isel = have_isa_2_06; +#endif + tcg_target_available_regs[TCG_TYPE_I32 ] =0xffffffff ; tcg_target_available_regs[TCG_TYPE_I64 ] =0xffffffff ;
Signature · 1 line
2.17.1
[PULL 21/23] tcg/ppc: Update vector support for v3.00 load/store
In reply to Richard HendersonThese new instructions are a mix of those like LXSD that are only conditional only on MSR.VEC and those like LXV that are conditional on MSR.VEC for TX=1. Thus, in the end, we can consider all of these as Altivec instructions.
--- tcg/ppc/tcg-target.inc.c | 47 ++++++++++++++++++++++++++++++++-------- 1 file changed, 38 insertions(+), 9 deletions(-)
tcg/ppc/tcg-target.inc.c +38 -9
@@ -471,11 +471,16 @@ static int tcg_target_const_match(tcg_target_long val, TCGType type,#define LXSDX (XO31(588) | 1)/* v2.06, force tx=1 */ #define LXVDSX (XO31(332) | 1)/* v2.06, force tx=1 */ #define LXSIWZX (XO31(12) | 1)/* v2.07, force tx=1 */ +#define LXV (OPCD(61) | 8 | 1)/* v3.00, force tx=1 */ +#define LXSD (OPCD(57) | 2)/* v3.00 */ +#define LXVWSX (XO31(364) | 1)/* v3.00, force tx=1 */ #define STVX XO31(231)#define STVEWX XO31(199)#define STXSDX (XO31(716) | 1)/* v2.06, force sx=1 */ #define STXSIWX (XO31(140) | 1)/* v2.07, force sx=1 */ +#define STXV (OPCD(61) | 8 | 5)/* v3.00, force sx=1 */ +#define STXSD (OPCD(61) | 2)/* v3.00 */ #define VADDSBS VX4(768)#define VADDUBS VX4(512)
@@ -1114,7 +1119,7 @@ static void tcg_out_mem_long(TCGContext *s, int opi, int opx, TCGReg rt, TCGReg base, tcg_target_long offset) {tcg_target_long orig = offset, l0, l1, extra =0 , align =0 ; -bool is_store = false; +bool is_int_store = false;TCGReg rs =TCG_REG_TMP1 ;switch (opi) {
@@ -1127,11 +1132,19 @@ static void tcg_out_mem_long(TCGContext *s, int opi, int opx, TCGReg rt,break ; }break ; +case LXSD : +case STXSD : + align =3 ; +break ; +case LXV : +case STXV : + align =15 ; +break ;case STD : align =3 ;/* FALLTHRU */ case STB :case STH :case STW : - is_store = true; + is_int_store = true;break ; }
@@ -1140,7 +1153,7 @@ static void tcg_out_mem_long(TCGContext *s, int opi, int opx, TCGReg rt,if (rs == base) { rs =TCG_REG_R0 ; } -tcg_debug_assert (!is_store || rs != rt); +tcg_debug_assert (!is_int_store || rs != rt);tcg_out_movi (s,TCG_TYPE_PTR , rs, orig);tcg_out32 (s, opx |TAB (rt &31 , base, rs));return ;
@@ -1205,7 +1218,8 @@ static void tcg_out_ld(TCGContext *s, TCGType type, TCGReg ret,case TCG_TYPE_V64 :tcg_debug_assert (ret >=TCG_REG_V0 );if (have_vsx) { -tcg_out_mem_long (s,0 ,LXSDX , ret, base, offset); +tcg_out_mem_long (s, have_isa_3_00 ?LXSD :0 ,LXSDX , + ret, base, offset);break ; }tcg_debug_assert ((offset &7 ) ==0 );
@@ -1217,7 +1231,8 @@ static void tcg_out_ld(TCGContext *s, TCGType type, TCGReg ret,case TCG_TYPE_V128 :tcg_debug_assert (ret >=TCG_REG_V0 );tcg_debug_assert ((offset &15 ) ==0 ); -tcg_out_mem_long (s,0 ,LVX , ret, base, offset); +tcg_out_mem_long (s, have_isa_3_00 ?LXV :0 , +LVX , ret, base, offset);break ;default :g_assert_not_reached ();
@@ -1258,7 +1273,8 @@ static void tcg_out_st(TCGContext *s, TCGType type, TCGReg arg,case TCG_TYPE_V64 :tcg_debug_assert (arg >=TCG_REG_V0 );if (have_vsx) { -tcg_out_mem_long (s,0 ,STXSDX , arg, base, offset); +tcg_out_mem_long (s, have_isa_3_00 ?STXSD :0 , +STXSDX , arg, base, offset);break ; }tcg_debug_assert ((offset &7 ) ==0 );
@@ -1271,7 +1287,8 @@ static void tcg_out_st(TCGContext *s, TCGType type, TCGReg arg,break ;case TCG_TYPE_V128 :tcg_debug_assert (arg >=TCG_REG_V0 ); -tcg_out_mem_long (s,0 ,STVX , arg, base, offset); +tcg_out_mem_long (s, have_isa_3_00 ?STXV :0 , +STVX , arg, base, offset);break ;default :g_assert_not_reached ();
@@ -3042,7 +3059,11 @@ static bool tcg_out_dupm_vec(TCGContext *s, TCGType type, unsigned vece,tcg_debug_assert (out >=TCG_REG_V0 );switch (vece) {case MO_8 : -tcg_out_mem_long (s,0 ,LVEBX , out, base, offset); +if (have_isa_3_00) { +tcg_out_mem_long (s,LXV ,LVX , out, base, offset &-16 ); + }else { +tcg_out_mem_long (s,0 ,LVEBX , out, base, offset); + } elt =extract32 (offset,0 ,4 );#ifndef HOST_WORDS_BIGENDIAN elt ^=15 ;
@@ -3051,7 +3072,11 @@ static bool tcg_out_dupm_vec(TCGContext *s, TCGType type, unsigned vece,break ;case MO_16 :tcg_debug_assert ((offset &1 ) ==0 ); -tcg_out_mem_long (s,0 ,LVEHX , out, base, offset); +if (have_isa_3_00) { +tcg_out_mem_long (s,LXV |8 ,LVX , out, base, offset &-16 ); + }else { +tcg_out_mem_long (s,0 ,LVEHX , out, base, offset); + } elt =extract32 (offset,1 ,3 );#ifndef HOST_WORDS_BIGENDIAN elt ^=7 ;
@@ -3059,6 +3084,10 @@ static bool tcg_out_dupm_vec(TCGContext *s, TCGType type, unsigned vece,tcg_out32 (s,VSPLTH |VRT (out) |VRB (out) | (elt <<16 ));break ;case MO_32 : +if (have_isa_3_00) { +tcg_out_mem_long (s,0 ,LXVWSX , out, base, offset); +break ; + }tcg_debug_assert ((offset &3 ) ==0 );tcg_out_mem_long (s,0 ,LVEWX , out, base, offset); elt =extract32 (offset,2 ,2 );
Signature · 1 line
2.17.1
[PULL 14/23] tcg/ppc: Support vector dup2
In reply to Richard HendersonThis is only used for 32-bit hosts.
--- tcg/ppc/tcg-target.inc.c | 9 +++++++++ 1 file changed, 9 insertions(+)
tcg/ppc/tcg-target.inc.c +9 -0
@@ -3102,6 +3102,14 @@ static void tcg_out_vec_op(TCGContext *s, TCGOpcode opc, }break ; +case INDEX_op_dup2_vec: +assert (TCG_TARGET_REG_BITS ==32 ); +/* With inputs a1 = xLxx, a2 = xHxx */ +tcg_out32 (s,VMRGHW |VRT (a0) |VRA (a2) |VRB (a1));/* a0 = xxHL */ +tcg_out_vsldoi (s,TCG_VEC_TMP1 , a0, a0,8 );/* tmp = HLxx */ +tcg_out_vsldoi (s, a0, a0,TCG_VEC_TMP1 ,8 );/* a0 = HLHL */ +return ; +case INDEX_op_ppc_mrgh_vec: insn = mrgh_op[vece];break ;
@@ -3480,6 +3488,7 @@ static const TCGTargetOpDef *tcg_target_op_def(TCGOpcode op)case INDEX_op_ppc_mulou_vec:case INDEX_op_ppc_pkum_vec:case INDEX_op_ppc_rotl_vec: +case INDEX_op_dup2_vec:return &v_v_v;case INDEX_op_not_vec:case INDEX_op_dup_vec:
Signature · 1 line
2.17.1
[PULL 07/23] tcg/ppc: Enable tcg backend vector compilation
In reply to Richard HendersonIntroduce all of the flags required to enable tcg backend vector support, and a runtime flag to indicate the host supports Altivec instructions.
For now, do not actually set have_isa_altivec to true, because we have not yet added all of the code to actually generate all of the required insns. However, we must define these flags in order to disable ifndefs that create stub versions of the functions added here.
The change to tcg_out_movi works around a buglet in tcg.c wherein if we do not define tcg_out_dupi_vec we get a declared but not defined Werror, but if we only declare it we get a defined but not used Werror. We need to this change to tcg_out_movi eventually anyway, so it's no biggie.
--- tcg/ppc/tcg-target.h | 25 ++++++++++++++++ tcg/ppc/tcg-target.opc.h | 5 ++++ tcg/ppc/tcg-target.inc.c | 62 ++++++++++++++++++++++++++++++++++++++-- 3 files changed, 89 insertions(+), 3 deletions(-) create mode 100644 tcg/ppc/tcg-target.opc.h
tcg/ppc/tcg-target.h +25 -0
@@ -65,6 +65,7 @@ typedef enum { } TCGPowerISA;extern TCGPowerISA have_isa; +extern bool have_altivec;#define have_isa_2_06 (have_isa >= tcg_isa_2_06)#define have_isa_3_00 (have_isa >= tcg_isa_3_00)
@@ -143,6 +144,30 @@ extern TCGPowerISA have_isa;#define TCG_TARGET_HAS_mulsh_i64 1#endif +/* +* While technically Altivec could support V64, it has no 64-bit store +* instruction and substituting two 32-bit stores makes the generated +* code quite large. +*/ +#define TCG_TARGET_HAS_v64 0 +#define TCG_TARGET_HAS_v128 have_altivec +#define TCG_TARGET_HAS_v256 0 + +#define TCG_TARGET_HAS_andc_vec 0 +#define TCG_TARGET_HAS_orc_vec 0 +#define TCG_TARGET_HAS_not_vec 0 +#define TCG_TARGET_HAS_neg_vec 0 +#define TCG_TARGET_HAS_abs_vec 0 +#define TCG_TARGET_HAS_shi_vec 0 +#define TCG_TARGET_HAS_shs_vec 0 +#define TCG_TARGET_HAS_shv_vec 0 +#define TCG_TARGET_HAS_cmp_vec 0 +#define TCG_TARGET_HAS_mul_vec 0 +#define TCG_TARGET_HAS_sat_vec 0 +#define TCG_TARGET_HAS_minmax_vec 0 +#define TCG_TARGET_HAS_bitsel_vec 0 +#define TCG_TARGET_HAS_cmpsel_vec 0 +void flush_icache_range (uintptr_t start,uintptr_t stop);void tb_target_set_jmp_target (uintptr_t ,uintptr_t ,uintptr_t );
tcg/ppc/tcg-target.opc.h new file +5 -0
@@ -0,0 +1,5 @@ +/* +* Target-specific opcodes for host vector expansion. These will be +* emitted by tcg_expand_vec_op. For those familiar with GCC internals, +* consider these to be UNSPEC with names. +*/
tcg/ppc/tcg-target.inc.c +59 -3
87 lines not on this page · raw message
Signature · 1 line
2.17.1
[PULL 17/23] tcg/ppc: Update vector support for v2.07 Altivec
In reply to Richard HendersonThese new instructions are conditional only on MSR.VEC and are thus part of the Altivec instruction set, and not VSX. This includes lots of double-word arithmetic and a few extra logical operations.
--- tcg/ppc/tcg-target.h | 4 +- tcg/ppc/tcg-target.inc.c | 85 ++++++++++++++++++++++++++++++---------- 2 files changed, 67 insertions(+), 22 deletions(-)
tcg/ppc/tcg-target.h +3 -1
@@ -61,6 +61,7 @@ typedef enum {typedef enum { tcg_isa_base, tcg_isa_2_06, + tcg_isa_2_07, tcg_isa_3_00, }TCGPowerISA ;
@@ -69,6 +70,7 @@ extern bool have_altivec;extern bool have_vsx;#define have_isa_2_06 (have_isa >= tcg_isa_2_06) +#define have_isa_2_07 (have_isa >= tcg_isa_2_07)#define have_isa_3_00 (have_isa >= tcg_isa_3_00)/* optional instructions automatically implemented */
@@ -155,7 +157,7 @@ extern bool have_vsx;#define TCG_TARGET_HAS_v256 0#define TCG_TARGET_HAS_andc_vec 1 -#define TCG_TARGET_HAS_orc_vec 0 +#define TCG_TARGET_HAS_orc_vec have_isa_2_07#define TCG_TARGET_HAS_not_vec 1#define TCG_TARGET_HAS_neg_vec 0#define TCG_TARGET_HAS_abs_vec 0
tcg/ppc/tcg-target.inc.c +64 -21
208 lines not on this page · raw message
Signature · 1 line
2.17.1
[PULL 22/23] tcg/ppc: Update vector support for v3.00 dup/dupi
In reply to Richard HendersonThese new instructions are conditional on MSR.VEC for TX=1, so we can consider these Altivec instructions.
--- tcg/ppc/tcg-target.inc.c | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-)
tcg/ppc/tcg-target.inc.c +26 -2
@@ -596,11 +596,14 @@ static int tcg_target_const_match(tcg_target_long val, TCGType type,#define XXPERMDI (OPCD(60) | (10 << 3) | 7)/* v2.06, force ax=bx=tx=1 */ #define XXSEL (OPCD(60) | (3 << 4) | 0xf)/* v2.06, force ax=bx=cx=tx=1 */ +#define XXSPLTIB (OPCD(60) | (360 << 1) | 1)/* v3.00, force tx=1 */ #define MFVSRD (XO31(51) | 1)/* v2.07, force sx=1 */ #define MFVSRWZ (XO31(115) | 1)/* v2.07, force sx=1 */ #define MTVSRD (XO31(179) | 1)/* v2.07, force tx=1 */ #define MTVSRWZ (XO31(243) | 1)/* v2.07, force tx=1 */ +#define MTVSRDD (XO31(435) | 1)/* v3.00, force tx=1 */ +#define MTVSRWS (XO31(403) | 1)/* v3.00, force tx=1 */ #define RT (r) ((r)<<21)#define RS (r) ((r)<<21)
@@ -931,6 +934,10 @@ static void tcg_out_dupi_vec(TCGContext *s, TCGType type, TCGReg ret,return ; } } +if (have_isa_3_00 && val == (tcg_target_long )dup_const (MO_8 , val)) { +tcg_out32 (s,XXSPLTIB |VRT (ret) | ((val &0xff ) <<11 )); +return ; + }/* * Otherwise we must load the value from the constant pool.
@@ -3021,7 +3028,22 @@ static bool tcg_out_dup_vec(TCGContext *s, TCGType type, unsigned vece, TCGReg dst, TCGReg src) {tcg_debug_assert (dst >=TCG_REG_V0 ); -tcg_debug_assert (src >=TCG_REG_V0 ); + +/* Splat from integer reg allowed via constraints for v3.00. */ +if (src <TCG_REG_V0 ) { +tcg_debug_assert (have_isa_3_00); +switch (vece) { +case MO_64 : +tcg_out32 (s,MTVSRDD |VRT (dst) |RA (src) |RB (src)); +return true; +case MO_32 : +tcg_out32 (s,MTVSRWS |VRT (dst) |RA (src)); +return true; +default : +/* Fail, so that we fall back on either dupm or mov+dup. */ +return false; + } + }/* * Recall we use (or emulate) VSX integer loads, so the integer is
@@ -3482,6 +3504,7 @@ static const TCGTargetOpDef *tcg_target_op_def(TCGOpcode op)static const TCGTargetOpDef sub2 = { .args_ct_str = {"r" ,"r" ,"rI" ,"rZM" ,"r" ,"r" } };static const TCGTargetOpDef v_r = { .args_ct_str = {"v" ,"r" } }; +static const TCGTargetOpDef v_vr = { .args_ct_str = {"v" ,"vr" } };static const TCGTargetOpDef v_v = { .args_ct_str = {"v" ,"v" } };static const TCGTargetOpDef v_v_v = { .args_ct_str = {"v" ,"v" ,"v" } };static const TCGTargetOpDef v_v_v_v
@@ -3651,8 +3674,9 @@ static const TCGTargetOpDef *tcg_target_op_def(TCGOpcode op)return &v_v_v;case INDEX_op_not_vec:case INDEX_op_neg_vec: -case INDEX_op_dup_vec:return &v_v; +case INDEX_op_dup_vec: +return have_isa_3_00 ? &v_vr : &v_v;case INDEX_op_ld_vec:case INDEX_op_st_vec:case INDEX_op_dupm_vec:
Signature · 1 line
2.17.1
[PULL 18/23] tcg/ppc: Update vector support for v2.07 VSX
In reply to Richard HendersonThese new instructions are conditional only on MSR.VSX and are thus part of the VSX instruction set, and not Altivec. This includes double-word loads and stores.
--- tcg/ppc/tcg-target.inc.c | 11 +++++++++++ 1 file changed, 11 insertions(+)
tcg/ppc/tcg-target.inc.c +11 -0
@@ -470,10 +470,12 @@ static int tcg_target_const_match(tcg_target_long val, TCGType type,#define LVEWX XO31(71)#define LXSDX (XO31(588) | 1)/* v2.06, force tx=1 */ #define LXVDSX (XO31(332) | 1)/* v2.06, force tx=1 */ +#define LXSIWZX (XO31(12) | 1)/* v2.07, force tx=1 */ #define STVX XO31(231)#define STVEWX XO31(199)#define STXSDX (XO31(716) | 1)/* v2.06, force sx=1 */ +#define STXSIWX (XO31(140) | 1)/* v2.07, force sx=1 */ #define VADDSBS VX4(768)#define VADDUBS VX4(512)
@@ -1156,6 +1158,10 @@ static void tcg_out_ld(TCGContext *s, TCGType type, TCGReg ret,tcg_out_mem_long (s,LWZ ,LWZX , ret, base, offset);break ; } +if (have_isa_2_07 && have_vsx) { +tcg_out_mem_long (s,0 ,LXSIWZX , ret, base, offset); +break ; + }tcg_debug_assert ((offset &3 ) ==0 );tcg_out_mem_long (s,0 ,LVEWX , ret, base, offset); shift = (offset -4 ) &0xc ;
@@ -1203,6 +1209,11 @@ static void tcg_out_st(TCGContext *s, TCGType type, TCGReg arg,tcg_out_mem_long (s,STW ,STWX , arg, base, offset);break ; } +if (have_isa_2_07 && have_vsx) { +tcg_out_mem_long (s,0 ,STXSIWX , arg, base, offset); +break ; + } +assert ((offset &3 ) ==0 );tcg_debug_assert ((offset &3 ) ==0 ); shift = (offset -4 ) &0xc ;if (shift) {
Signature · 1 line
2.17.1
[PULL 19/23] tcg/ppc: Update vector support for v2.07 FP
In reply to Richard HendersonThese new instructions are conditional on MSR.FP when TX=0 and MSR.VEC when TX=1. Since we only care about the Altivec registers, and force TX=1, we can consider these to be Altivec instructions. Since Altivec is true for any use of vector types, we only need test have_isa_2_07.
This includes moves to and from the integer registers.
--- tcg/ppc/tcg-target.inc.c | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-)
tcg/ppc/tcg-target.inc.c +26 -6
@@ -586,6 +586,11 @@ static int tcg_target_const_match(tcg_target_long val, TCGType type,#define XXPERMDI (OPCD(60) | (10 << 3) | 7)/* v2.06, force ax=bx=tx=1 */ #define XXSEL (OPCD(60) | (3 << 4) | 0xf)/* v2.06, force ax=bx=cx=tx=1 */ +#define MFVSRD (XO31(51) | 1)/* v2.07, force sx=1 */ +#define MFVSRWZ (XO31(115) | 1)/* v2.07, force sx=1 */ +#define MTVSRD (XO31(179) | 1)/* v2.07, force tx=1 */ +#define MTVSRWZ (XO31(243) | 1)/* v2.07, force tx=1 */ +#define RT (r) ((r)<<21)#define RS (r) ((r)<<21)#define RA (r) ((r)<<16)
@@ -715,12 +720,27 @@ static bool tcg_out_mov(TCGContext *s, TCGType type, TCGReg ret, TCGReg arg)tcg_debug_assert (TCG_TARGET_REG_BITS ==64 );/* fallthru */ case TCG_TYPE_I32 : -if (ret <TCG_REG_V0 && arg <TCG_REG_V0 ) { -tcg_out32 (s,OR |SAB (arg, ret, arg)); -break ; - }else if (ret <TCG_REG_V0 || arg <TCG_REG_V0 ) { -/* Altivec does not support vector/integer moves. */ -return false; +if (ret <TCG_REG_V0 ) { +if (arg <TCG_REG_V0 ) { +tcg_out32 (s,OR |SAB (arg, ret, arg)); +break ; + }else if (have_isa_2_07) { +tcg_out32 (s, (type ==TCG_TYPE_I32 ?MFVSRWZ :MFVSRD ) + |VRT (arg) |RA (ret)); +break ; + }else { +/* Altivec does not support vector->integer moves. */ +return false; + } + }else if (arg <TCG_REG_V0 ) { +if (have_isa_2_07) { +tcg_out32 (s, (type ==TCG_TYPE_I32 ?MTVSRWZ :MTVSRD ) + |VRT (ret) |RA (arg)); +break ; + }else { +/* Altivec does not support integer->vector moves. */ +return false; + } }/* fallthru */ case TCG_TYPE_V64 :
Signature · 1 line
2.17.1
[PULL 09/23] tcg/ppc: Add support for vector maximum/minimum
In reply to Richard HendersonAdd support for vector maximum/minimum using Altivec instructions VMAXSB, VMAXSH, VMAXSW, VMAXUB, VMAXUH, VMAXUW, and VMINSB, VMINSH, VMINSW, VMINUB, VMINUH, VMINUW.
--- tcg/ppc/tcg-target.h | 2 +- tcg/ppc/tcg-target.inc.c | 40 +++++++++++++++++++++++++++++++++++++++- 2 files changed, 40 insertions(+), 2 deletions(-)
tcg/ppc/tcg-target.h +1 -1
@@ -164,7 +164,7 @@ extern bool have_altivec;#define TCG_TARGET_HAS_cmp_vec 1#define TCG_TARGET_HAS_mul_vec 0#define TCG_TARGET_HAS_sat_vec 0 -#define TCG_TARGET_HAS_minmax_vec 0 +#define TCG_TARGET_HAS_minmax_vec 1#define TCG_TARGET_HAS_bitsel_vec 0#define TCG_TARGET_HAS_cmpsel_vec 0
tcg/ppc/tcg-target.inc.c +39 -1
@@ -471,6 +471,19 @@ static int tcg_target_const_match(tcg_target_long val, TCGType type,#define STVX XO31(231)#define STVEWX XO31(199) +#define VMAXSB VX4(258) +#define VMAXSH VX4(322) +#define VMAXSW VX4(386) +#define VMAXUB VX4(2) +#define VMAXUH VX4(66) +#define VMAXUW VX4(130) +#define VMINSB VX4(770) +#define VMINSH VX4(834) +#define VMINSW VX4(898) +#define VMINUB VX4(514) +#define VMINUH VX4(578) +#define VMINUW VX4(642) +#define VCMPEQUB VX4(6)#define VCMPEQUH VX4(70)#define VCMPEQUW VX4(134)
@@ -2817,6 +2830,11 @@ int tcg_can_emit_vec_op(TCGOpcode opc, TCGType type, unsigned vece)case INDEX_op_andc_vec:case INDEX_op_not_vec:return 1 ; +case INDEX_op_smax_vec: +case INDEX_op_smin_vec: +case INDEX_op_umax_vec: +case INDEX_op_umin_vec: +return vece <=MO_32 ;case INDEX_op_cmp_vec:return vece <=MO_32 ?-1 :0 ;default :
@@ -2914,7 +2932,11 @@ static void tcg_out_vec_op(TCGContext *s, TCGOpcode opc,static const uint32_t eq_op[4 ] = {VCMPEQUB ,VCMPEQUH ,VCMPEQUW ,0 }, gts_op[4 ] = {VCMPGTSB ,VCMPGTSH ,VCMPGTSW ,0 }, - gtu_op[4 ] = {VCMPGTUB ,VCMPGTUH ,VCMPGTUW ,0 }; + gtu_op[4 ] = {VCMPGTUB ,VCMPGTUH ,VCMPGTUW ,0 }, + umin_op[4 ] = {VMINUB ,VMINUH ,VMINUW ,0 }, + smin_op[4 ] = {VMINSB ,VMINSH ,VMINSW ,0 }, + umax_op[4 ] = {VMAXUB ,VMAXUH ,VMAXUW ,0 }, + smax_op[4 ] = {VMAXSB ,VMAXSH ,VMAXSW ,0 };TCGType type = vecl +TCG_TYPE_V64 ;TCGArg a0 = args[0 ], a1 = args[1 ], a2 = args[2 ];
@@ -2931,6 +2953,18 @@ static void tcg_out_vec_op(TCGContext *s, TCGOpcode opc,tcg_out_dupm_vec (s, type, vece, a0, a1, a2);return ; +case INDEX_op_smin_vec: + insn = smin_op[vece]; +break ; +case INDEX_op_umin_vec: + insn = umin_op[vece]; +break ; +case INDEX_op_smax_vec: + insn = smax_op[vece]; +break ; +case INDEX_op_umax_vec: + insn = umax_op[vece]; +break ;case INDEX_op_and_vec: insn =VAND ;break ;
@@ -3223,6 +3257,10 @@ static const TCGTargetOpDef *tcg_target_op_def(TCGOpcode op)case INDEX_op_andc_vec:case INDEX_op_orc_vec:case INDEX_op_cmp_vec: +case INDEX_op_smax_vec: +case INDEX_op_smin_vec: +case INDEX_op_umax_vec: +case INDEX_op_umin_vec:return &v_v_v;case INDEX_op_not_vec:case INDEX_op_dup_vec:
Signature · 1 line
2.17.1
[PULL 20/23] tcg/ppc: Update vector support for v3.00 Altivec
In reply to Richard HendersonThese new instructions are conditional only on MSR.VEC and are thus part of the Altivec instruction set, and not VSX. This includes negation and compare not equal.
--- tcg/ppc/tcg-target.h | 2 +- tcg/ppc/tcg-target.inc.c | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-)
tcg/ppc/tcg-target.h +1 -1
@@ -159,7 +159,7 @@ extern bool have_vsx;#define TCG_TARGET_HAS_andc_vec 1#define TCG_TARGET_HAS_orc_vec have_isa_2_07#define TCG_TARGET_HAS_not_vec 1 -#define TCG_TARGET_HAS_neg_vec 0 +#define TCG_TARGET_HAS_neg_vec have_isa_3_00#define TCG_TARGET_HAS_abs_vec 0#define TCG_TARGET_HAS_shi_vec 0#define TCG_TARGET_HAS_shs_vec 0
tcg/ppc/tcg-target.inc.c +23 -0
@@ -499,6 +499,9 @@ static int tcg_target_const_match(tcg_target_long val, TCGType type,#define VSUBUWM VX4(1152)#define VSUBUDM VX4(1216)/* v2.07 */ +#define VNEGW (VX4(1538) | (6 << 16))/* v3.00 */ +#define VNEGD (VX4(1538) | (7 << 16))/* v3.00 */ +#define VMAXSB VX4(258)#define VMAXSH VX4(322)#define VMAXSW VX4(386)
@@ -528,6 +531,9 @@ static int tcg_target_const_match(tcg_target_long val, TCGType type,#define VCMPGTUH VX4(582)#define VCMPGTUW VX4(646)#define VCMPGTUD VX4(711)/* v2.07 */ +#define VCMPNEB VX4(7)/* v3.00 */ +#define VCMPNEH VX4(71)/* v3.00 */ +#define VCMPNEW VX4(135)/* v3.00 */ #define VSLB VX4(260)#define VSLH VX4(324)
@@ -2976,6 +2982,8 @@ int tcg_can_emit_vec_op(TCGOpcode opc, TCGType type, unsigned vece)case INDEX_op_shri_vec:case INDEX_op_sari_vec:return vece <=MO_32 || have_isa_2_07 ?-1 :0 ; +case INDEX_op_neg_vec: +return vece >=MO_32 && have_isa_3_00;case INDEX_op_mul_vec:switch (vece) {case MO_8 :
@@ -3090,7 +3098,9 @@ static void tcg_out_vec_op(TCGContext *s, TCGOpcode opc,static const uint32_t add_op[4 ] = {VADDUBM ,VADDUHM ,VADDUWM ,VADDUDM }, sub_op[4 ] = {VSUBUBM ,VSUBUHM ,VSUBUWM ,VSUBUDM }, + neg_op[4 ] = {0 ,0 ,VNEGW ,VNEGD }, eq_op[4 ] = {VCMPEQUB ,VCMPEQUH ,VCMPEQUW ,VCMPEQUD }, + ne_op[4 ] = {VCMPNEB ,VCMPNEH ,VCMPNEW ,0 }, gts_op[4 ] = {VCMPGTSB ,VCMPGTSH ,VCMPGTSW ,VCMPGTSD }, gtu_op[4 ] = {VCMPGTUB ,VCMPGTUH ,VCMPGTUW ,VCMPGTUD }, ssadd_op[4] = { VADDSBS, VADDSHS, VADDSWS, 0 },
@@ -3132,6 +3142,11 @@ static void tcg_out_vec_op(TCGContext *s, TCGOpcode opc,case INDEX_op_sub_vec: insn = sub_op[vece];break ; +case INDEX_op_neg_vec: + insn = neg_op[vece]; + a2 = a1; + a1 =0 ; +break ;case INDEX_op_mul_vec:tcg_debug_assert (vece ==MO_32 && have_isa_2_07); insn =VMULUWM ;
@@ -3194,6 +3209,9 @@ static void tcg_out_vec_op(TCGContext *s, TCGOpcode opc,case TCG_COND_EQ : insn = eq_op[vece];break ; +case TCG_COND_NE : + insn = ne_op[vece]; +break ;case TCG_COND_GT : insn = gts_op[vece];break ;
@@ -3276,6 +3294,10 @@ static void expand_vec_cmp(TCGType type, unsigned vece, TCGv_vec v0,case TCG_COND_GTU :break ;case TCG_COND_NE : +if (have_isa_3_00 && vece <=MO_32 ) { +break ; + } +/* fall through */ case TCG_COND_LE :case TCG_COND_LEU : need_inv = true;
@@ -3599,6 +3621,7 @@ static const TCGTargetOpDef *tcg_target_op_def(TCGOpcode op)case INDEX_op_dup2_vec:return &v_v_v;case INDEX_op_not_vec: +case INDEX_op_neg_vec:case INDEX_op_dup_vec:return &v_v;case INDEX_op_ld_vec:
Signature · 1 line
2.17.1
[PULL 08/23] tcg/ppc: Add support for load/store/logic/comparison
In reply to Richard HendersonAdd various bits and peaces related mostly to load and store operations. In that context, logic, compare, and splat Altivec instructions are used, and, therefore, the support for emitting them is included in this patch too.
--- tcg/ppc/tcg-target.h | 6 +- tcg/ppc/tcg-target.inc.c | 472 ++++++++++++++++++++++++++++++++++++--- 2 files changed, 442 insertions(+), 36 deletions(-)
tcg/ppc/tcg-target.h +3 -3
@@ -153,15 +153,15 @@ extern bool have_altivec;#define TCG_TARGET_HAS_v128 have_altivec#define TCG_TARGET_HAS_v256 0 -#define TCG_TARGET_HAS_andc_vec 0 +#define TCG_TARGET_HAS_andc_vec 1#define TCG_TARGET_HAS_orc_vec 0 -#define TCG_TARGET_HAS_not_vec 0 +#define TCG_TARGET_HAS_not_vec 1#define TCG_TARGET_HAS_neg_vec 0#define TCG_TARGET_HAS_abs_vec 0#define TCG_TARGET_HAS_shi_vec 0#define TCG_TARGET_HAS_shs_vec 0#define TCG_TARGET_HAS_shv_vec 0 -#define TCG_TARGET_HAS_cmp_vec 0 +#define TCG_TARGET_HAS_cmp_vec 1#define TCG_TARGET_HAS_mul_vec 0#define TCG_TARGET_HAS_sat_vec 0#define TCG_TARGET_HAS_minmax_vec 0
tcg/ppc/tcg-target.inc.c +439 -33
579 lines not on this page · raw message
Signature · 1 line
2.17.1
[PULL 12/23] tcg/ppc: Support vector shift by immediate
In reply to Richard HendersonFor Altivec, this is done via vector shift by vector, and loading the immediate into a register.
--- tcg/ppc/tcg-target.h | 2 +- tcg/ppc/tcg-target.inc.c | 58 ++++++++++++++++++++++++++++++++++++++-- 2 files changed, 57 insertions(+), 3 deletions(-)
tcg/ppc/tcg-target.h +1 -1
@@ -160,7 +160,7 @@ extern bool have_altivec;#define TCG_TARGET_HAS_abs_vec 0#define TCG_TARGET_HAS_shi_vec 0#define TCG_TARGET_HAS_shs_vec 0 -#define TCG_TARGET_HAS_shv_vec 0 +#define TCG_TARGET_HAS_shv_vec 1#define TCG_TARGET_HAS_cmp_vec 1#define TCG_TARGET_HAS_mul_vec 0#define TCG_TARGET_HAS_sat_vec 1
tcg/ppc/tcg-target.inc.c +56 -2
109 lines not on this page · raw message
Signature · 1 line
2.17.1
[PULL 13/23] tcg/ppc: Support vector multiply
In reply to Richard HendersonFor Altivec, this is always an expansion.
--- tcg/ppc/tcg-target.h | 2 +- tcg/ppc/tcg-target.opc.h | 8 +++ tcg/ppc/tcg-target.inc.c | 113 ++++++++++++++++++++++++++++++++++++++- 3 files changed, 121 insertions(+), 2 deletions(-)
tcg/ppc/tcg-target.h +1 -1
@@ -162,7 +162,7 @@ extern bool have_altivec;#define TCG_TARGET_HAS_shs_vec 0#define TCG_TARGET_HAS_shv_vec 1#define TCG_TARGET_HAS_cmp_vec 1 -#define TCG_TARGET_HAS_mul_vec 0 +#define TCG_TARGET_HAS_mul_vec 1#define TCG_TARGET_HAS_sat_vec 1#define TCG_TARGET_HAS_minmax_vec 1#define TCG_TARGET_HAS_bitsel_vec 0
tcg/ppc/tcg-target.opc.h +8 -0
@@ -3,3 +3,11 @@* emitted by tcg_expand_vec_op. For those familiar with GCC internals, * consider these to be UNSPEC with names. */ + +DEF(ppc_mrgh_vec, 1, 2, 0, IMPLVEC) +DEF(ppc_mrgl_vec, 1, 2, 0, IMPLVEC) +DEF(ppc_msum_vec, 1, 3, 0, IMPLVEC) +DEF(ppc_muleu_vec, 1, 2, 0, IMPLVEC) +DEF(ppc_mulou_vec, 1, 2, 0, IMPLVEC) +DEF(ppc_pkum_vec, 1, 2, 0, IMPLVEC) +DEF (ppc_rotl_vec,1 ,2 ,0 ,IMPLVEC )
tcg/ppc/tcg-target.inc.c +112 -1
173 lines not on this page · raw message
Signature · 1 line
2.17.1
[PULL 16/23] tcg/ppc: Update vector support for VSX
In reply to Richard HendersonThe VSX instruction set instructions include double-word loads and stores, double-word load and splat, double-word permute, and bit select. All of which require multiple operations in the Altivec instruction set.
Because the VSX registers map %vsr32 to %vr0, and we have no current intention or need to use vector registers outside %vr0-%vr19, force on the {ax,bx,cx,tx} bits within the added VSX insns so that we don't have to otherwise modify the VR[TABC] macros.
--- tcg/ppc/tcg-target.h | 5 ++-- tcg/ppc/tcg-target.inc.c | 52 ++++++++++++++++++++++++++++++++++++---- 2 files changed, 51 insertions(+), 6 deletions(-)
tcg/ppc/tcg-target.h +3 -2
@@ -66,6 +66,7 @@ typedef enum {extern TCGPowerISA have_isa;extern bool have_altivec; +extern bool have_vsx;#define have_isa_2_06 (have_isa >= tcg_isa_2_06)#define have_isa_3_00 (have_isa >= tcg_isa_3_00)
@@ -149,7 +150,7 @@ extern bool have_altivec;* instruction and substituting two 32-bit stores makes the generated * code quite large. */ -#define TCG_TARGET_HAS_v64 0 +#define TCG_TARGET_HAS_v64 have_vsx#define TCG_TARGET_HAS_v128 have_altivec#define TCG_TARGET_HAS_v256 0
@@ -165,7 +166,7 @@ extern bool have_altivec;#define TCG_TARGET_HAS_mul_vec 1#define TCG_TARGET_HAS_sat_vec 1#define TCG_TARGET_HAS_minmax_vec 1 -#define TCG_TARGET_HAS_bitsel_vec 0 +#define TCG_TARGET_HAS_bitsel_vec have_vsx#define TCG_TARGET_HAS_cmpsel_vec 0void flush_icache_range (uintptr_t start,uintptr_t stop);
tcg/ppc/tcg-target.inc.c +48 -4
128 lines not on this page · raw message
Signature · 1 line
2.17.1
[PULL 23/23] cpus: kick all vCPUs when running thread=single
In reply to Richard HendersonFrom: Alex Bennée <[email protected]>
qemu_cpu_kick is used for a number of reasons including to indicate there is work to be done. However when thread=single the old qemu_cpu_kick_rr_cpu only advanced the vCPU to the next executing one which can lead to a hang in the case that:
a) the kick is from outside the vCPUs (e.g. iothread)
b) the timers are paused (i.e. iothread calling run_on_cpu)
To avoid this lets split qemu_cpu_kick_rr into two functions. One for the timer which continues to advance to the next timeslice and another for all other kicks.
Message-Id: <[email protected]>
--- cpus.c | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-)
cpus.c +18 -6
@@ -949,8 +949,8 @@ static inline int64_t qemu_tcg_next_kick(void)return qemu_clock_get_ns (QEMU_CLOCK_VIRTUAL ) +TCG_KICK_PERIOD ; } -/* Kick the currently round-robin scheduled vCPU */ -static void qemu_cpu_kick_rr_cpu (void ) +/* Kick the currently round-robin scheduled vCPU to next */ +static void qemu_cpu_kick_rr_next_cpu (void ) {CPUState *cpu; do {
@@ -961,6 +961,16 @@ static void qemu_cpu_kick_rr_cpu(void) }while (cpu !=atomic_mb_read (&tcg_current_rr_cpu)); } +/* Kick all RR vCPUs */ +static void qemu_cpu_kick_rr_cpus (void ) +{ +CPUState *cpu; + +CPU_FOREACH (cpu) { +cpu_exit (cpu); + }; +} +static void do_nothing (CPUState *cpu,run_on_cpu_data unused) { }
@@ -993,7 +1003,7 @@ void qemu_timer_notify_cb(void *opaque, QEMUClockType type)static void kick_tcg_thread (void *opaque) {timer_mod (tcg_kick_vcpu_timer,qemu_tcg_next_kick ()); -qemu_cpu_kick_rr_cpu (); +qemu_cpu_kick_rr_next_cpu (); }static void start_tcg_kick_timer (void )
@@ -1828,9 +1838,11 @@ void qemu_cpu_kick(CPUState *cpu) {qemu_cond_broadcast (cpu->halt_cond);if (tcg_enabled ()) { -cpu_exit (cpu); -/* NOP unless doing single-thread RR */ -qemu_cpu_kick_rr_cpu (); +if (qemu_tcg_mttcg_enabled ()) { +cpu_exit (cpu); + }else { +qemu_cpu_kick_rr_cpus (); + } }else {if (hax_enabled ()) {/*
Signature · 1 line
2.17.1
Patchew URL: https://patchew.org/QEMU/[email protected]/
Patchew URL: https://patchew.org/QEMU/[email protected]/
Hi,
This series seems to have some coding style problems. See output below for more information:
Subject: [PULL 00/23] tcg patch queue
Type: series
Message-id: [email protected]
=== TEST SCRIPT BEGIN ===
#!/bin/bash
git rev-parse base > /dev/null || exit 0
git config --local diff.renamelimit 0
git config --local diff.renames True
git config --local diff.algorithm histogram./scripts/checkpatch.pl --mailback base..
=== TEST SCRIPT END ===
Switched to a new branch 'test'
6407be4 cpus: kick all vCPUs when running thread=single 5a14452 tcg/ppc: Update vector support for v3.00 dup/dupi 65f7a9c tcg/ppc: Update vector support for v3.00 load/store 9f16a4d tcg/ppc: Update vector support for v3.00 Altivec ee0a018 tcg/ppc: Update vector support for v2.07 FP 01bb12c tcg/ppc: Update vector support for v2.07 VSX e462e25 tcg/ppc: Update vector support for v2.07 Altivec e55fd3e tcg/ppc: Update vector support for VSX 0381ad7 tcg/ppc: Enable Altivec detection
0e697fc tcg/ppc: Support vector dup2
efe1d0d tcg/ppc: Support vector multiply
bc88d8d tcg/ppc: Support vector shift by immediate 4912f82 tcg/ppc: Add support for vector saturated add/subtract 79cbbdfc tcg/ppc: Add support for vector add/subtract 325d82d tcg/ppc: Add support for vector maximum/minimum 1a6fc18 tcg/ppc: Add support for load/store/logic/comparison 49538b2 tcg/ppc: Enable tcg backend vector compilation ac2d6b5 tcg/ppc: Replace HAVE_ISEL macro with a variable 7ee5d6b tcg/ppc: Replace HAVE_ISA_2_06
d32d5f4 tcg/ppc: Create TCGPowerISA and have_isa 5278062 tcg/ppc: Introduce macros VRT(), VRA(), VRB(), VRC() c9d6cf7 tcg/ppc: Introduce macro VX4()
3795250 tcg/ppc: Introduce Altivec registers
=== OUTPUT BEGIN ===
1/23 Checking commit 3795250e5878 (tcg/ppc: Introduce Altivec registers) 2/23 Checking commit c9d6cf75035c (tcg/ppc: Introduce macro VX4())
ERROR: spaces required around that '|' (ctx:VxV)
#21: FILE: tcg/ppc/tcg-target.inc.c:322:
+#define VX4(opc) (OPCD(4)|(opc))
^
total: 1 errors, 0 warnings, 7 lines checked
Patch 2/23 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS.
3/23 Checking commit 527806227bb1 (tcg/ppc: Introduce macros VRT(), VRA(), VRB(), VRC()) 4/23 Checking commit d32d5f48d5cb (tcg/ppc: Create TCGPowerISA and have_isa) 5/23 Checking commit 7ee5d6b3642f (tcg/ppc: Replace HAVE_ISA_2_06)
6/23 Checking commit ac2d6b517c0b (tcg/ppc: Replace HAVE_ISEL macro with a variable) 7/23 Checking commit 49538b220d04 (tcg/ppc: Enable tcg backend vector compilation)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #163:
new file mode 100644
total: 0 errors, 1 warnings, 129 lines checked
Patch 7/23 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
8/23 Checking commit 1a6fc18ac9c4 (tcg/ppc: Add support for load/store/logic/comparison) 9/23 Checking commit 325d82d1cc2f (tcg/ppc: Add support for vector maximum/minimum) 10/23 Checking commit 79cbbdfc48b2 (tcg/ppc: Add support for vector add/subtract) 11/23 Checking commit 4912f82f5679 (tcg/ppc: Add support for vector saturated add/subtract) 12/23 Checking commit bc88d8dbca4b (tcg/ppc: Support vector shift by immediate) 13/23 Checking commit efe1d0dee1b4 (tcg/ppc: Support vector multiply)
ERROR: code indent should never use tabs
#133: FILE: tcg/ppc/tcg-target.inc.c:3217:
+^Ibreak;$
total: 1 errors, 0 warnings, 192 lines checked
Patch 13/23 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS.
14/23 Checking commit 0e697fcf2254 (tcg/ppc: Support vector dup2)
15/23 Checking commit 0381ad7d25fa (tcg/ppc: Enable Altivec detection) 16/23 Checking commit e55fd3e6de18 (tcg/ppc: Update vector support for VSX) 17/23 Checking commit e462e2599c15 (tcg/ppc: Update vector support for v2.07 Altivec) 18/23 Checking commit 01bb12c7ac24 (tcg/ppc: Update vector support for v2.07 VSX) 19/23 Checking commit ee0a018ad733 (tcg/ppc: Update vector support for v2.07 FP) 20/23 Checking commit 9f16a4d4876f (tcg/ppc: Update vector support for v3.00 Altivec) 21/23 Checking commit 65f7a9c3a801 (tcg/ppc: Update vector support for v3.00 load/store) 22/23 Checking commit 5a144522b801 (tcg/ppc: Update vector support for v3.00 dup/dupi) 23/23 Checking commit 6407be4fe200 (cpus: kick all vCPUs when running thread=single) === OUTPUT END ===
Test command exited with code: 1
The full log is available at
http://patchew.org/logs/[email protected]/testing.checkpatch/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to [email protected]
Quoted 8 lines · Richard Henderson
The following changes since commit
9e5319ca52a5b9e84d55ad9c36e2c0b317a122bb:Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into
staging (2019-10-04 18:32:34 +0100)are available in the Git repository at:
Quoted 8 lines
https://github.com/rth7680/qemu.git tags/pull-tcg-20191013
for you to fetch changes up to
d2f86bba6931388e275e8eb4ccd1dbcc7cae6328:cpus: kick all vCPUs when running thread=single (2019-10-07 14:08:58
-0400)----------------------------------------------------------------
OK - great! Congratulations for bringing the series to this final stage! This was not an easy task at all. Our team will be using and enjoying the fruits of this work on our test ppc hosts, that do have an important place in our test bed.
Just for the sake of being punctual, may I ask you to add "Tested-by:" for Mark Cave-Ayland, and "Reviewed-by:" for myself to all 22 ppc host patches, as it was indicated in the responses to the last version of the ppc host series?
Thank you in advance, and again all kudos for the series!
Aleksandar
Quoted 40 lines
Host vector support for tcg/ppc.
Fix thread=single cpu kicking.----------------------------------------------------------------
Alex Bennée (1):
cpus: kick all vCPUs when running thread=singleRichard Henderson (22):
tcg/ppc: Introduce Altivec registers tcg/ppc: Introduce macroVX4()
tcg/ppc: Introduce macrosVRT(),VRA(),VRB(),VRC()tcg/ppc: Create TCGPowerISA andhave_isatcg/ppc: ReplaceHAVE_ISA_2_06
tcg/ppc: ReplaceHAVE_ISELmacro with a variable tcg/ppc: Enable tcg backend vector compilation tcg/ppc: Add support for load/store/logic/comparison tcg/ppc: Add support for vector maximum/minimum tcg/ppc: Add support for vector add/subtract tcg/ppc: Add support for vector saturated add/subtract tcg/ppc: Support vector shift by immediate tcg/ppc: Support vector multiply
tcg/ppc: Support vector dup2
tcg/ppc: Enable Altivec detection
tcg/ppc: Update vector support for VSX tcg/ppc: Update vector support for v2.07 Altivec tcg/ppc: Update vector support for v2.07 VSX tcg/ppc: Update vector support for v2.07 FP tcg/ppc: Update vector support for v3.00 Altivec tcg/ppc: Update vector support for v3.00 load/store tcg/ppc: Update vector support for v3.00 dup/dupitcg/ppc/tcg-target.h | 51 ++- tcg/ppc/tcg-target.opc.h | 13 + cpus.c | 24 +- tcg/ppc/tcg-target.inc.c | 1118 ++++++++++++++++++++++++++++++ ++++++++++++---- 4 files changed, 1119 insertions(+), 87 deletions(-) create mode 100644 tcg/ppc/tcg-target.opc.h
Quoted 3 lines · Aleksandar Markovic
Just for the sake of being punctual, may I ask you to add "Tested-by:" for Mark Cave-Ayland, and "Reviewed-by:" for myself to all 22 ppc host patches, as it was indicated in the responses to the last version of the ppc host series?
I did add your r-b to those patches that didn't already have your s-o-b.
I added Mark's T-b to patch 15, which is the one that enables basic altivec. Mark said that he was testing ppc32 and I know that he's got a G4. He would not have tested the later patches with that hardware.
r~
Quoted 8 lines · Richard Henderson
Quoted 1 line · Aleksandar Markovic
Just for the sake of being punctual, may I ask you to add "Tested-by:"
for Mark
Quoted 1 line
Cave-Ayland, and "Reviewed-by:" for myself to all 22 ppc host patches,
as it
Quoted 1 line
was indicated in the responses to the last version of the ppc host
series?
Quoted 10 lines
I did add your r-b to those patches that didn't already have your s-o-b.
I added Mark's T-b to patch 15, which is the one that enables basic altivec.
Mark said that he was testing ppc32 and I know that he's got a G4. He would
not have tested the later patches with that hardware.
Mark tested the whole series, applied to his test bed. This means that all patches are tested for a particular setup - for example, among other things, he established that the patches that are supposed to directly impact different setups do not cause regressions on his setup.
I responded to the cover letter with "r-b for all patches", and would like that to be recorded.
Aleksandar
Quoted 2 lines
r~
Quoted 7 lines · Richard Henderson
The following changes since commit
9e5319ca52a5b9e84d55ad9c36e2c0b317a122bb:Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging (2019-10-04 18:32:34 +0100)
are available in the Git repository at:
https://github.com/rth7680/qemu.git tags/pull-tcg-20191013
I have regenerated the pull with the same tag, including the r-b and t-b that Aleksandar requested.
r~
Quoted 44 lines
for you to fetch changes up to
d2f86bba6931388e275e8eb4ccd1dbcc7cae6328:cpus: kick all vCPUs when running thread=single (2019-10-07 14:08:58 -0400)
----------------------------------------------------------------
Host vector support for tcg/ppc.
Fix thread=single cpu kicking.----------------------------------------------------------------
Alex Bennée (1):
cpus: kick all vCPUs when running thread=singleRichard Henderson (22):
tcg/ppc: Introduce Altivec registers tcg/ppc: Introduce macroVX4()
tcg/ppc: Introduce macrosVRT(),VRA(),VRB(),VRC()tcg/ppc: Create TCGPowerISA andhave_isatcg/ppc: ReplaceHAVE_ISA_2_06
tcg/ppc: ReplaceHAVE_ISELmacro with a variable tcg/ppc: Enable tcg backend vector compilation tcg/ppc: Add support for load/store/logic/comparison tcg/ppc: Add support for vector maximum/minimum tcg/ppc: Add support for vector add/subtract tcg/ppc: Add support for vector saturated add/subtract tcg/ppc: Support vector shift by immediate tcg/ppc: Support vector multiply
tcg/ppc: Support vector dup2
tcg/ppc: Enable Altivec detection
tcg/ppc: Update vector support for VSX tcg/ppc: Update vector support for v2.07 Altivec tcg/ppc: Update vector support for v2.07 VSX tcg/ppc: Update vector support for v2.07 FP tcg/ppc: Update vector support for v3.00 Altivec tcg/ppc: Update vector support for v3.00 load/store tcg/ppc: Update vector support for v3.00 dup/dupitcg/ppc/tcg-target.h | 51 ++- tcg/ppc/tcg-target.opc.h | 13 + cpus.c | 24 +- tcg/ppc/tcg-target.inc.c | 1118 ++++++++++++++++++++++++++++++++++++++++++---- 4 files changed, 1119 insertions(+), 87 deletions(-) create mode 100644 tcg/ppc/tcg-target.opc.h
Peter Maydell
AppliedQuoted 6 lines · Richard Henderson
Quoted 4 lines · Richard Henderson
The following changes since commit
9e5319ca52a5b9e84d55ad9c36e2c0b317a122bb:Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging (2019-10-04 18:32:34 +0100)
Quoted 7 lines
Quoted 3 lines
are available in the Git repository at:
https://github.com/rth7680/qemu.git tags/pull-tcg-20191013
I have regenerated the pull with the same tag, including the r-b and t-b that Aleksandar requested.
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/4.2
for any user-visible changes.
-- PMM