From patchwork Mon Jan 9 01:42:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 640572 Delivered-To: patch@linaro.org Received: by 2002:a17:522:f3c4:b0:4b4:3859:abed with SMTP id in4csp1916294pvb; Sun, 8 Jan 2023 17:49:37 -0800 (PST) X-Google-Smtp-Source: AMrXdXujracId06DfXLFzxiQyKNi25QObOZq0omVoFK0D4O6FP6H7DARQQEZ5DieX8738KWIMUor X-Received: by 2002:a05:6214:3244:b0:532:2eb3:803e with SMTP id mt4-20020a056214324400b005322eb3803emr3007537qvb.8.1673228977031; Sun, 08 Jan 2023 17:49:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673228977; cv=none; d=google.com; s=arc-20160816; b=cRKw+b580B+y88H3tjLz8iAcqWUKkUOi+yafeSJoUZPrE/QrerFou+EFpIzW6s1IS1 meOZ3IWQpLxsQ1yX/VQpaM5+YaGHbQDnKrpXC74NzlUuYWKAUR1NdFBlttzpSHb64v9K GxgIVYTPKIXECbqra+NjewXs7yxkKQctN8Bj/HG7lsdUuaEW2Xq+IZeUsSOBwrtRcPjC OoZ5z3+06u7EhAfaO51zOHkQQJIdnf1B3QXDpdwJiNrFIBgnfHQrII52vaLx8IxsD8EU /ZmXJjjjRo6/BvFfNCF7kOiVnRdB0K/zdzspChRgdU+ZyN2/oB7k1VHqNybGUM9R7h5D UUdQ== 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=dS32zfSBu/kF12OtOcGjeLh3cT3wgUbDUauEFguZfiU=; b=ELqhyNG8/56Ty/3e4grvokv9Q0zW1052YDjf2LJ9Ei38W2xHeln5IgkTj3cLFU2yJB T8o8FETiPtuLGJr5bXhePF4UIIOJoez7ct8McZaZpa18Y+n90jr33WeSBYAOeDVZOPbN 7YKlSFwpe0h7CrmJc1Rv0ZM/h0XqOVmQaZc2Ac9fxl0TusKUZvZIk8gWTAw25zUuBmGI bqUTn+t600/6fbjBU4ZKwHKaOYiqWePlTaxU+bnYQYotTkMnEypyf+Ot1qHttpIAszyb HJo/mUT24ZZowTE2FkX4qshA10KKBFRHa4BZaTLYhoBxdY0idEBs0izzbCofLiyPh7yE tDww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ln7q9+BC; 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 li19-20020a0562145e1300b004c6fa60b813si3476072qvb.169.2023.01.08.17.49.36 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 08 Jan 2023 17:49:37 -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=Ln7q9+BC; 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 1pEhBq-0000pC-VT; Sun, 08 Jan 2023 20:43:06 -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 1pEhBp-0000oY-5Q for qemu-devel@nongnu.org; Sun, 08 Jan 2023 20:43:05 -0500 Received: from mail-pj1-x1031.google.com ([2607:f8b0:4864:20::1031]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pEhBn-0001Yt-K6 for qemu-devel@nongnu.org; Sun, 08 Jan 2023 20:43:04 -0500 Received: by mail-pj1-x1031.google.com with SMTP id cp9-20020a17090afb8900b00226a934e0e5so10009180pjb.1 for ; Sun, 08 Jan 2023 17:43:03 -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=dS32zfSBu/kF12OtOcGjeLh3cT3wgUbDUauEFguZfiU=; b=Ln7q9+BC/VMn01rCztqz8ipqrvE2JcnUmu9wup0BzXje5QjcGrZjk1ha8lwpdxbo8Y QDOOWlooXT8/rgHTdSTDp8dqGg7Bmw1AWTDWUSUMUhi3ynVAPlvVpVZFSecl2LdMUHmx j/mh1HITIe6SZxFBsaPYMUchoNQCmOhZQMf8H2+cgvPNP2GEsQ+byIww9gSdSgzoiHDK wXCG/0HFsl4+s5wfU8/vcy5HoI/Aboj2avZHXkQcR29TTz9UYxNYqiHj9POHwtvmTB80 5GhF3XUKCDAbyC3kyA8JyK6A7473Q+VlqmY/hXKaRP6jc6ptpOCCg3lo3tBTK+1wpd7A GBbw== 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=dS32zfSBu/kF12OtOcGjeLh3cT3wgUbDUauEFguZfiU=; b=MWgJ8NbH7RH5YXWfs5S9iQpyZrnar7FdNKsMHMpU7zupJ75xXaBakwRt4Ah1pFS8+D zeOHHCba0SSPfVQVEIJslxPQ5KOYgRrChN5QFxhpBZrDWEVgc6ip91YrLcW6dopMC6p3 yQjjbTR9kISyJNZzeAInpzI6edrjNW7JldyZ85n3WXgtJMD84zpoQYS0s+U7oO6kDfWX ULjqSrbLFMskzq2ApKHVCD11alc7Ukv6jJdbQu3NCuwiEz678ef2/5buauHKrmBHCgMg 7BDGwy/BRBVfZ1wD8DkLHnBI7bH+nA0EL5gXT3Dvp7iq4TEdnDKcS87bR4ke7VJZTL/h m6dw== X-Gm-Message-State: AFqh2kroVRv4zlk9RgL9Mlp+pKFBSFOTTlmlGQPeNJHp6Nlyqu1CFEcC zN57SVZ37qCDYatgBy/d9geH/OU1llHNXFRn X-Received: by 2002:a17:902:b413:b0:189:6ab3:9e64 with SMTP id x19-20020a170902b41300b001896ab39e64mr62154821plr.34.1673228582266; Sun, 08 Jan 2023 17:43:02 -0800 (PST) Received: from stoup.. ([2602:47:d48c:8101:a909:891c:953d:a6b0]) by smtp.gmail.com with ESMTPSA id w13-20020a170902ca0d00b00178b77b7e71sm4743617pld.188.2023.01.08.17.43.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Jan 2023 17:43:01 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v2 14/22] tcg: Always define tb_target_set_jmp_target Date: Sun, 8 Jan 2023 17:42:40 -0800 Message-Id: <20230109014248.2894281-15-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230109014248.2894281-1-richard.henderson@linaro.org> References: <20230109014248.2894281-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1031; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1031.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: 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])