mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
tcg: Add TYPE parameter to tcg_out_mov.
Mirror tcg_out_movi in having a TYPE parameter. This allows x86_64 to perform the move at the proper width, which may elide a REX prefix. Introduce a TCG_TYPE_REG enumerator to represent the "native width" of the host register, and to distinguish the usage from "pointer data" as represented by the existing TCG_TYPE_PTR. Update all targets to match. Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
26ebe46848
commit
3b6dac3416
12 changed files with 122 additions and 123 deletions
|
@ -1798,7 +1798,7 @@ static void tcg_out_addi(TCGContext *s, int reg, tcg_target_long val)
|
|||
}
|
||||
}
|
||||
|
||||
static inline void tcg_out_mov(TCGContext *s, int ret, int arg)
|
||||
static inline void tcg_out_mov(TCGContext *s, TCGType type, int ret, int arg)
|
||||
{
|
||||
tcg_out_dat_reg(s, COND_AL, ARITH_MOV, ret, 0, arg, SHIFT_IMM_LSL(0));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue