From patchwork Tue Dec 6 04:17:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 631310 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp2934584pvb; Mon, 5 Dec 2022 20:21:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf5pxMgr7jbZZy5/apBsunHsWKOQJ57mJUsB0UXIuhml26zROsOMuRlvlAIxdV68bf6rTEUl X-Received: by 2002:ac8:7308:0:b0:3a7:ec96:ef with SMTP id x8-20020ac87308000000b003a7ec9600efmr412500qto.579.1670300504760; Mon, 05 Dec 2022 20:21:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670300504; cv=none; d=google.com; s=arc-20160816; b=1Bek2JlYVyw0XZoCMuQM5AFxpnosuZdFE/UgeASjsEUG7x1QtlKkA73Ey1z5PT9mV6 o06aIEHXAmAQjI+INGk53jm+C0oKB4k2/oK2cPfbzcMBowi7F+C84cx8ZS3R2VeWa3TS kdM/To01k9UiPcf6l2rdgTIHhDdT4rSXkwgeR5g5KD0NVujknDRetyqlxYiWMSyO1taa DpOO9vxl4yDz80ajhLkAQ5+sG7UuGRv1QnOHNADeME7T65LjEx4Wdt/XIeS0Rdv1RGtP efrOxY4XWTEjmG6IlcAbUpndsO2tTE+XMDkj4uSK2+VLoH+1IqO6nFRtPH/FE048B0Es fSZg== 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=VsbLI93FZVgakuE1ah+UYlgKlpOz2uEL9CaUUy2CR+0=; b=ovnNeCBbR9CRScv526yW2Fuxdn8B9zAHZClbW5I2izLDi3vCduNxHntwYFZs8YljgH y/xqtV1qBQAszYiVWWOShAKjypYECD/hi7sQdWI2Rmuw3tFzB1poozXvna+caaCECwla vgwmgw730FC/Y23WP1WgxUMQL2hp3gxV4nlEbtC+DQ3giu31lVIKQHmKd22uAZylDzPj Sd0EusVcdRGmKCcvrMXT1ff8uTTHSMH78L7Skzg40EGAL6Xrs5WsTGG7yK2L2N3FNgO4 PvL0RZl4MIn9v+ZpYQAL/p1z9ARIxKsD91QNZSR7EjlOMxpN15/7TeEzFEu5XULrVnjT RhVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="jObHoPF/"; 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 ca13-20020a05622a1f0d00b003a526360fdcsi9385719qtb.607.2022.12.05.20.21.44 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 05 Dec 2022 20:21:44 -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="jObHoPF/"; 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 1p2POm-0003RG-Km; Mon, 05 Dec 2022 23:17:40 -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 1p2POl-0003QO-7H for qemu-devel@nongnu.org; Mon, 05 Dec 2022 23:17:39 -0500 Received: from mail-ot1-x32c.google.com ([2607:f8b0:4864:20::32c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p2POj-000719-If for qemu-devel@nongnu.org; Mon, 05 Dec 2022 23:17:38 -0500 Received: by mail-ot1-x32c.google.com with SMTP id v19-20020a9d5a13000000b0066e82a3872dso6548222oth.5 for ; Mon, 05 Dec 2022 20:17:37 -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=VsbLI93FZVgakuE1ah+UYlgKlpOz2uEL9CaUUy2CR+0=; b=jObHoPF//9ZmJjOl3ak8MzivBzG9ZesvH5Sz3yVk9cCWS9Igxb0IvmP9aHKCxsdGJo S4fRt0xwHWrHqLkpcwxfNUHAvAjkoSh3Cd0c1SbRvTDBl7mBl/tdCkEOVPcMqdJcEwx2 CWqwynzw1lVlr9PUbJCY86rOZqW5Wd5DX4WSiSo8V/u27xj6+GAKO97hqgm/X8MM2A/i XxNfX5kHeXR8D1JSeRn8ctuib2/g6DXSO2eusydaVjWRZnV6/6mAYHkpR5eb31BL17uh aTow5xAddmj8Rq9cCGVHKNS5nWqYwj8kTGsajqtCZwruyAfC7J19huipl+JWFKK2KEiX Gw0w== 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=VsbLI93FZVgakuE1ah+UYlgKlpOz2uEL9CaUUy2CR+0=; b=NPFNOgVkNyu0QT8rGdOYzdc905RCN0z2QnZWGu709ntZGkkTyFsAIiPLAkhG0r6TVz SA1Wwq5KycFiKKwh71SYB1G7llJUEDLT79tjPsrsRowucF+xIcvQniU3T5yclY7r1UGG SUflnkuUtfakyaGTmcCb6GSeTG32oebCHtEzio7za4q/FNyv+V0Wee9ZTiWPbzhME7JH MwaCmSsyJOjc2GtQlUnVHUqgHaL/1lrkd5NcgP+slwjiajnonUox6NWQ15I8u5MrfdYO tY+CDXqt1c3QtHeA5k9ejos7fo1/Z7T//GzBmK0sXR1/eoH2KZnu8cj7vtfxU53zO3kU DeQw== X-Gm-Message-State: ANoB5plng6qDI5WJ4HmSjZyz5Xe0dyJOCeFV2l04FP0sEdsdG/Bu4BxS udOqVad042eDCk3LsEs+Te+kWnAstzr4cXxFNS0= X-Received: by 2002:a05:6830:91f:b0:66e:824b:e48d with SMTP id v31-20020a056830091f00b0066e824be48dmr7992752ott.212.1670300256343; Mon, 05 Dec 2022 20:17:36 -0800 (PST) Received: from stoup.. ([2806:102e:18:70b5:d104:21c2:8c7e:77e6]) by smtp.gmail.com with ESMTPSA id o35-20020a056870912300b0014185b2b3d5sm10162018oae.18.2022.12.05.20.17.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Dec 2022 20:17:35 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: r@hev.cc Subject: [PATCH 14/22] tcg: Always define tb_target_set_jmp_target Date: Mon, 5 Dec 2022 22:17:07 -0600 Message-Id: <20221206041715.314209-15-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221206041715.314209-1-richard.henderson@linaro.org> References: <20221206041715.314209-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::32c; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x32c.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. Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé --- 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 0afc286c8e..f5103dcc6d 100644 --- a/tcg/arm/tcg-target.c.inc +++ b/tcg/arm/tcg-target.c.inc @@ -1958,6 +1958,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 605aa7714a..dfb31a17bb 100644 --- a/tcg/mips/tcg-target.c.inc +++ b/tcg/mips/tcg-target.c.inc @@ -1976,6 +1976,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 e73dfb4cbb..06308c5243 100644 --- a/tcg/riscv/tcg-target.c.inc +++ b/tcg/riscv/tcg-target.c.inc @@ -1285,6 +1285,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 cf84ff3133..31094067b7 100644 --- a/tcg/tci/tcg-target.c.inc +++ b/tcg/tci/tcg-target.c.inc @@ -606,6 +606,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])