From patchwork Wed May 31 04:03:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 687259 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d8a:0:0:0:0:0 with SMTP id b10csp1063013wru; Tue, 30 May 2023 21:10:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5fZEMe9Tj34MGiklA6AsSYCW7NgkUdLOz11FhJjvonoT3zTgUODMm9HguMXz9vzwAUurJe X-Received: by 2002:a05:6214:20a9:b0:626:2527:54a6 with SMTP id 9-20020a05621420a900b00626252754a6mr6587943qvd.8.1685506255064; Tue, 30 May 2023 21:10:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685506255; cv=none; d=google.com; s=arc-20160816; b=qTdUG5SoTHGQ+e1dbDDP6Q/4BRyetelDOfEBu8pX5Mab6BiVfW/YEnnxWDd5AdoL9g LWJymSnMMI2vQeVygl4g6/gbSqh0Ltqbv9KZ/ewbR8Ttf/Ssa9/FyHgdSTnhhfnFG1uf cmB5N/UYXQBcMphN0ngYMO9a3ouOM0EsFznKQl107q3enX+pEvP8EliHDFZg6x7IISUm JFJzms4iW34jUxtrQrhsilblem1jocwRG8yTrPkj0EEROQApk2GfGCa1TR1CuSL9T6Jr jej8XXEQ4CfKkzJuMR+iS+XFokrSw2mNaHKC6fyvYPRXlCbRxMf2+DhquDK+Wz5Cbyyi GLcg== 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:to:from :dkim-signature; bh=v5+X8dtE6LfSMMjI2gnNlBbQTFJOMR9qw0ZxeW19zPE=; b=IzSieuW8XgLtR1gaMkOInNRRFBnyf9u3tFxUaL5pdQFFqmSwLIZg08St6tr7J2T/K1 r/hkCfrU6pwZDhum+Jb9LgyHtHlUe5mZ1wr1T1kBTOELD27s8cS5wHJBSIF1kKkHy/ij D2g8yC1cm6gq8ZhFnJdg7YoSH7wWGZgTB4JdydQqRD5+el0CF/XzvrQv8tjQ6XsuZKDA /Ui42w5qU67lZ+xtuMqbtBJ/MXt6x7dy2+Q7jWTfc0MmBmEBpt8EmEdIVxjn2Sp+o5iG 1XgYAHgHc2Jobhrh8R1a/pdxv7tlriukNm4qWlf+++bZQNNBaEhIPrfGyb0+7wfixMed IidA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oiHuwtZi; 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 iy12-20020a0562140f6c00b006276cb7e9easi451905qvb.57.2023.05.30.21.10.54 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 30 May 2023 21:10:55 -0700 (PDT) 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=oiHuwtZi; 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 1q4D4G-0007bz-6E; Wed, 31 May 2023 00:04:12 -0400 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 1q4D46-0007NV-06 for qemu-devel@nongnu.org; Wed, 31 May 2023 00:04:02 -0400 Received: from mail-ot1-x330.google.com ([2607:f8b0:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q4D44-0006IL-7n for qemu-devel@nongnu.org; Wed, 31 May 2023 00:04:01 -0400 Received: by mail-ot1-x330.google.com with SMTP id 46e09a7af769-6af7d6f6f41so2394886a34.1 for ; Tue, 30 May 2023 21:03:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685505839; x=1688097839; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=v5+X8dtE6LfSMMjI2gnNlBbQTFJOMR9qw0ZxeW19zPE=; b=oiHuwtZiV0tKBCnBHdQ8QiM5x3S98W84A3Rck6yn4KRcivVLnOolxxvsPQRggerv/c A4WeRH1uSPkrFdBMznQjRqneATqDtlkeBiuFA/U7qQ4Pd81b3WDF+l8y9mBn9smC6y/T f6uT5In8dBg6sykSXgU2mh6x+O8AnGC9jKSRm+p1l/GU4nSbxEU7tvMrFN+IjHLejupX KrUlKgWr4Kdo8FjoCCLaCA9L4MS9sZIyITQXP4QO53FJZxfrC88B+PQNr5QUWY/ewsh1 nJwjO//U8aFajQj7oeIieLECqF4pexQFbGBYQ/9pEhDOTLA4McwuDsSOpPvrqY6tV4Sx PXLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685505839; x=1688097839; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=v5+X8dtE6LfSMMjI2gnNlBbQTFJOMR9qw0ZxeW19zPE=; b=C55Kq42hi9wdR1fJbKOEu98js6b0qhRCVoN52GsJ8UAaAqwprfnezS8erLqbR/I03I T/ACHbC5OTPGi/OAF+jxg2zSM6ybsTibwuR1k87tpDILxS/LR521yHbBq+C6BfrZ+RHB WKVIxI2ZtiNIybCWFMS5vjTFG9asZ/zDKDiIAVvOqNXe0rluIU12EqHqolZKx0SYPR88 VmOGh7UcH6T1vnEbQqsgIPOu0FGzT6EYwNWuQdiyFiWYC4eJ/P6NhjK502zwnU4RpbEa uxbcU0tJGRD9ksvoyPPdsYKjnF4P9InCNgjqS2ZxMrW/f4QKrCXAGT/rNer6/Gzq+JPJ qjvg== X-Gm-Message-State: AC+VfDyUjWDJh0qkjK1SBS0G+dAQ8ihMc/8xAgRhusZXBAbyXWHAHmKb 1iDbXtYiLFIEhUN16OeEcpyDDxhrrdwePsnM0Pc= X-Received: by 2002:a9d:7396:0:b0:6af:9c49:c66d with SMTP id j22-20020a9d7396000000b006af9c49c66dmr977719otk.18.1685505839065; Tue, 30 May 2023 21:03:59 -0700 (PDT) Received: from stoup.. ([2602:ae:1598:4c01:1cd:ec7a:a720:ce9a]) by smtp.gmail.com with ESMTPSA id j12-20020a63fc0c000000b005348af1b84csm194814pgi.74.2023.05.30.21.03.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 May 2023 21:03:58 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v3 36/48] accel/tcg: Move translator_fake_ldb out of line Date: Tue, 30 May 2023 21:03:18 -0700 Message-Id: <20230531040330.8950-37-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230531040330.8950-1-richard.henderson@linaro.org> References: <20230531040330.8950-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::330; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x330.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, T_SCC_BODY_TEXT_LINE=-0.01 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 This is used by exactly one host in extraordinary circumstances. This means that translator.h need not include plugin-gen.h; translator.c already includes plugin-gen.h. Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé --- include/exec/translator.h | 8 +------- accel/tcg/translator.c | 5 +++++ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/include/exec/translator.h b/include/exec/translator.h index c1a1203789..228002a623 100644 --- a/include/exec/translator.h +++ b/include/exec/translator.h @@ -22,7 +22,6 @@ #include "qemu/bswap.h" #include "exec/exec-all.h" #include "exec/cpu_ldst.h" -#include "exec/plugin-gen.h" #include "exec/translate-all.h" #include "tcg/tcg.h" @@ -229,12 +228,7 @@ translator_ldq_swap(CPUArchState *env, DisasContextBase *db, * re-synthesised for s390x "ex"). It ensures we update other areas of * the translator with details of the executed instruction. */ - -static inline void translator_fake_ldb(uint8_t insn8, abi_ptr pc) -{ - plugin_insn_append(pc, &insn8, sizeof(insn8)); -} - +void translator_fake_ldb(uint8_t insn8, abi_ptr pc); /* * Return whether addr is on the same page as where disassembly started. diff --git a/accel/tcg/translator.c b/accel/tcg/translator.c index 7a130e706e..60a613c99d 100644 --- a/accel/tcg/translator.c +++ b/accel/tcg/translator.c @@ -345,3 +345,8 @@ uint64_t translator_ldq(CPUArchState *env, DisasContextBase *db, abi_ptr pc) plugin_insn_append(pc, &plug, sizeof(ret)); return ret; } + +void translator_fake_ldb(uint8_t insn8, abi_ptr pc) +{ + plugin_insn_append(pc, &insn8, sizeof(insn8)); +}