mirror of
https://github.com/mii443/qemu.git
synced 2025-12-03 11:08:25 +00:00
tcg: Allocate TCGTemp pairs in host memory order
Allocate the first of a pair at the lower address, and the second of a pair at the higher address. This will make it easier to find the beginning of the larger memory block. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
@@ -62,11 +62,11 @@ static inline unsigned tcg_call_flags(TCGOp *op)
|
||||
#if TCG_TARGET_REG_BITS == 32
|
||||
static inline TCGv_i32 TCGV_LOW(TCGv_i64 t)
|
||||
{
|
||||
return temp_tcgv_i32(tcgv_i64_temp(t));
|
||||
return temp_tcgv_i32(tcgv_i64_temp(t) + HOST_BIG_ENDIAN);
|
||||
}
|
||||
static inline TCGv_i32 TCGV_HIGH(TCGv_i64 t)
|
||||
{
|
||||
return temp_tcgv_i32(tcgv_i64_temp(t) + 1);
|
||||
return temp_tcgv_i32(tcgv_i64_temp(t) + !HOST_BIG_ENDIAN);
|
||||
}
|
||||
#else
|
||||
extern TCGv_i32 TCGV_LOW(TCGv_i64) QEMU_ERROR("32-bit code path is reachable");
|
||||
|
||||
Reference in New Issue
Block a user