mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-19 08:02:15 -06:00
tcg-arm: Use strd for tcg_out_arg_reg64
Signed-off-by: Richard Henderson <rth@twiddle.net>
This commit is contained in:
parent
d9f4dde4a6
commit
e5e2e4a74b
1 changed files with 10 additions and 3 deletions
|
@ -1149,10 +1149,17 @@ static TCGReg tcg_out_arg_reg64(TCGContext *s, TCGReg argreg,
|
||||||
if (argreg & 1) {
|
if (argreg & 1) {
|
||||||
argreg++;
|
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, arglo);
|
||||||
argreg = tcg_out_arg_reg32(s, argreg, arghi);
|
argreg = tcg_out_arg_reg32(s, argreg, arghi);
|
||||||
return argreg;
|
return argreg;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#define TLB_SHIFT (CPU_TLB_ENTRY_BITS + CPU_TLB_BITS)
|
#define TLB_SHIFT (CPU_TLB_ENTRY_BITS + CPU_TLB_BITS)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue