From patchwork Tue Aug 16 20:33:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 597505 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:b345:0:0:0:0 with SMTP id w5csp2694716maz; Tue, 16 Aug 2022 13:37:13 -0700 (PDT) X-Google-Smtp-Source: AA6agR4ziBAlHgxQtshZIJCdzy7K1tyNLHEYmWmpqJhBgiyscs9OsBk3585x++Ay7Ea1aSV0kQy/ X-Received: by 2002:a37:bb04:0:b0:6b8:f051:924b with SMTP id l4-20020a37bb04000000b006b8f051924bmr16103498qkf.32.1660682232867; Tue, 16 Aug 2022 13:37:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660682232; cv=none; d=google.com; s=arc-20160816; b=eFHV2v+M9ASrKQUin70Goy9M/Kou1B94vepd5Htuz6Ytvl2DKwWJmsqTzkBWTMvzPH eWswvFDk8XlRc9F+bEx1bRpB3vOyRJfMhN5wcrRmxvO8D39HCVFHrHftcUR6gT5Ocmmv MApGsfAB/BxKh/+pELd++vC5vBy3KVICU3L0I53Ex0A7t1joLlNNVWFsALBoul4xJxZm eFZgr4RjaKVzRZ7uoVl9e08FJm7VVpoI0iJY3TvTTjj51rqDqq6Vu2+9PoIVEUmw8MAU KYWnFub6pa0sKTMeM3UZ9d8nVa18ehzqdWLJkp+AHT2HF/a+wHu7gTwna6MLv4lvFVLy LmkQ== 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=BW7Q1ag8Lfnxwk0WaGeudEHBVGgEoEo4+8WybCWhWKA=; b=alpdOxc4D2GJQsb/J5eOT21aXCkxheGfdT7d2aJ8Bu+zRpO3/Z5CDBqBKnOBlUvsP6 7AZjJzlGaEkOKskvVHeaG800uNy48E1OGxu2maYNikVYT78VYZM0NwDz+JVBtMUNE2x6 ULCr+yR97Wdf9kg6243JOQgz2BRCuVYDLsIh5IjAI9uW2r3eut2qKMeLrLqz/mqWWkQc ALjqxMLv+psHuhS1gkxocVfBghBoOBx1OIvYHXMJfR0Sah2UuxnyDPwpopWWkqV80R6U phomw065verNo1/EHHCwRKELF6uHL4aEHXPHJ/444OhXNmc3cPB5QC+pyPo4nyT+4He7 AXDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yKRYZfBF; 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 s10-20020ac85cca000000b0034307c15e74si7748394qta.131.2022.08.16.13.37.12 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 16 Aug 2022 13:37:12 -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=yKRYZfBF; 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]:58550 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oO3JI-0007QQ-Fa for patch@linaro.org; Tue, 16 Aug 2022 16:37:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39454) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oO3GW-0004iu-37 for qemu-devel@nongnu.org; Tue, 16 Aug 2022 16:34:21 -0400 Received: from mail-oa1-x2b.google.com ([2001:4860:4864:20::2b]:41592) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oO3GT-0004Uw-4L for qemu-devel@nongnu.org; Tue, 16 Aug 2022 16:34:19 -0400 Received: by mail-oa1-x2b.google.com with SMTP id 586e51a60fabf-11c21c69347so2112055fac.8 for ; Tue, 16 Aug 2022 13:34:16 -0700 (PDT) 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; bh=BW7Q1ag8Lfnxwk0WaGeudEHBVGgEoEo4+8WybCWhWKA=; b=yKRYZfBF0l+lEmmYN5DIrDNWA9i7sub3taSvN/YUNdpHv7/vKzQ/HVvpRtH6itAhT6 GvImupfKf5Lxljl8tgVYL5wO4M5YN/QULYN9sOt08YmhPFqqdQe/n0aYnrPGccd01of6 hr34Zs7BZF3T0WCstrPZ/tQp+O9yCV2wN4YU0Zp0Wx1l+kv8LDc8mxW6OrFK+JHpeLSw mwtbA+QuQ7G6wPaanuk6knW/iD6yC4Ko21OzeTTtocEy2Sqn7l56Q+tMOc46s0IDSAM0 FVU2h7y6IGZ/0/SBR7sPXpWQ7XU0Xqx6xe8qWAGiCWtHSPjDr/2Wbu5X0dZ+SldVEUwg qirA== 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; bh=BW7Q1ag8Lfnxwk0WaGeudEHBVGgEoEo4+8WybCWhWKA=; b=Ftz3e7MFLDyKbASP0oPA7Odb6HMgKZninv8MQSiBjP02s6GWzemsv4HDwbejVbO811 wtGOMU1GuqNXk0I6FuBeAlaPykDlykH+VaUFnRPObxciMQOaRjX7bFGvvWaA9xOVLSqi CtolJWQwcPQIyGStnLPxAVaKajR5aPX6wqNrYCYQDYGCTgb5y9y3/c1lh2k48sm1tVCW BkNgDd2o0nRHhnmfQ0tppjFsUyI8p6dDTBO6yG2taywxYh9d/KHopHfutZucvK3ZqgUc RDvzdcXXgQ0dGd7u9lKEAIqJVLZHPOiHBqBDkmbkmmgBUbee911GgXJUutApnNTNhxsk nSXQ== X-Gm-Message-State: ACgBeo3GrTZRq9EUij5BEZpfgbfxeeQwLgsTKB+g1XqT3xH0m1BRAG/V JFfHi9pIo2PuNBZd5AF/QKejEAfjdCc1pw== X-Received: by 2002:a05:6870:8904:b0:113:a785:b09f with SMTP id i4-20020a056870890400b00113a785b09fmr159385oao.216.1660682055793; Tue, 16 Aug 2022 13:34:15 -0700 (PDT) Received: from stoup.. ([2605:ef80:80f6:61fa:9bc2:5095:d612:5e22]) by smtp.gmail.com with ESMTPSA id y23-20020a056870b01700b0010ef8ccde67sm2285220oae.13.2022.08.16.13.34.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Aug 2022 13:34:15 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, alex.bennee@linaro.org, iii@linux.ibm.com Subject: [PATCH v2 05/33] tests/tcg/i386: Move smc_code2 to an executable section Date: Tue, 16 Aug 2022 15:33:32 -0500 Message-Id: <20220816203400.161187-6-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220816203400.161187-1-richard.henderson@linaro.org> References: <20220816203400.161187-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2001:4860:4864:20::2b; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x2b.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=unavailable 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" We're about to start validating PAGE_EXEC, which means that we've got to put this code into a section that is both writable and executable. Note that this test did not run on hardware beforehand either. Signed-off-by: Richard Henderson --- tests/tcg/i386/test-i386.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/tcg/i386/test-i386.c b/tests/tcg/i386/test-i386.c index ac8d5a3c1f..e6b308a2c0 100644 --- a/tests/tcg/i386/test-i386.c +++ b/tests/tcg/i386/test-i386.c @@ -1998,7 +1998,7 @@ uint8_t code[] = { 0xc3, /* ret */ }; -asm(".section \".data\"\n" +asm(".section \".data_x\",\"awx\"\n" "smc_code2:\n" "movl 4(%esp), %eax\n" "movl %eax, smc_patch_addr2 + 1\n"