* [PATCH] tcg: Add tcg_gen_mov_ptr
@ 2022-05-31 3:21 Richard Henderson
2022-06-01 14:12 ` Matheus K. Ferst
0 siblings, 1 reply; 2+ messages in thread
From: Richard Henderson @ 2022-05-31 3:21 UTC (permalink / raw)
To: qemu-devel; +Cc: qemu-arm
Add an interface to perform moves between TCGv_ptr.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
This will be required for target/arm FEAT_SME.
r~
---
include/tcg/tcg-op.h | 5 +++++
1 file changed, 5 insertions(+)
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)
{
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] tcg: Add tcg_gen_mov_ptr
2022-05-31 3:21 [PATCH] tcg: Add tcg_gen_mov_ptr Richard Henderson
@ 2022-06-01 14:12 ` Matheus K. Ferst
0 siblings, 0 replies; 2+ messages in thread
From: Matheus K. Ferst @ 2022-06-01 14:12 UTC (permalink / raw)
To: Richard Henderson, qemu-devel; +Cc: qemu-arm
On 31/05/2022 00:21, Richard Henderson wrote:
> Add an interface to perform moves between TCGv_ptr.
>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
>
> This will be required for target/arm FEAT_SME.
>
> r~
>
> ---
> include/tcg/tcg-op.h | 5 +++++
> 1 file changed, 5 insertions(+)
>
> 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)
> {
> --
> 2.34.1
>
>
Reviewed-by: Matheus Ferst <matheus.ferst@eldorado.org.br>
--
Matheus K. Ferst
Instituto de Pesquisas ELDORADO <http://www.eldorado.org.br/>
Analista de Software
Aviso Legal - Disclaimer <https://www.eldorado.org.br/disclaimer.html>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-06-01 14:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-31 3:21 [PATCH] tcg: Add tcg_gen_mov_ptr Richard Henderson
2022-06-01 14:12 ` Matheus K. Ferst
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).