Message ID | 20180615194354.12489-2-richard.henderson@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="XcYxOWjT"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 416rYS10rdz9s4V for <incoming@patchwork.ozlabs.org>; Sat, 16 Jun 2018 05:45:00 +1000 (AEST) Received: from localhost ([::1]:48955 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>) id 1fTueX-0000Gk-Np for incoming@patchwork.ozlabs.org; Fri, 15 Jun 2018 15:44:57 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51475) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1fTudi-0000E3-3i for qemu-devel@nongnu.org; Fri, 15 Jun 2018 15:44:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1fTude-0002Lo-Nz for qemu-devel@nongnu.org; Fri, 15 Jun 2018 15:44:06 -0400 Received: from mail-pg0-x241.google.com ([2607:f8b0:400e:c05::241]:41327) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1fTude-0002LI-Gy for qemu-devel@nongnu.org; Fri, 15 Jun 2018 15:44:02 -0400 Received: by mail-pg0-x241.google.com with SMTP id l65-v6so4852853pgl.8 for <qemu-devel@nongnu.org>; Fri, 15 Jun 2018 12:44:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=8yfaMikkCfKbwAVcUNBZHbpP9x83/6cBIZm5WMmsiqk=; b=XcYxOWjTiQ6BHxWDeh+Q4JM+LKrGFxfsUkG3jf5dbUjE9bzK99MEFrRBbzNp95T78W jKce6Og5L0c9cVwdzSbcIhonvmJCNgHYWUuUcOrqXwzVibJOFiyB0x+fxtIhzB5f3iFH 5geB9o45KYYh97HvkrwfyShg4Y6nOEfhN4pks= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=8yfaMikkCfKbwAVcUNBZHbpP9x83/6cBIZm5WMmsiqk=; b=Hut+xX4ezs5zBLR5fram6QgAo4fi3muM6km+6WGES95hhYtP4I3RupLYBiyZEkLG7p fbDx+CaSJ+Og3wKoby6ciYh/kllJ82lxt84B6vlIOnj9tJ1s346ciITEdkIT6Z6FRqLu dx+Wpsaaoh/+B0CKpDewN9JiY3lwb7YbfpA2chOcQ7kSyQDBMZBFnk/DjrVV8A2jDXwg O52WZnvFvlYNFiNxglAE1t/bz6DtcX9C9dLzZxFxyJhXj+DXKTrEBtXTSvdIjiKbduGd p9rI+OubZd2w7lRhPsegVZUh6q5q4pcZ9rK6kuGuIcd3d7TkhuK9mRrqH5RSUVNH0F1l d8Gg== X-Gm-Message-State: APt69E2y3cbD8kLoWPWFBHQMg5zovZG/sgMWJnzKRQs3/ycuKh0IPD3U Usm/lxjN3MSMyjdxWMyCAF39nqEpR5E= X-Google-Smtp-Source: ADUXVKLLSlw7TntYvdtdO/RivXDyznfjiUmSFhGzxpZnSXOe7YMuYcWwUKT7EKA1E2GcBfCXdxum/A== X-Received: by 2002:aa7:854e:: with SMTP id y14-v6mr3302088pfn.165.1529091841277; Fri, 15 Jun 2018 12:44:01 -0700 (PDT) Received: from cloudburst.twiddle.net (rrcs-173-198-77-219.west.biz.rr.com. [173.198.77.219]) by smtp.gmail.com with ESMTPSA id 29-v6sm14038360pfj.14.2018.06.15.12.43.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Jun 2018 12:44:00 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Date: Fri, 15 Jun 2018 09:43:36 -1000 Message-Id: <20180615194354.12489-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180615194354.12489-1-richard.henderson@linaro.org> References: <20180615194354.12489-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::241 Subject: [Qemu-devel] [PULL v2 01/19] tcg/i386: Use byte form of xgetbv instruction X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: peter.maydell@linaro.org, John Arbuckle <programmingkidx@gmail.com> Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> |
Series |
tcg queued patches
|
expand
|
diff --git a/tcg/i386/tcg-target.inc.c b/tcg/i386/tcg-target.inc.c index 5357909fff..0d0ff524b7 100644 --- a/tcg/i386/tcg-target.inc.c +++ b/tcg/i386/tcg-target.inc.c @@ -3501,7 +3501,10 @@ static void tcg_target_init(TCGContext *s) sure of not hitting invalid opcode. */ if (c & bit_OSXSAVE) { unsigned xcrl, xcrh; - asm ("xgetbv" : "=a" (xcrl), "=d" (xcrh) : "c" (0)); + /* The xgetbv instruction is not available to older versions of + * the assembler, so we encode the instruction manually. + */ + asm(".byte 0x0f, 0x01, 0xd0" : "=a" (xcrl), "=d" (xcrh) : "c" (0)); if ((xcrl & 6) == 6) { have_avx1 = (c & bit_AVX) != 0; have_avx2 = (b7 & bit_AVX2) != 0;