From patchwork Wed Mar 1 02:55:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 657745 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp3269389wrb; Tue, 28 Feb 2023 18:58:31 -0800 (PST) X-Google-Smtp-Source: AK7set9/buJsDIAB1Km3pWXuTDk6971AfPXbb74pX4c8KMoHca8/TqOX2W84zd67ZMMmUr9IrELd X-Received: by 2002:a05:6214:2aa6:b0:56e:93b6:27fc with SMTP id js6-20020a0562142aa600b0056e93b627fcmr8765658qvb.17.1677639511247; Tue, 28 Feb 2023 18:58:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677639511; cv=none; d=google.com; s=arc-20160816; b=07805rvS0JO6TbhQtE9kgr8cFqlPQoKDH89cpgdYDuh6J3Tr7wgZW/FqpX6jW6RuRz Zw4zRbqZ+WeV7vcuIvRuJFfWoaN3ruUoivtUR+C5L1CAHK9lHWN6fIuRdPTFwQ3R8nvL 4l2STmR3HmZsyCZviFDxS6lJjLleWeOfcF8OTA3WzMeOpho7Wsrr4Rwp0FX+5djpleoy aPE6A7St/jF9vMLE2qHnTCaIb9WDfokwF26G6L0j+vgAiChNrIFGrPaOstrNp/+cb3NT zy53+/c+aWn3Ligauzi1OfwfSb0gC1MVxKCFJHcE6RnFvf2XPzTNgGkscPN2j/AJRuP3 Au7w== 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=7N54q35zNU94utqNcR36M2J+OBregYPQN6g1oQbxKlM=; b=YfeXw8gdj0TmSkHMzFZQZ0jhHhZ9G/Cxw25P7Q8kIkyitQn1dpLUEfRjQBssPvWf3a wgMTRxTvPUT4I96OZBZggx+sG1iISK3JTAVeMQO/nRb6QHFQ+iDmi7pw//WiTZk+njHa c8Poq7QCbzql3C9e9Lbpl88fVRf3KOITqCgrtc+5s8WlDzVcZi2A/fdmPeGiDQz9TTEM X6Bt8USaxaoRKFkKFdfe+6Y6ki48wn2CCsbpFmGkmWkmbRSXg15KgjgxBpeC5qhnlph4 V0pfW9RkIgrGzrgOgKIHJKWBaEyWHU/TM4HR0RFsMo/3M6Fdi7URwp7OqaSAZW5C3DWe lz3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=b5CkMQZz; 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 c7-20020a0cca07000000b00571a3b77856si9535096qvk.172.2023.02.28.18.58.31 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Feb 2023 18:58:31 -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=b5CkMQZz; 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 1pXCeL-0007uT-6X; Tue, 28 Feb 2023 21:57:01 -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 1pXCeI-0007u0-PX for qemu-devel@nongnu.org; Tue, 28 Feb 2023 21:56:58 -0500 Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXCeH-00031u-38 for qemu-devel@nongnu.org; Tue, 28 Feb 2023 21:56:58 -0500 Received: by mail-pj1-x102d.google.com with SMTP id y2so11897706pjg.3 for ; Tue, 28 Feb 2023 18:56:56 -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=7N54q35zNU94utqNcR36M2J+OBregYPQN6g1oQbxKlM=; b=b5CkMQZznrE5zZDpHpHecRqAclOEs7Makz9eOgEeD1Nv/aQFHFBykYxjMG6407H352 AbDe1DprixYki1ffUCsmcs3X/UxCtfUGuoRLGBA8/JsoxEBga1laW1XzVrFeDw9sG4i3 ueJew5IOGxMzLbhqjYknQ3qeu9W+FCdkGGaDqP7J4Nt7+ZSYoQsR8JJueHqTmjBb3euj xJqy5kS7RW42Q/LPM+nB860kLVoU9iBGdVgudCX2q+GRQnxZQcyXJLbDjzVtM+5rfsLs 0hDnyFb4IP7jki3KdezNBATA8txQc7nqstmcrGkFBvreSUhzDH8qJMnDccpjvNhZYB5/ V5rg== 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=7N54q35zNU94utqNcR36M2J+OBregYPQN6g1oQbxKlM=; b=yNAWOH7buI+z6x/IlfYOTEbqsURD1MlJ7n7X3Cr3dDIbTT+hngdLX1YdjDJ4Un/RZt 6ez96IGfymb8EoFPidz4mY7RnR7IlSbXPsjnQuj5tVbGakk5DZhCpzDd6emgI3DdCVEf iQVTQit7oFtJlkmE6iVM5AEWfU6qqQps2KVBLUW+qqvN/lG+XHhO+oxdtOcic2I2g77j Brel9T0jnKY5nOADkgfTgrRPCg80ZwRA6H6KGbGHfLE3riEwrcQAJYRO+6I5Sq8EoQXH svsiqY6Pz2BWDhfkKF+7MJFJWYSPRe7jg9YfRs3MFR+SDjXJxNW+/R841uWkqFH2tz+t THkw== X-Gm-Message-State: AO0yUKUzXKzDMmdArFcwKNwjdkZFE4jGPcoCHqLnNNj6U4rbC8axMp/K 2PReb8JbOlzVfWBCBifgi/XNVxj2vxJR1qd6MaE= X-Received: by 2002:a17:903:1ce:b0:19d:1f42:b018 with SMTP id e14-20020a17090301ce00b0019d1f42b018mr9281390plh.27.1677639416289; Tue, 28 Feb 2023 18:56:56 -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 jg15-20020a17090326cf00b0019adbef6a63sm7210120plb.235.2023.02.28.18.56.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 18:56:55 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, Anton Johansson , =?utf-8?q?Phili?= =?utf-8?q?ppe_Mathieu-Daud=C3=A9?= Subject: [PULL 06/62] target/i386: set `CF_PCREL` in `x86_cpu_realizefn` Date: Tue, 28 Feb 2023 16:55:47 -1000 Message-Id: <20230301025643.1227244-7-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230301025643.1227244-1-richard.henderson@linaro.org> References: <20230301025643.1227244-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::102d; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102d.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 From: Anton Johansson via Signed-off-by: Anton Johansson Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20230227135202.9710-3-anjo@rev.ng> Signed-off-by: Richard Henderson --- target/i386/cpu.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 4bad3d41d3..62755bf511 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -6534,6 +6534,11 @@ static void x86_cpu_realizefn(DeviceState *dev, Error **errp) static bool ht_warned; unsigned requested_lbr_fmt; + /* Use pc-relative instructions in system-mode */ +#ifndef CONFIG_USER_ONLY + cs->tcg_cflags |= CF_PCREL; +#endif + if (cpu->apic_id == UNASSIGNED_APIC_ID) { error_setg(errp, "apic-id property was not initialized properly"); return;