]> git.proxmox.com Git - mirror_qemu.git/commitdiff
tcg: Add tcg_gen_mov_ptr
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 16 May 2022 23:10:51 +0000 (16:10 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Thu, 2 Jun 2022 15:09:46 +0000 (08:09 -0700)
Add an interface to perform moves between TCGv_ptr.

Reviewed-by: Matheus Ferst <matheus.ferst@eldorado.org.br>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
include/tcg/tcg-op.h

index b09b8b4a0569b2a438f4cbf19574777ee0e88b5f..209e1683059ca12fe6338fbca07068e3d697214f 100644 (file)
@@ -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)
 {