mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-01-07 23:17:43 -07:00
tcg: Stash MemOp size in TCGOP_FLAGS
This will enable removing INDEX_op_qemu_st8_*_i32, by exposing the operand size to constraint selection. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
a28f151d61
commit
bf7ca5fb30
1 changed files with 6 additions and 2 deletions
|
|
@ -91,11 +91,15 @@ static MemOp tcg_canonicalize_memop(MemOp op, bool is64, bool st)
|
|||
static void gen_ldst(TCGOpcode opc, TCGType type, TCGTemp *vl, TCGTemp *vh,
|
||||
TCGTemp *addr, MemOpIdx oi)
|
||||
{
|
||||
TCGOp *op;
|
||||
|
||||
if (vh) {
|
||||
tcg_gen_op4(opc, type, temp_arg(vl), temp_arg(vh), temp_arg(addr), oi);
|
||||
op = tcg_gen_op4(opc, type, temp_arg(vl), temp_arg(vh),
|
||||
temp_arg(addr), oi);
|
||||
} else {
|
||||
tcg_gen_op3(opc, type, temp_arg(vl), temp_arg(addr), oi);
|
||||
op = tcg_gen_op3(opc, type, temp_arg(vl), temp_arg(addr), oi);
|
||||
}
|
||||
TCGOP_FLAGS(op) = get_memop(oi) & MO_SIZE;
|
||||
}
|
||||
|
||||
static void gen_ldst_i64(TCGOpcode opc, TCGv_i64 v, TCGTemp *addr, MemOpIdx oi)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue