diff options
author | Richard Henderson | 2022-05-17 01:10:51 +0200 |
---|---|---|
committer | Richard Henderson | 2022-06-02 17:09:46 +0200 |
commit | dc24c99116e926b0c56be63acbc086d13e32032b (patch) | |
tree | 708cfa56a42e2e085d6b145821c96d1282be797e /include/tcg/tcg-op.h | |
parent | Merge tag 'm68k-for-7.1-pull-request' of https://github.com/vivier/qemu-m68k ... (diff) | |
download | qemu-dc24c99116e926b0c56be63acbc086d13e32032b.tar.gz qemu-dc24c99116e926b0c56be63acbc086d13e32032b.tar.xz qemu-dc24c99116e926b0c56be63acbc086d13e32032b.zip |
tcg: Add tcg_gen_mov_ptr
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>
Diffstat (limited to 'include/tcg/tcg-op.h')
-rw-r--r-- | include/tcg/tcg-op.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/tcg/tcg-op.h b/include/tcg/tcg-op.h index b09b8b4a05..209e168305 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) { |