From patchwork Tue Jan 17 23:10:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 643425 Delivered-To: patch@linaro.org Received: by 2002:a17:522:b9de:b0:4b9:b062:db3b with SMTP id fj30csp1443371pvb; Tue, 17 Jan 2023 15:12:48 -0800 (PST) X-Google-Smtp-Source: AMrXdXudxfUIBLPDqQWT4muzJiLHkQLjFVErdoXnCmo6GDJ1waPS/vmsTEQu3uAAES0W498V+Q5s X-Received: by 2002:a05:6214:5903:b0:4c7:3c7c:4d1e with SMTP id lp3-20020a056214590300b004c73c7c4d1emr6639324qvb.15.1673997168566; Tue, 17 Jan 2023 15:12:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673997168; cv=none; d=google.com; s=arc-20160816; b=n5oBWYgLC058NaOy/GLlb3h2hBqr/9bbWZx1ElPqtzjDUR0mw7zlBRyxsUN5Mtfleh f52yCpI9xD8Tk6fHmufxZ1EECS8gllzqhBPsbpJqMCGTNCwgxSnHgPtjyK+1c/CZma4e dUyOC3mV7ntsydcWIFVDZtVM4CF4ASyWk9Z8/dWHaMkzOujSW0UMEuuRWOuzjOBhY2Pn LpoOq1mTFESH0SRIBZqUCX4gnVOmCP/i3DvmR4CCJEzRNY44qHIgvLTAoD99JbegL7x1 Vgo1wn27sAJ5lFYIOQB+X+Nyab+wSVrewc73AFyCWCwgazmUt6xOx9koMtHKzMmUqNHG umjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=8oa81JIYEewSyioKLFrfVkUjD0MZYKzwLtI6BWxCUHw=; b=cKd4zW+Fwu8tbEKLk3XDj4rnXGu/BPBO7exbYycJYHHvFNnkGYwyGPFAlom9XUPC14 O3TPaIwPKIDW18kaWM4/2QNJG37dSgn2ZTs/wQSBbQpZMVhXJHDWdGWFxerUVmoNf+sd 56eLIYeblww4IcFvQvjb3B6BL540DdGf6hBAVztP6pAxhtiwyJVjIc9pDHALa7n9OLWr ZcWdusy1skqhcyusvAt23ufcFJRLU0srLUkXAwd/Buqss0nGkFZZPOjwy9rDWqxocPLX 9oaZeRcanls2u6TFyAWTaHXXZY5WEfiO/BSnRy7hK3e8k3ecOsUSUaPa4zkdxu+qS+GG IVQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wkPICFup; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id p18-20020a05620a113200b007066911ad88si3215675qkk.726.2023.01.17.15.12.48 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 17 Jan 2023 15:12:48 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wkPICFup; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pHv6x-0003cD-Ok; Tue, 17 Jan 2023 18:11:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pHv6v-0003WL-DC for qemu-devel@nongnu.org; Tue, 17 Jan 2023 18:11:21 -0500 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pHv6t-0001OQ-Lx for qemu-devel@nongnu.org; Tue, 17 Jan 2023 18:11:21 -0500 Received: by mail-pl1-x636.google.com with SMTP id jl3so34323plb.8 for ; Tue, 17 Jan 2023 15:11:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=8oa81JIYEewSyioKLFrfVkUjD0MZYKzwLtI6BWxCUHw=; b=wkPICFupvL+zxISpBJQauu5pNNGA+rAurHxxjTZx8y8YfKXaok8eQ5SMfiwoHn9JFC +0uUTnNYx4bEEpmWHOMg6htELbxXMFg5hmuu8R7Gwccm4mwV4ocugvQvI1DVTdfj0Ik4 +Ru9g47Io5ni8QXdolgSZLtHHA8GPudVvxu6J3luqRQHn2an95xqwwxsqq76tF568SIc JMQASWR/eP8iAt4//c15SQF3WFJOIXrKxXeD3b47MmjWyGKjckJHE+3U0uO29d6oVyJA Kj2NfrJZ5XY9QvyAX346BpyWuYf3bsDvx2EhTi//JI+rP9oiQmfS92eyt0RE3VewBnNO aaOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8oa81JIYEewSyioKLFrfVkUjD0MZYKzwLtI6BWxCUHw=; b=s1rDo7/egtsLvw7tQctmKXPVdRztTnYqI94Qx2cAgCUbKjcwH2dHoz51cU+5lhXXxd anaSuQ7mthBUUhFiGK74wNxZn4LyQTLZxbHRUoS/mBkjA7eK/N3Dukb0/I7mYSsTrihx LAiFPzgvooIrR0DL870/pdy+TimGbZGcEKYVRAaZQ5vjmMWNAzGg9ltShgwhR+iO2awI K3a5YNgg8RxcWUBV4AZznRcCodj2yrL9Q3A8Nhzdr4pP0sFCJetnUadTMS1zD7J3v10B Hea1Le8kHk5tFWjy+e7KJYnVVXzNbh0K/lAu0U2gu/u2LQLdtsNkNvglOLA/qbPROLSo IB+Q== X-Gm-Message-State: AFqh2kopJS2D2CYo/5pmFvFy05wg34ddOwFzWRydqVx0Hu1wJphOIMB6 40qmuERR8PN6U7lQVxtdNhngUu2VHq3fLVPG X-Received: by 2002:a05:6a20:8f21:b0:b5:389e:870e with SMTP id b33-20020a056a208f2100b000b5389e870emr6193348pzk.4.1673997077854; Tue, 17 Jan 2023 15:11:17 -0800 (PST) Received: from stoup.. (rrcs-173-198-77-218.west.biz.rr.com. [173.198.77.218]) by smtp.gmail.com with ESMTPSA id b193-20020a621bca000000b005810c4286d6sm20747070pfb.0.2023.01.17.15.11.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jan 2023 15:11:17 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_M?= =?utf-8?q?athieu-Daud=C3=A9?= Subject: [PULL 14/22] tcg: Always define tb_target_set_jmp_target Date: Tue, 17 Jan 2023 13:10:43 -1000 Message-Id: <20230117231051.354444-15-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230117231051.354444-1-richard.henderson@linaro.org> References: <20230117231051.354444-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::636; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x636.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Install empty versions for !TCG_TARGET_HAS_direct_jump hosts. Reviewed-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- tcg/arm/tcg-target.c.inc | 6 ++++++ tcg/mips/tcg-target.c.inc | 6 ++++++ tcg/riscv/tcg-target.c.inc | 6 ++++++ tcg/tci/tcg-target.c.inc | 6 ++++++ 4 files changed, 24 insertions(+) diff --git a/tcg/arm/tcg-target.c.inc b/tcg/arm/tcg-target.c.inc index b8f3b0c634..b21dd561fa 100644 --- a/tcg/arm/tcg-target.c.inc +++ b/tcg/arm/tcg-target.c.inc @@ -1964,6 +1964,12 @@ static void tcg_out_goto_tb(TCGContext *s, int which) set_jmp_reset_offset(s, which); } +void tb_target_set_jmp_target(const TranslationBlock *tb, int n, + uintptr_t jmp_rx, uintptr_t jmp_rw) +{ + /* Always indirect, nothing to do */ +} + static void tcg_out_op(TCGContext *s, TCGOpcode opc, const TCGArg args[TCG_MAX_OP_ARGS], const int const_args[TCG_MAX_OP_ARGS]) diff --git a/tcg/mips/tcg-target.c.inc b/tcg/mips/tcg-target.c.inc index e54df4128b..0b5e100cb1 100644 --- a/tcg/mips/tcg-target.c.inc +++ b/tcg/mips/tcg-target.c.inc @@ -1977,6 +1977,12 @@ static void tcg_out_goto_tb(TCGContext *s, int which) set_jmp_reset_offset(s, which); } +void tb_target_set_jmp_target(const TranslationBlock *tb, int n, + uintptr_t jmp_rx, uintptr_t jmp_rw) +{ + /* Always indirect, nothing to do */ +} + static void tcg_out_op(TCGContext *s, TCGOpcode opc, const TCGArg args[TCG_MAX_OP_ARGS], const int const_args[TCG_MAX_OP_ARGS]) diff --git a/tcg/riscv/tcg-target.c.inc b/tcg/riscv/tcg-target.c.inc index ee6759f787..e6a3915859 100644 --- a/tcg/riscv/tcg-target.c.inc +++ b/tcg/riscv/tcg-target.c.inc @@ -1310,6 +1310,12 @@ static void tcg_out_goto_tb(TCGContext *s, int which) set_jmp_reset_offset(s, which); } +void tb_target_set_jmp_target(const TranslationBlock *tb, int n, + uintptr_t jmp_rx, uintptr_t jmp_rw) +{ + /* Always indirect, nothing to do */ +} + static void tcg_out_op(TCGContext *s, TCGOpcode opc, const TCGArg args[TCG_MAX_OP_ARGS], const int const_args[TCG_MAX_OP_ARGS]) diff --git a/tcg/tci/tcg-target.c.inc b/tcg/tci/tcg-target.c.inc index f2ac356900..54779d86d9 100644 --- a/tcg/tci/tcg-target.c.inc +++ b/tcg/tci/tcg-target.c.inc @@ -603,6 +603,12 @@ static void tcg_out_goto_tb(TCGContext *s, int which) set_jmp_reset_offset(s, which); } +void tb_target_set_jmp_target(const TranslationBlock *tb, int n, + uintptr_t jmp_rx, uintptr_t jmp_rw) +{ + /* Always indirect, nothing to do */ +} + static void tcg_out_op(TCGContext *s, TCGOpcode opc, const TCGArg args[TCG_MAX_OP_ARGS], const int const_args[TCG_MAX_OP_ARGS])