mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 02:54:58 -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
|
@ -827,7 +827,8 @@ static inline void tcg_out_bundle(TCGContext *s, int template,
|
|||
s->code_ptr += 16;
|
||||
}
|
||||
|
||||
static inline void tcg_out_mov(TCGContext *s, TCGArg ret, TCGArg arg)
|
||||
static inline void tcg_out_mov(TCGContext *s, TCGType type,
|
||||
TCGArg ret, TCGArg arg)
|
||||
{
|
||||
tcg_out_bundle(s, mmI,
|
||||
tcg_opc_m48(TCG_REG_P0, OPC_NOP_M48, 0),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue