qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 17/54] tcg: Introduce tcg_out_xchg


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH v2 17/54] tcg: Introduce tcg_out_xchg
Date: Sat, 22 Apr 2023 01:05:34 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.10.0

On 11/4/23 03:04, Richard Henderson wrote:
We will want a backend interface for register swapping.
This is only properly defined for x86; all others get a
stub version that always indicates failure.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
  tcg/tcg.c                        | 2 ++
  tcg/aarch64/tcg-target.c.inc     | 5 +++++
  tcg/arm/tcg-target.c.inc         | 5 +++++
  tcg/i386/tcg-target.c.inc        | 8 ++++++++
  tcg/loongarch64/tcg-target.c.inc | 5 +++++
  tcg/mips/tcg-target.c.inc        | 5 +++++
  tcg/ppc/tcg-target.c.inc         | 5 +++++
  tcg/riscv/tcg-target.c.inc       | 5 +++++
  tcg/s390x/tcg-target.c.inc       | 5 +++++
  tcg/sparc64/tcg-target.c.inc     | 5 +++++
  tcg/tci/tcg-target.c.inc         | 5 +++++
  11 files changed, 55 insertions(+)

diff --git a/tcg/tcg.c b/tcg/tcg.c
index 328e018a80..fde5ccc57c 100644
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -115,6 +115,8 @@ static void tcg_out_exts_i32_i64(TCGContext *s, TCGReg ret, 
TCGReg arg);
  static void tcg_out_extu_i32_i64(TCGContext *s, TCGReg ret, TCGReg arg);
  static void tcg_out_extrl_i64_i32(TCGContext *s, TCGReg ret, TCGReg arg);
  static void tcg_out_addi_ptr(TCGContext *s, TCGReg, TCGReg, tcg_target_long);
+static bool tcg_out_xchg(TCGContext *s, TCGType type, TCGReg r1, TCGReg r2)
+    __attribute__((unused));

Can you document this in docs/devel/tcg-ops.rst?

Otherwise,

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]