From patchwork Wed Oct 3 19:39:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 148076 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp59335lji; Wed, 3 Oct 2018 12:43:10 -0700 (PDT) X-Google-Smtp-Source: ACcGV63K969lclmk3xXlCtnk1XeH/cHGAgjUYCXg2Wt8fp2uEuiRxZ/lJi9CokJFKu8SN9TYSjqh X-Received: by 2002:a0c:8c0a:: with SMTP id n10-v6mr2542865qvb.119.1538595790876; Wed, 03 Oct 2018 12:43:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538595790; cv=none; d=google.com; s=arc-20160816; b=tYB7dg5/044WWGhobkQ869D64hE/mWfKQ0dKTwo6F6hNh4TJvUrDwDr+iA3BZJVQxC VaFsUP9eBm4EyRlHpgF2J0wa5+gojG2jo711IjrT9xl6+GWhdcNOqF0Mg7a+5C7ien37 ZTNZP4a/hUjFMpo5xNGSL7/9gnH1vgTCxmnSYICS/9U77oqtUYKDNngPC5TXXnvKpSnS qNWyUQxDGZdsuqhGM3p4SliVYLQQS45qq4uxU56yfNeUp5XgYB+/TPLWwXDVFh21nRJ4 ba7swomhVoGNjPu228qvD5aU0zMHJ13HbALtgTMuGWqVgQcve4+kCSkes6H4B+A9e5E/ BQIg== 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:subject:message-id:date:to:from :dkim-signature; bh=5l5T00IWFKUpbZiiu6ERelXqZl+U0HQGc3/N4kiomOg=; b=j9YJ/jeIgOYU4uftFlmY12SIS9uHlgc6tyGcT0XRDmX7SN1/o4s1KpDrKIdeZWWdCH dMN3Trn+eQQ+EOAo2bYLQKeNzZZBJa9zlcAFTEiAgiAGklFkwW4aS4vh5HyAtd/rQxuw zGyPY3/cKBd9J02BEoYkD+GRTfvEFORd0N9wkehezhZiGSbv4aY85Q6+WkVIKDyRYizV sHyhejLWy+qone952B395KE+YjSOhxjXCSfd0352PVWG3fpeSLf4/uCvF6HnS7vsDnoQ NDHigf8Kb/D1ZsgYqdB9YoT+nrTaErkDrvPIBMQG3uiDTD+70oQp66W/EY4Z6PlwV9sz p5Rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=SrX2bGgP; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id o125-v6si1434732qkf.325.2018.10.03.12.43.10 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 03 Oct 2018 12:43:10 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=SrX2bGgP; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:52652 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g7n38-0004hp-5g for patch@linaro.org; Wed, 03 Oct 2018 15:43:10 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59329) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g7n00-0001eL-1E for qemu-devel@nongnu.org; Wed, 03 Oct 2018 15:39:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g7mzv-0001xb-KB for qemu-devel@nongnu.org; Wed, 03 Oct 2018 15:39:55 -0400 Received: from mail-qt1-x844.google.com ([2607:f8b0:4864:20::844]:36533) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g7mzo-0001sS-6I for qemu-devel@nongnu.org; Wed, 03 Oct 2018 15:39:46 -0400 Received: by mail-qt1-x844.google.com with SMTP id u34-v6so7306379qth.3 for ; Wed, 03 Oct 2018 12:39:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id; bh=5l5T00IWFKUpbZiiu6ERelXqZl+U0HQGc3/N4kiomOg=; b=SrX2bGgP2LfNERcW+aJTaTrVSLBouk9q/MUVCE459RQAqGVxKjC9ycaVz8uA9yU4Wk Hhmwv/oZY9cjVZYDxeG0VnDan5ZvNJVQ7VggG/so4eWDW2/856WJKmohxhLivjivC8Zs 2fvyGYoJPm8mr1AJo0LRUvKCtpgncAe6IUekc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=5l5T00IWFKUpbZiiu6ERelXqZl+U0HQGc3/N4kiomOg=; b=RA+3bmQPWNme6dtTbPYDE5YqHK7rbM2h+0TGG64OuquUzpbsvV/+J/pp0i5Yw+NCtR YSpMYkCQLLEBUDzrupefevhZW2lv0QLe/oDwWJYYaRdV5sYdLCBre4eiQoADgkA5a+B2 HcB7ZyFPjxZsQkOfDL/C6yilTnGCaVc97iJ8NRVHaKMbhmA/nmjlVWlX9flKIxrdwfRN cFP3y/l1BXr93mlkbSCGjxVJkS8uFybsjObyda1apzCdIrVFolQga/YWul0uKGtn0xKc Ajxbjn5e6uXOjjUve1QMNf62F5Y7UDms0vgLpbE+4WEW9aL9dws3clqXmyq1Zvvef6FA kKpg== X-Gm-Message-State: ABuFfoiCzkm+qiInWnrZ1RofH8Pz/4gsnKXP5cNDVDn0w7hczlXSVXbh MDkrRU/tZPeXAxDg7yCNC0W5Fj9fRmkYjw== X-Received: by 2002:ac8:29a4:: with SMTP id 33-v6mr2618812qts.259.1538595581477; Wed, 03 Oct 2018 12:39:41 -0700 (PDT) Received: from cloudburst.twiddle.net ([172.56.13.153]) by smtp.gmail.com with ESMTPSA id t16-v6sm1284946qth.68.2018.10.03.12.39.39 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 03 Oct 2018 12:39:40 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Wed, 3 Oct 2018 14:39:22 -0500 Message-Id: <20181003193931.18096-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::844 Subject: [Qemu-devel] [PATCH v3 0/9] tcg: Reorg 128-bit atomic operations X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 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" For v2, and history, see http://lists.nongnu.org/archive/html/qemu-devel/2018-08/msg04533.html Changes since v2: * Fixed a typo noticed by Emilio. * Brought the target/s390x changes back, as the patches with which they conflicted are now in mainline. r~ Richard Henderson (9): tcg: Split CONFIG_ATOMIC128 target/i386: Convert to HAVE_CMPXCHG128 target/arm: Convert to HAVE_CMPXCHG128 target/arm: Check HAVE_CMPXCHG128 at translate time target/ppc: Convert to HAVE_CMPXCHG128 and HAVE_ATOMIC128 target/s390x: Convert to HAVE_CMPXCHG128 and HAVE_ATOMIC128 target/s390x: Split do_cdsg, do_lpq, do_stpq target/s390x: Skip wout, cout helpers if op helper does not return target/s390x: Check HAVE_ATOMIC128 and HAVE_CMPXCHG128 at translate accel/tcg/atomic_template.h | 20 ++- include/qemu/atomic128.h | 155 ++++++++++++++++++++++ target/ppc/helper.h | 2 +- tcg/tcg.h | 16 ++- accel/tcg/cputlb.c | 3 +- accel/tcg/user-exec.c | 5 +- target/arm/helper-a64.c | 251 ++++++++++++++++++------------------ target/arm/translate-a64.c | 38 +++--- target/i386/mem_helper.c | 9 +- target/ppc/mem_helper.c | 33 ++++- target/ppc/translate.c | 115 +++++++++-------- target/s390x/mem_helper.c | 202 +++++++++++++---------------- target/s390x/translate.c | 37 ++++-- configure | 19 +++ 14 files changed, 561 insertions(+), 344 deletions(-) create mode 100644 include/qemu/atomic128.h -- 2.17.1