From nobody Sun Nov 24 12:55:19 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1722860236; cv=none; d=zohomail.com; s=zohoarc; b=iFwa2M8e7CWyhTefwwtvBsA8qR1vJN2C0Y/RuQb0+0ixMSYPN/675/EMmiZx2M4MSWX6UI+NAm7tMO4MoN0yundnzrgd3FkISCxiSkoQRuG75K2flkvd/0GThbqWFGf+Rn1jOMvQNR1mtvW0mhCm4Nds9bWYZtmxBcWes9tCyQI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1722860236; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=qhBc4kBcQvINlkwSQbrMTAgcgpq8izcg/7xtkpClQ9g=; b=YXo3D5kgAohpnuycCqlV49+4UloAdX5IiK2Y2OmwkGsI9DydClnFdPUWrbtxPAhcH2gRUFkIguto0Jd+T6jjKTuwjs/5lLjn4P/7Qg3XU4bbQGfYhRqHCNr3o/Fj1mPXKcraKmtAcOjv4/W8Zab5t1wL06Ado86zRhmt0rmCWHg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1722860236716159.51455285141446; Mon, 5 Aug 2024 05:17:16 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sawe0-0000EF-5u; Mon, 05 Aug 2024 08:16:56 -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 1sawdq-0008W8-8J for qemu-devel@nongnu.org; Mon, 05 Aug 2024 08:16:46 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sawdn-0001QM-An for qemu-devel@nongnu.org; Mon, 05 Aug 2024 08:16:45 -0400 Received: from mail-lj1-f197.google.com (mail-lj1-f197.google.com [209.85.208.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-211-6eflLuPxMkilUvVVKnkBmQ-1; Mon, 05 Aug 2024 08:16:39 -0400 Received: by mail-lj1-f197.google.com with SMTP id 38308e7fff4ca-2f01a8b90b6so124078021fa.0 for ; Mon, 05 Aug 2024 05:16:38 -0700 (PDT) Received: from avogadro.local ([151.95.101.29]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5b839c2dbe8sm4862933a12.37.2024.08.05.05.16.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Aug 2024 05:16:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1722860201; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qhBc4kBcQvINlkwSQbrMTAgcgpq8izcg/7xtkpClQ9g=; b=P907v58JA5g4vrFmy3V6mFGVLaB7onE/hhy95QiTP9WY9HyQWOfxq4+gx/rcCOLM20V3/k 6Jfjl3ofMkXMmqiulJkFWjaXjmZW3Hu0EA8bf5RPZEzvf6IL0bNWlRaawhj0mG5RYsgkJz /BysAKQ5/CWv9fDizjqsYXfI/Vxj7IU= X-MC-Unique: 6eflLuPxMkilUvVVKnkBmQ-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722860196; x=1723464996; 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=qhBc4kBcQvINlkwSQbrMTAgcgpq8izcg/7xtkpClQ9g=; b=Fh515ZrplgV9AtPMAuqPMmZPIIQpw5B9PNtQ0P9fVnzGmOV4fNiA0D5i/lxQ4704cy KWLYuszNSuQ9ZM2vOwvN5EY6gLQ4dmp7zKPprYZTkIm5yY5cyvnt7dObBfBNcQAYgzLM 0Xkp6U6+24VOolRC2ymm4iKzsSz2GLtDW+3lk+2wDRVQSrzcUsWJNp7TAd69XnKacdB5 nsTEEg2dmOs41dBSNc/ucDvLbx0aBlxra4/9bQSvU9CwjuUgg7Vbamdd99N0Y1z+9ddE u7D/R8cgHAbDfBIPormnofGhfOFP6PRkSeiR0aFtbo0hn+fPRibDnHskTaoKjaC5X+cJ hFKA== X-Gm-Message-State: AOJu0YxX8BikjFplNlCQCbVPC2cHGOo+wApB3vqU4DbJD46/8QvHIajP NgHzh53gSITPnH1i1tB8TNwxSFc1l0mpkjMPCuTm2Dm3J2n2QCUUCQ/Rt62bvs4GWMkK+qubWSp xtAOk7eU7JT5z/AUDhySpbueHJ9cfNrngOMMQmCyH5ZK7Bsn7kBhBDqiztRqCKCBf+D5GWW1LBq xQrlEOqVMIz2R8xsgtJjYvOU6u2EgD92oUK4Bv X-Received: by 2002:a2e:8797:0:b0:2ef:296d:1de3 with SMTP id 38308e7fff4ca-2f15aa06186mr94825361fa.0.1722860196093; Mon, 05 Aug 2024 05:16:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF0wdbAMud1RAGAy9LAsPbdKk4ql8CseqqYvsMxrOrwWUdWg5S32t99xa5c0HGjkFejkKxM8A== X-Received: by 2002:a2e:8797:0:b0:2ef:296d:1de3 with SMTP id 38308e7fff4ca-2f15aa06186mr94825001fa.0.1722860195406; Mon, 05 Aug 2024 05:16:35 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Cc: Zixi Chen , Pankaj Gupta Subject: [PULL 1/2] target/i386: SEV: fix mismatch in vcek-disabled property name Date: Mon, 5 Aug 2024 14:16:31 +0200 Message-ID: <20240805121632.482610-2-pbonzini@redhat.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240805121632.482610-1-pbonzini@redhat.com> References: <20240805121632.482610-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -21 X-Spam_score: -2.2 X-Spam_bar: -- X-Spam_report: (-2.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.143, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1722860238355116600 Content-Type: text/plain; charset="utf-8" The vcek-disabled property of the sev-snp-guest object is misspelled vcek-required (which I suppose would use the opposite polarity) in the call to object_class_property_add_bool(). Fix it. Reported-by: Zixi Chen Reviewed-by: Pankaj Gupta Signed-off-by: Paolo Bonzini --- target/i386/sev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/i386/sev.c b/target/i386/sev.c index a1157c0ede6..a0d271f8986 100644 --- a/target/i386/sev.c +++ b/target/i386/sev.c @@ -2422,7 +2422,7 @@ sev_snp_guest_class_init(ObjectClass *oc, void *data) object_class_property_add_bool(oc, "author-key-enabled", sev_snp_guest_get_author_key_enabled, sev_snp_guest_set_author_key_enabled); - object_class_property_add_bool(oc, "vcek-required", + object_class_property_add_bool(oc, "vcek-disabled", sev_snp_guest_get_vcek_disabled, sev_snp_guest_set_vcek_disabled); object_class_property_add_str(oc, "host-data", --=20 2.45.2 From nobody Sun Nov 24 12:55:19 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1722860251; cv=none; d=zohomail.com; s=zohoarc; b=WpdEb65ukf2cbFuIBaia13qQXqaXI43+wAijvRd0ZF7LEYawqQ0b52KOAy5zCGOBLTZIhCsyPVewdogbsRtwkih9TGYcl0rnn7KlFZ6I2fEn7G3nGjfzjSeWeErAw/mE9g/Ugh5gmDCuU9lbq5koTvIVfBqMLsK7HRdpaJT1XIA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1722860251; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=jeuQ0ics8c/eTrxVuF4ictoz8iprxKsLXbs2qAfHIOw=; b=b3qsU9fY+IfhEqDNGVqVXwAwRlqBBJAbB6JvXMgsW9xnks2MPwp2o2g4HdYloisXl4RjUkofuYWz00eNLnWRQjATgQmBAVnSq18Ap60vSoDi0a+hqbPC0gRa0+Gvb2IqNc/h7rorq06E3Xbn5w1YOrVIS+FFDTXW4PgCWp+0itk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1722860251874433.7463564267257; Mon, 5 Aug 2024 05:17:31 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sawe0-0000FJ-7S; Mon, 05 Aug 2024 08:16:56 -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 1sawdq-000079-S0 for qemu-devel@nongnu.org; Mon, 05 Aug 2024 08:16:52 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sawdn-0001QY-Ly for qemu-devel@nongnu.org; Mon, 05 Aug 2024 08:16:46 -0400 Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-361-gnkDMmM2MvC1sfGEzz2odw-1; Mon, 05 Aug 2024 08:16:41 -0400 Received: by mail-ej1-f69.google.com with SMTP id a640c23a62f3a-a7d63fbf4afso836545066b.2 for ; Mon, 05 Aug 2024 05:16:41 -0700 (PDT) Received: from avogadro.local ([151.95.101.29]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9d4378fsm444723666b.117.2024.08.05.05.16.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Aug 2024 05:16:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1722860202; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jeuQ0ics8c/eTrxVuF4ictoz8iprxKsLXbs2qAfHIOw=; b=G0i4RUz/lXFtibW9U7p9Yu/pdKghvTJQAY78EpMTatuCUiW79uiswjdbgqcwkBQ4aeaLwi nGI8GHjIwb7nRd6g+jAcKQbIqVzj4sT80iI8R5utZSIDUMoWZK1Sr9lnSxnx2TFmOk2Paq d6CSJXEzGxoI+5cqRauHR9WIfKZczD4= X-MC-Unique: gnkDMmM2MvC1sfGEzz2odw-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722860199; x=1723464999; 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=jeuQ0ics8c/eTrxVuF4ictoz8iprxKsLXbs2qAfHIOw=; b=XNCv0Rg5Qs6HY0jAuyzL4EqUNsJC68kUmArVINqlLbaK0ZpTg5XCDIJNagXgDFnB0g myE0qku2lCB7W6iaM37goNsexzcxrfRQX9LTxYlxQjgylWnQx1a96NIm1+Djas+2VBch Ux44q6WES5lE4+VC4UcQo4huDmSrtUTY5X1iLiCVQuuywOiESG4zO+ZH8r9+7gI/+VNw Ajf+GRxdxd0cyCgMOgJJa96FMDgpT9Cn9njxusNSU93yr4xoyFZ8DG3WZp6wwPHFgGK+ dDr3BUUUjXix+qZThzikIUUIXV1L6Jxl6cltbLnCsNjiPqn99uI21Lmqjjq9xmgHP1IE T5Xw== X-Gm-Message-State: AOJu0YyuOjT9qCkRkv48dZq+6nq5AOR5dIXkWD5+j+u3VSKhCnTPnDuI 3iwsPcF2RlqT6vSuh1D1bMxzJBa8cTVa1euRtNF6tlam4d8rqCEIHtjRY10DI5ZbLoiS6RvNICg YEyHKZ75xf6IFsc51ybMJL5dKIjcRkjun1nTf5HHi2xeL4AuRwg+ki5JTq84GVaahVV02QJjD3i vEgc5oBXxJ/JhhLTzR3+k4AbFvhWuq74c6+qqY X-Received: by 2002:a17:906:fe0b:b0:a72:41e7:fef4 with SMTP id a640c23a62f3a-a7dc510ccfamr739339466b.68.1722860199243; Mon, 05 Aug 2024 05:16:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFY35hosXg/zamiBXZLp+bRexfmHTODKDx+pV2w9XegeCNz6wo86RlT24O9RF/TdjNkZg+c+w== X-Received: by 2002:a17:906:fe0b:b0:a72:41e7:fef4 with SMTP id a640c23a62f3a-a7dc510ccfamr739337266b.68.1722860198804; Mon, 05 Aug 2024 05:16:38 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Cc: Richard Henderson , qemu-stable@nongnu.org Subject: [PULL 2/2] target/i386: Fix VSIB decode Date: Mon, 5 Aug 2024 14:16:32 +0200 Message-ID: <20240805121632.482610-3-pbonzini@redhat.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240805121632.482610-1-pbonzini@redhat.com> References: <20240805121632.482610-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -21 X-Spam_score: -2.2 X-Spam_bar: -- X-Spam_report: (-2.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.143, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1722860252408116600 Content-Type: text/plain; charset="utf-8" From: Richard Henderson With normal SIB, index =3D=3D 4 indicates no index. With VSIB, there is no exception for VR4/VR12. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2474 Signed-off-by: Richard Henderson Link: https://lore.kernel.org/r/20240805003130.1421051-3-richard.henderson@= linaro.org Cc: qemu-stable@nongnu.org Signed-off-by: Paolo Bonzini --- target/i386/tcg/translate.c | 20 ++++++++++---------- target/i386/tcg/decode-new.c.inc | 3 ++- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/target/i386/tcg/translate.c b/target/i386/tcg/translate.c index 95bad55bf46..b72864bf014 100644 --- a/target/i386/tcg/translate.c +++ b/target/i386/tcg/translate.c @@ -1523,7 +1523,7 @@ typedef struct AddressParts { } AddressParts; =20 static AddressParts gen_lea_modrm_0(CPUX86State *env, DisasContext *s, - int modrm) + int modrm, bool is_vsib) { int def_seg, base, index, scale, mod, rm; target_long disp; @@ -1552,7 +1552,7 @@ static AddressParts gen_lea_modrm_0(CPUX86State *env,= DisasContext *s, int code =3D x86_ldub_code(env, s); scale =3D (code >> 6) & 3; index =3D ((code >> 3) & 7) | REX_X(s); - if (index =3D=3D 4) { + if (index =3D=3D 4 && !is_vsib) { index =3D -1; /* no index */ } base =3D (code & 7) | REX_B(s); @@ -1682,21 +1682,21 @@ static TCGv gen_lea_modrm_1(DisasContext *s, Addres= sParts a, bool is_vsib) =20 static void gen_lea_modrm(CPUX86State *env, DisasContext *s, int modrm) { - AddressParts a =3D gen_lea_modrm_0(env, s, modrm); + AddressParts a =3D gen_lea_modrm_0(env, s, modrm, false); TCGv ea =3D gen_lea_modrm_1(s, a, false); gen_lea_v_seg(s, ea, a.def_seg, s->override); } =20 static void gen_nop_modrm(CPUX86State *env, DisasContext *s, int modrm) { - (void)gen_lea_modrm_0(env, s, modrm); + (void)gen_lea_modrm_0(env, s, modrm, false); } =20 /* Used for BNDCL, BNDCU, BNDCN. */ static void gen_bndck(CPUX86State *env, DisasContext *s, int modrm, TCGCond cond, TCGv_i64 bndv) { - AddressParts a =3D gen_lea_modrm_0(env, s, modrm); + AddressParts a =3D gen_lea_modrm_0(env, s, modrm, false); TCGv ea =3D gen_lea_modrm_1(s, a, false); =20 tcg_gen_extu_tl_i64(s->tmp1_i64, ea); @@ -2417,7 +2417,7 @@ static bool disas_insn_x87(DisasContext *s, CPUState = *cpu, int b) op =3D ((b & 7) << 3) | ((modrm >> 3) & 7); if (mod !=3D 3) { /* memory op */ - AddressParts a =3D gen_lea_modrm_0(env, s, modrm); + AddressParts a =3D gen_lea_modrm_0(env, s, modrm, false); TCGv ea =3D gen_lea_modrm_1(s, a, false); TCGv last_addr =3D tcg_temp_new(); bool update_fdp =3D true; @@ -3078,7 +3078,7 @@ static void disas_insn_old(DisasContext *s, CPUState = *cpu, int b) rm =3D (modrm & 7) | REX_B(s); gen_op_mov_v_reg(s, MO_32, s->T1, reg); if (mod !=3D 3) { - AddressParts a =3D gen_lea_modrm_0(env, s, modrm); + AddressParts a =3D gen_lea_modrm_0(env, s, modrm, false); /* specific case: we need to add a displacement */ gen_exts(ot, s->T1); tcg_gen_sari_tl(s->tmp0, s->T1, 3 + ot); @@ -3635,7 +3635,7 @@ static void disas_insn_old(DisasContext *s, CPUState = *cpu, int b) } } else if (mod !=3D 3) { /* bndldx */ - AddressParts a =3D gen_lea_modrm_0(env, s, modrm); + AddressParts a =3D gen_lea_modrm_0(env, s, modrm, false); if (reg >=3D 4 || (prefixes & PREFIX_LOCK) || s->aflag =3D=3D MO_16 @@ -3679,7 +3679,7 @@ static void disas_insn_old(DisasContext *s, CPUState = *cpu, int b) || s->aflag =3D=3D MO_16) { goto illegal_op; } - AddressParts a =3D gen_lea_modrm_0(env, s, modrm); + AddressParts a =3D gen_lea_modrm_0(env, s, modrm, false); if (a.base >=3D 0) { tcg_gen_extu_tl_i64(cpu_bndl[reg], cpu_regs[a.base]); if (!CODE64(s)) { @@ -3740,7 +3740,7 @@ static void disas_insn_old(DisasContext *s, CPUState = *cpu, int b) } } else if (mod !=3D 3) { /* bndstx */ - AddressParts a =3D gen_lea_modrm_0(env, s, modrm); + AddressParts a =3D gen_lea_modrm_0(env, s, modrm, false); if (reg >=3D 4 || (prefixes & PREFIX_LOCK) || s->aflag =3D=3D MO_16 diff --git a/target/i386/tcg/decode-new.c.inc b/target/i386/tcg/decode-new.= c.inc index d2da1d396d5..b22210f45d9 100644 --- a/target/i386/tcg/decode-new.c.inc +++ b/target/i386/tcg/decode-new.c.inc @@ -1811,7 +1811,8 @@ static int decode_modrm(DisasContext *s, CPUX86State = *env, X86DecodedInsn *decod } else { op->has_ea =3D true; op->n =3D -1; - decode->mem =3D gen_lea_modrm_0(env, s, get_modrm(s, env)); + decode->mem =3D gen_lea_modrm_0(env, s, modrm, + decode->e.vex_class =3D=3D 12); } return modrm; } --=20 2.45.2