tcg-arm ldst improvements
cover tcg-arm ldst improvements
This is based on the "Further tcg ldst improvements" patch set.
The first patch is unchanged from the original "tcg ldst" patch set.
The second patch is modified to avoid defining local helpers in the tcg/arm backend. This is trivial now that we can use the real return address, so the extra parameter can just be stored from R14.
The last three patches are new. Stuff I noticed while examining the disassembly dumps.
For convenience, the first patch set is
git://github.com/rth7680/qemu.git tcg-ool-2
and this one is
git://github.com/rth7680/qemu.git tcg-ool-arm-2
r~
Richard Henderson (5):
tcg-arm: Use ldrd/strd for appropriate qemu_ld/st64
tcg-arm: Rearrange slow-path qemu_ld/st
tcg-arm: Use strd for tcg_out_arg_reg64
tcg-arm: Use QEMU_BUILD_BUG_ON to verify constraints on tlb
tcg-arm: Better pipeline for softmmu tlb access
include/exec/exec-all.h | 14 -- tcg/arm/tcg-target.c | 397 ++++++++++++++++++++++++------------------------ 2 files changed, 202 insertions(+), 209 deletions(-)
Signature · 1 line
1.8.1.4
PATCH 1/5 tcg-arm: Use ldrd/strd for appropriate qemu_ld/st64
--- tcg/arm/tcg-target.c | 48 +++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 43 insertions(+), 5 deletions(-)
tcg/arm/tcg-target.c +43 -5
@@ -320,6 +320,9 @@ typedef enum {INSN_STRB_REG =0x06400000 ,INSN_LDRD_IMM =0x004000d0 , +INSN_LDRD_REG =0x000000d0 , +INSN_STRD_IMM =0x004000f0 , +INSN_STRD_REG =0x000000f0 , } ARMInsn;#define SHIFT_IMM_LSL (im) (((im) << 7) | 0x00)
@@ -810,6 +813,30 @@ static inline void tcg_out_st32_r(TCGContext *s, int cond, TCGReg rt,tcg_out_memop_r (s, cond,INSN_STR_REG , rt, rn, rm,1 ,1 ,0 ); } +static inline void tcg_out_ldrd_8 (TCGContext *s,int cond,TCGReg rt, +TCGReg rn,int imm8) +{ +tcg_out_memop_8 (s, cond,INSN_LDRD_IMM , rt, rn, imm8,1 ,0 ); +} + +static inline void tcg_out_ldrd_r (TCGContext *s,int cond,TCGReg rt, +TCGReg rn,TCGReg rm) +{ +tcg_out_memop_r (s, cond,INSN_LDRD_REG , rt, rn, rm,1 ,1 ,0 ); +} + +static inline void tcg_out_strd_8 (TCGContext *s,int cond,TCGReg rt, +TCGReg rn,int imm8) +{ +tcg_out_memop_8 (s, cond,INSN_STRD_IMM , rt, rn, imm8,1 ,0 ); +} + +static inline void tcg_out_strd_r (TCGContext *s,int cond,TCGReg rt, +TCGReg rn,TCGReg rm) +{ +tcg_out_memop_r (s, cond,INSN_STRD_REG , rt, rn, rm,1 ,1 ,0 ); +} +/* Register pre-increment with base writeback. */ static inline void tcg_out_ld32_rwb (TCGContext *s,int cond,TCGReg rt,TCGReg rn,TCGReg rm)
@@ -1397,6 +1424,9 @@ static void tcg_out_qemu_ld(TCGContext *s, const TCGArg *args, int opc)tcg_out_ld32_12 (s,COND_AL , data_reg,TCG_REG_R1 ,4 );tcg_out_bswap32 (s,COND_AL , data_reg2, data_reg2);tcg_out_bswap32 (s,COND_AL , data_reg, data_reg); + }else if (use_armv6_instructions + && (data_reg &1 ) ==0 && data_reg2 == data_reg +1 ) { +tcg_out_ldrd_r (s,COND_AL , data_reg, addr_reg,TCG_REG_R1 ); }else {tcg_out_ld32_rwb (s,COND_AL , data_reg,TCG_REG_R1 , addr_reg);tcg_out_ld32_12 (s,COND_AL , data_reg2,TCG_REG_R1 ,4 );
@@ -1450,9 +1480,13 @@ static void tcg_out_qemu_ld(TCGContext *s, const TCGArg *args, int opc) }break ;case 3 : -/* TODO: use block load - -* check that data_reg2 > data_reg or the other way */ -if (data_reg == addr_reg) { +if (use_armv6_instructions && !bswap + && (data_reg &1 ) ==0 && data_reg2 == data_reg +1 ) { +tcg_out_ldrd_8 (s,COND_AL , data_reg, addr_reg,0 ); + }else if (use_armv6_instructions && bswap + && (data_reg2 &1 ) ==0 && data_reg == data_reg2 +1 ) { +tcg_out_ldrd_8 (s,COND_AL , data_reg2, addr_reg,0 ); + }else if (data_reg == addr_reg) {tcg_out_ld32_12 (s,COND_AL , data_reg2, addr_reg, bswap ?0 :4 );tcg_out_ld32_12 (s,COND_AL , data_reg, addr_reg, bswap ?4 :0 ); }else {
@@ -1529,6 +1563,9 @@ static void tcg_out_qemu_st(TCGContext *s, const TCGArg *args, int opc)tcg_out_st32_rwb (s,COND_AL ,TCG_REG_R0 ,TCG_REG_R1 , addr_reg);tcg_out_bswap32 (s,COND_AL ,TCG_REG_R0 , data_reg);tcg_out_st32_12 (s,COND_AL ,TCG_REG_R0 ,TCG_REG_R1 ,4 ); + }else if (use_armv6_instructions + && (data_reg &1 ) ==0 && data_reg2 == data_reg +1 ) { +tcg_out_strd_r (s,COND_AL , data_reg, addr_reg,TCG_REG_R1 ); }else {tcg_out_st32_rwb (s,COND_AL , data_reg,TCG_REG_R1 , addr_reg);tcg_out_st32_12 (s,COND_AL , data_reg2,TCG_REG_R1 ,4 );
@@ -1576,13 +1613,14 @@ static void tcg_out_qemu_st(TCGContext *s, const TCGArg *args, int opc) }break ;case 3 : -/* TODO: use block store - -* check that data_reg2 > data_reg or the other way */ if (bswap) {tcg_out_bswap32 (s,COND_AL ,TCG_REG_R0 , data_reg2);tcg_out_st32_12 (s,COND_AL ,TCG_REG_R0 , addr_reg,0 );tcg_out_bswap32 (s,COND_AL ,TCG_REG_R0 , data_reg);tcg_out_st32_12 (s,COND_AL ,TCG_REG_R0 , addr_reg,4 ); + }else if (use_armv6_instructions + && (data_reg &1 ) ==0 && data_reg2 == data_reg +1 ) { +tcg_out_strd_8 (s,COND_AL , data_reg, addr_reg,0 ); }else {tcg_out_st32_12 (s,COND_AL , data_reg, addr_reg,0 );tcg_out_st32_12 (s,COND_AL , data_reg2, addr_reg,4 );
Signature · 1 line
1.8.1.4
PATCH 2/5 tcg-arm: Rearrange slow-path qemu_ld/st
In reply to Richard HendersonInstead of using a branch-call-branch sequence, arrange for a call-branch sequence, using the ARM's conditional call insn. This reduces the size of the slow-path within the TB, and makes the GETPC_EXT implementation identical for TCG and not-TCG.
--- include/exec/exec-all.h | 14 --- tcg/arm/tcg-target.c | 270 +++++++++++++++++++++--------------------------- 2 files changed, 120 insertions(+), 164 deletions(-)
include/exec/exec-all.h +0 -14
@@ -326,20 +326,6 @@ extern uintptr_t tci_tb_ptr;#if defined(CONFIG_QEMU_LDST_OPTIMIZATION ) && defined(CONFIG_SOFTMMU )# if defined (_ARCH_PPC) && !defined (_ARCH_PPC64)# define GETRA_LDST (RA ) (*(int32_t *)((RA) - 4)) -# elif defined(__arm__) -/* We define two insns between the return address and the branch back to -straight-line. Find and decode that branch insn. */ -# define GETRA_LDST (RA ) tcg_getra_ldst(RA) -static inline uintptr_t tcg_getra_ldst (uintptr_t ra) -{ -int32_t b; - ra +=8 ;/* skip the two insns */ - b = *(int32_t *)ra;/* load the branch insn */ - b = (b <<8 ) >> (8 -2 );/* extract the displacement */ - ra +=8 ;/* branches are relative to pc+8 */ - ra += b;/* apply the displacement */ -return ra; -}# elif defined(__aarch64__)# define GETRA_LDST (RA ) tcg_getra_ldst(RA)static inline uintptr_t tcg_getra_ldst (uintptr_t ra)
tcg/arm/tcg-target.c +120 -150
434 lines not on this page · raw message
Signature · 1 line
1.8.1.4
PATCH 3/5 tcg-arm: Use strd for tcg_out_arg_reg64
In reply to Richard Henderson--- tcg/arm/tcg-target.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-)
tcg/arm/tcg-target.c +10 -3
@@ -1156,9 +1156,16 @@ static TCGReg tcg_out_arg_reg64(TCGContext *s, TCGReg argreg,if (argreg &1 ) { argreg++; } - argreg =tcg_out_arg_reg32 (s, argreg, arglo); - argreg =tcg_out_arg_reg32 (s, argreg, arghi); -return argreg; +if (use_armv6_instructions && argreg >=4 + && (arglo &1 ) ==0 && arghi == arglo +1 ) { +tcg_out_strd_8 (s,COND_AL , arglo, +TCG_REG_CALL_STACK , (argreg -4 ) *4 ); +return argreg +2 ; + }else { + argreg =tcg_out_arg_reg32 (s, argreg, arglo); + argreg =tcg_out_arg_reg32 (s, argreg, arghi); +return argreg; + } }#define TLB_SHIFT (CPU_TLB_ENTRY_BITS + CPU_TLB_BITS)
Signature · 1 line
1.8.1.4
PATCH 4/5 tcg-arm: Use QEMU_BUILD_BUG_ON to verify constraints on tlb
In reply to Richard HendersonOne of the two constraints we already checked via #if, but the tlb offset distance was only checked at runtime.
--- tcg/arm/tcg-target.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-)
tcg/arm/tcg-target.c +10 -5
@@ -1170,6 +1170,15 @@ static TCGReg tcg_out_arg_reg64(TCGContext *s, TCGReg argreg,#define TLB_SHIFT (CPU_TLB_ENTRY_BITS + CPU_TLB_BITS) +/* We're expecting to use an 8-bit immediate and to mask. */ +QEMU_BUILD_BUG_ON (CPU_TLB_BITS >8 ); + +/* We're expecting to use an 8-bit immediate add + 8-bit ldrd offset. +Using the offset of the second entry in the last tlb table ensures +that we can index all of the elements of the first entry. */ +QEMU_BUILD_BUG_ON (offsetof (CPUArchState ,tlb_table [NB_MMU_MODES -1 ][1 ]) + > 0xffff); +/* Load and compare a TLB entry, leaving the flags set. Leaves R2 pointing to the tlb entry. Clobbers R1 and TMP. */
@@ -1197,14 +1206,10 @@ static void tcg_out_tlb_read(TCGContext *s, TCGReg addrlo, TCGReg addrhi,* ldr r0, [r2, r0]! (3) * cmp r0, tmp (4) */ -# if CPU_TLB_BITS >8 -# error -# endif tcg_out_dat_reg (s,COND_AL ,ARITH_MOV ,TCG_REG_TMP ,0 , addrlo,SHIFT_IMM_LSR (TARGET_PAGE_BITS )); -/* We assume that the offset is contained within 16 bits. */ -assert ((tlb_offset & ~0xffff ) ==0 ); +/* We checked that the offset is contained within 16 bits above. */ if (tlb_offset >0xff ) {tcg_out_dat_imm (s,COND_AL ,ARITH_ADD ,TCG_REG_R2 , base, (24 <<7 ) | (tlb_offset >>8 ));
Signature · 1 line
1.8.1.4
PATCH 5/5 tcg-arm: Better pipeline for softmmu tlb access
In reply to Richard HendersonMoves the load for the tlb addend earlier, to better load latency. Avoids the writeback from the comparator load, since we know how to adjust the offset between the two loads.
: e2862c03 add r2, r6, #768 ; 0x300 : e20c00ff and r0, ip, #255 ; 0xff : e0822280 add r2, r2, r0, lsl #5 -: e1e209d8 ldrd r0, [r2, #152]! +: e1c209d8 ldrd r0, [r2, #152] : e31b0007 tst fp, #7 ; 0x7 +: e59220a8 ldr r2, [r2, #168] : 0150068c cmpeq r0, ip, lsl #13 : 01510007 cmpeq r1, r7 -: e5921010 ldr r1, [r2, #16] -: 018b40f1 strdeq r4, [fp, r1] +: 018b40f2 strdeq r4, [fp, r2] : 1b0000cb blne 0x75e7e6e4
--- tcg/arm/tcg-target.c | 97 +++++++++++++++++++++++----------------------------- 1 file changed, 42 insertions(+), 55 deletions(-)
tcg/arm/tcg-target.c +42 -55
@@ -1179,13 +1179,18 @@ QEMU_BUILD_BUG_ON(CPU_TLB_BITS > 8);QEMU_BUILD_BUG_ON (offsetof (CPUArchState ,tlb_table [NB_MMU_MODES -1 ][1 ]) > 0xffff); -/* Load and compare a TLB entry, leaving the flags set. Leaves R2 pointing -to the tlb entry. Clobbers R1 and TMP. */ +/* Load and compare a TLB entry, leaving the flags set. Leaves R2 +containing the tlb addend. Clobbers R0, R1 and TMP. */ static void tcg_out_tlb_read (TCGContext *s,TCGReg addrlo,TCGReg addrhi, -int s_bits,int tlb_offset) +int s_bits,int mem_index,bool is_load) {TCGReg base =TCG_AREG0 ; +int tlb_offset = + (is_load + ? offsetof(CPUArchState, tlb_table[mem_index][0].addr_read) + : offsetof(CPUArchState, tlb_table[mem_index][0].addr_write)); + int add_offset = offsetof(CPUArchState, tlb_table[mem_index][0].addend);/* Should generate something like the following: * pre-v7:
@@ -1193,18 +1198,10 @@ static void tcg_out_tlb_read(TCGContext *s, TCGReg addrlo, TCGReg addrhi,* add r2, env, #off & 0xff00 * and r0, tmp, #(CPU_TLB_SIZE - 1) (2) * add r2, r2, r0, lsl #CPU_TLB_ENTRY_BITS (3) -* ldr r0, [r2, #off & 0xff]! (4) +* ldr r0, [r2, #off & 0xff] (4) * tst addr_reg, #s_mask -* cmpeq r0, tmp, lsl #TARGET_PAGE_BITS (5) -* -* v7 (not implemented yet): -* ubfx r2, addr_reg, #TARGET_PAGE_BITS, #CPU_TLB_BITS (1) -* movw tmp, #~TARGET_PAGE_MASK & ~s_mask -* movw r0, #off -* add r2, env, r2, lsl #CPU_TLB_ENTRY_BITS (2) -* bic tmp, addr_reg, tmp -* ldr r0, [r2, r0]! (3) -* cmp r0, tmp (4) +* ldr r2, [r2, #addoff] (5) +* cmpeq r0, tmp, lsl #TARGET_PAGE_BITS */ tcg_out_dat_reg (s,COND_AL ,ARITH_MOV ,TCG_REG_TMP ,0 , addrlo,SHIFT_IMM_LSR (TARGET_PAGE_BITS ));
@@ -1213,7 +1210,6 @@ static void tcg_out_tlb_read(TCGContext *s, TCGReg addrlo, TCGReg addrhi,if (tlb_offset >0xff ) {tcg_out_dat_imm (s,COND_AL ,ARITH_ADD ,TCG_REG_R2 , base, (24 <<7 ) | (tlb_offset >>8 )); - tlb_offset &=0xff ; base =TCG_REG_R2 ; }
@@ -1226,14 +1222,12 @@ static void tcg_out_tlb_read(TCGContext *s, TCGReg addrlo, TCGReg addrhi,but due to how the pointer needs setting up, ldm isn't useful. Base arm5 doesn't have ldrd, but armv5te does. */ if (use_armv6_instructions &&TARGET_LONG_BITS ==64 ) { -tcg_out_memop_8 (s,COND_AL ,INSN_LDRD_IMM ,TCG_REG_R0 , -TCG_REG_R2 , tlb_offset,1 ,1 ); +tcg_out_ldrd_8 (s,COND_AL ,TCG_REG_R0 ,TCG_REG_R2 , tlb_offset &0xff ); }else { -tcg_out_memop_12 (s,COND_AL ,INSN_LDR_IMM ,TCG_REG_R0 , -TCG_REG_R2 , tlb_offset,1 ,1 ); +tcg_out_ld32_12 (s,COND_AL ,TCG_REG_R0 ,TCG_REG_R2 , tlb_offset &0xff );if (TARGET_LONG_BITS ==64 ) { -tcg_out_memop_12 (s,COND_AL ,INSN_LDR_IMM ,TCG_REG_R1 , -TCG_REG_R2 ,4 ,1 ,0 ); +tcg_out_ld32_12 (s,COND_AL ,TCG_REG_R1 ,TCG_REG_R2 , + (tlb_offset &0xff ) +4 ); } }
@@ -1243,6 +1237,10 @@ static void tcg_out_tlb_read(TCGContext *s, TCGReg addrlo, TCGReg addrhi, 0, addrlo, (1 << s_bits) - 1); } +/* Load the tlb addend. */ +tcg_out_ld32_12 (s,COND_AL ,TCG_REG_R2 ,TCG_REG_R2 , + add_offset - (tlb_offset &0xff00 )); +tcg_out_dat_reg (s, (s_bits ?COND_EQ :COND_AL ),ARITH_CMP ,0 ,TCG_REG_R0 ,TCG_REG_TMP ,SHIFT_IMM_LSL (TARGET_PAGE_BITS ));
@@ -1360,53 +1358,48 @@ static void tcg_out_qemu_ld(TCGContext *s, const TCGArg *args, int opc) mem_index = *args; s_bits = opc &3 ; -tcg_out_tlb_read (s, addr_reg, addr_reg2, s_bits, - offsetof(CPUArchState, tlb_table[mem_index][0].addr_read)); - -tcg_out_ld32_12 (s,COND_AL ,TCG_REG_R1 ,TCG_REG_R2 , - offsetof(CPUTLBEntry , addend) - - offsetof(CPUTLBEntry , addr_read)); +tcg_out_tlb_read (s, addr_reg, addr_reg2, s_bits, mem_index,1 );switch (opc) {case 0 : -tcg_out_ld8_r (s,COND_EQ , data_reg, addr_reg,TCG_REG_R1 ); +tcg_out_ld8_r (s,COND_EQ , data_reg, addr_reg,TCG_REG_R2 );break ;case 0 |4 : -tcg_out_ld8s_r (s,COND_EQ , data_reg, addr_reg,TCG_REG_R1 ); +tcg_out_ld8s_r (s,COND_EQ , data_reg, addr_reg,TCG_REG_R2 );break ;case 1 : -tcg_out_ld16u_r (s,COND_EQ , data_reg, addr_reg,TCG_REG_R1 ); +tcg_out_ld16u_r (s,COND_EQ , data_reg, addr_reg,TCG_REG_R2 );if (bswap) {tcg_out_bswap16 (s,COND_EQ , data_reg, data_reg); }break ;case 1 |4 :if (bswap) { -tcg_out_ld16u_r (s,COND_EQ , data_reg, addr_reg,TCG_REG_R1 ); +tcg_out_ld16u_r (s,COND_EQ , data_reg, addr_reg,TCG_REG_R2 );tcg_out_bswap16s (s,COND_EQ , data_reg, data_reg); }else { -tcg_out_ld16s_r (s,COND_EQ , data_reg, addr_reg,TCG_REG_R1 ); +tcg_out_ld16s_r (s,COND_EQ , data_reg, addr_reg,TCG_REG_R2 ); }break ;case 2 :default : -tcg_out_ld32_r (s,COND_EQ , data_reg, addr_reg,TCG_REG_R1 ); +tcg_out_ld32_r (s,COND_EQ , data_reg, addr_reg,TCG_REG_R2 );if (bswap) {tcg_out_bswap32 (s,COND_EQ , data_reg, data_reg); }break ;case 3 :if (bswap) { -tcg_out_ld32_rwb (s,COND_EQ , data_reg2,TCG_REG_R1 , addr_reg); -tcg_out_ld32_12 (s,COND_EQ , data_reg,TCG_REG_R1 ,4 ); +tcg_out_ld32_rwb (s,COND_EQ , data_reg2,TCG_REG_R2 , addr_reg); +tcg_out_ld32_12 (s,COND_EQ , data_reg,TCG_REG_R2 ,4 );tcg_out_bswap32 (s,COND_EQ , data_reg2, data_reg2);tcg_out_bswap32 (s,COND_EQ , data_reg, data_reg); }else if (use_armv6_instructions && (data_reg &1 ) ==0 && data_reg2 == data_reg +1 ) { -tcg_out_ldrd_r (s,COND_EQ , data_reg, addr_reg,TCG_REG_R1 ); +tcg_out_ldrd_r (s,COND_EQ , data_reg, addr_reg,TCG_REG_R2 ); }else { -tcg_out_ld32_rwb (s,COND_EQ , data_reg,TCG_REG_R1 , addr_reg); -tcg_out_ld32_12 (s,COND_EQ , data_reg2,TCG_REG_R1 ,4 ); +tcg_out_ld32_rwb (s,COND_EQ , data_reg,TCG_REG_R2 , addr_reg); +tcg_out_ld32_12 (s,COND_EQ , data_reg2,TCG_REG_R2 ,4 ); }break ; }
@@ -1506,47 +1499,41 @@ static void tcg_out_qemu_st(TCGContext *s, const TCGArg *args, int opc) mem_index = *args; s_bits = opc &3 ; -tcg_out_tlb_read (s, addr_reg, addr_reg2, s_bits, - offsetof(CPUArchState , - tlb_table[mem_index][0].addr_write)); - -tcg_out_ld32_12 (s,COND_AL ,TCG_REG_R1 ,TCG_REG_R2 , - offsetof(CPUTLBEntry , addend) - - offsetof(CPUTLBEntry , addr_write)); +tcg_out_tlb_read (s, addr_reg, addr_reg2, s_bits, mem_index,0 );switch (opc) {case 0 : -tcg_out_st8_r (s,COND_EQ , data_reg, addr_reg,TCG_REG_R1 ); +tcg_out_st8_r (s,COND_EQ , data_reg, addr_reg,TCG_REG_R2 );break ;case 1 :if (bswap) {tcg_out_bswap16st (s,COND_EQ ,TCG_REG_R0 , data_reg); -tcg_out_st16_r (s,COND_EQ ,TCG_REG_R0 , addr_reg,TCG_REG_R1 ); +tcg_out_st16_r (s,COND_EQ ,TCG_REG_R0 , addr_reg,TCG_REG_R2 ); }else { -tcg_out_st16_r (s,COND_EQ , data_reg, addr_reg,TCG_REG_R1 ); +tcg_out_st16_r (s,COND_EQ , data_reg, addr_reg,TCG_REG_R2 ); }break ;case 2 :default :if (bswap) {tcg_out_bswap32 (s,COND_EQ ,TCG_REG_R0 , data_reg); -tcg_out_st32_r (s,COND_EQ ,TCG_REG_R0 , addr_reg,TCG_REG_R1 ); +tcg_out_st32_r (s,COND_EQ ,TCG_REG_R0 , addr_reg,TCG_REG_R2 ); }else { -tcg_out_st32_r (s,COND_EQ , data_reg, addr_reg,TCG_REG_R1 ); +tcg_out_st32_r (s,COND_EQ , data_reg, addr_reg,TCG_REG_R2 ); }break ;case 3 :if (bswap) {tcg_out_bswap32 (s,COND_EQ ,TCG_REG_R0 , data_reg2); -tcg_out_st32_rwb (s,COND_EQ ,TCG_REG_R0 ,TCG_REG_R1 , addr_reg); +tcg_out_st32_rwb (s,COND_EQ ,TCG_REG_R0 ,TCG_REG_R2 , addr_reg);tcg_out_bswap32 (s,COND_EQ ,TCG_REG_R0 , data_reg); -tcg_out_st32_12 (s,COND_EQ ,TCG_REG_R0 ,TCG_REG_R1 ,4 ); +tcg_out_st32_12 (s,COND_EQ ,TCG_REG_R0 ,TCG_REG_R2 ,4 ); }else if (use_armv6_instructions && (data_reg &1 ) ==0 && data_reg2 == data_reg +1 ) { -tcg_out_strd_r (s,COND_EQ , data_reg, addr_reg,TCG_REG_R1 ); +tcg_out_strd_r (s,COND_EQ , data_reg, addr_reg,TCG_REG_R2 ); }else { -tcg_out_st32_rwb (s,COND_EQ , data_reg,TCG_REG_R1 , addr_reg); -tcg_out_st32_12 (s,COND_EQ , data_reg2,TCG_REG_R1 ,4 ); +tcg_out_st32_rwb (s,COND_EQ , data_reg,TCG_REG_R2 , addr_reg); +tcg_out_st32_12 (s,COND_EQ , data_reg2,TCG_REG_R2 ,4 ); }break ; }
Signature · 1 line
1.8.1.4