From: Richard Henderson Date: Mon, 16 May 2022 23:10:51 +0000 (-0700) Subject: tcg: Add tcg_gen_mov_ptr X-Git-Tag: v7.1.0-rc0~79^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dc24c99116e926b0c56be63acbc086d13e32032b;p=thirdparty%2Fqemu.git tcg: Add tcg_gen_mov_ptr Add an interface to perform moves between TCGv_ptr. Reviewed-by: Matheus Ferst Signed-off-by: Richard Henderson --- diff --git a/include/tcg/tcg-op.h b/include/tcg/tcg-op.h index b09b8b4a056..209e1683059 100644 --- a/include/tcg/tcg-op.h +++ b/include/tcg/tcg-op.h @@ -1288,6 +1288,11 @@ static inline void tcg_gen_addi_ptr(TCGv_ptr r, TCGv_ptr a, intptr_t b) glue(tcg_gen_addi_,PTR)((NAT)r, (NAT)a, b); } +static inline void tcg_gen_mov_ptr(TCGv_ptr d, TCGv_ptr s) +{ + glue(tcg_gen_mov_,PTR)((NAT)d, (NAT)s); +} + static inline void tcg_gen_brcondi_ptr(TCGCond cond, TCGv_ptr a, intptr_t b, TCGLabel *label) {