Message ID | 20180622141205.16306-12-alex.bennee@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp958659lji; Fri, 22 Jun 2018 07:44:55 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcYIMyHfuNEef1k8shm2G2GAC3UsYOlnTUsKC19I53spBfiPsXWYYStMPnCHeqd5eIe73V8 X-Received: by 2002:a0c:c309:: with SMTP id f9-v6mr1675073qvi.104.1529678695425; Fri, 22 Jun 2018 07:44:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529678695; cv=none; d=google.com; s=arc-20160816; b=WI/qutJc5LLQAR7dqkylQcxLZZozgq+KATcYJTMAp4k9aBBX/hI/MY++zqExfEU2y8 Rt+PNiXtUwlSixvHgKwYqtqi2Zzfm6pRofv1pdF8TWHo4Z/mz18EBzf+1T0Qc/j2SYbV ih7tYFx2QVzVIZ70MdYMK5LL8dwEoCuHelz/cH+wwRzAekvqYPGx9+KwL9O2bL7e8YOw HQtFiZnG/b65F9HftG/ms+me1PwvR43UMhWNjilupT3+QDGSjQ9D0XDVggZJvAkWcVlz 4cKYc9oTp/OaJWDv54vI7bl8779ljJYihpQCRFHvWLJNQiCJkjsu2OtU4hREA3hRA2YC Wk8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=Uth4Ys8aYr8FACWERzidZ+kd8JZrxlxpRTXWTNIlyrE=; b=j8cTGVmalB1XHfZVXhBZfhoSVnPC2ZEo6MqqwYLsaS8D9af9gOt2X1VLN+g6mVw6Lt ZceUEbU3hDMcz12CODT1WatpWn23tcMGFas9Vdbni3AEqghq4SjIT6Tif7wnnJ9eCt7H q7YEa7dU+KLXBdxyGd7K1pxHwPvlyQvLf7ki8nFt7VYAGyaVU2qPadQIhxSoNbTawEmy Wk9QC/g0dMSrOH4N1Et3E7+FQOzZ1GWV25AVl0lB3P9xM2JY3+Umyab0kvAXiASf1q/8 zRdjkfazKz1GWsI0+wNzIDn/shiGd/2tX5l1867sjMDCeDxb6LLiv8bZKbIMXGX+57nS wtnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=jGliSiRG; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id a56-v6si4729156qta.13.2018.06.22.07.44.55 for <patch@linaro.org> (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 22 Jun 2018 07:44:55 -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=jGliSiRG; 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]:34496 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1fWNJ0-0008T3-S3 for patch@linaro.org; Fri, 22 Jun 2018 10:44:54 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38717) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <alex.bennee@linaro.org>) id 1fWMnX-0006H0-98 for qemu-devel@nongnu.org; Fri, 22 Jun 2018 10:12:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <alex.bennee@linaro.org>) id 1fWMnS-0006CZ-7k for qemu-devel@nongnu.org; Fri, 22 Jun 2018 10:12:23 -0400 Received: from mail-wr0-x241.google.com ([2a00:1450:400c:c0c::241]:42762) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <alex.bennee@linaro.org>) id 1fWMnS-0006By-0x for qemu-devel@nongnu.org; Fri, 22 Jun 2018 10:12:18 -0400 Received: by mail-wr0-x241.google.com with SMTP id w10-v6so6859609wrk.9 for <qemu-devel@nongnu.org>; Fri, 22 Jun 2018 07:12:17 -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 :mime-version:content-transfer-encoding; bh=Uth4Ys8aYr8FACWERzidZ+kd8JZrxlxpRTXWTNIlyrE=; b=jGliSiRGlVQqHmxgCV6V1SksPNw2IAhko+az9HetiwI+Gz1/3fLaSuJGgSpBnB2se/ WUoc+FIt0Nle8rJqK9fuyNSmALwksA0yUFToVyu8Cp6C3IszBejh1Q15MCfYXeukJq8Q SM/Hp/goxD3PqnbHPGIbmOwYlFCcm3v4uL2Rg= 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:mime-version:content-transfer-encoding; bh=Uth4Ys8aYr8FACWERzidZ+kd8JZrxlxpRTXWTNIlyrE=; b=gnjQbMcEvOWsnqbeAngXcPz6Dm5jkNjv56mdnuPBRC0HLOiAdaztR4ZL7XWLVZxacl U2L0ezRAuXAPxJpWDUoce3dTgANHZWv6mzfjXvEIYWtR7zYSyLqaymn9KjCVkljqs+YM l7dXWd1o5IkXGwg3wV/El9Xa79vJCJ0rzEa8TOc/7VmRn9OJA2+c+SJsJjGCd/9tFF0B zqripEPF44/x+uP6moLCyThdNmD/QMMS5m7h5K/2t7wDbkA2/L7OrgjFyjv3nqjFwY9p SApqigSqvEOgf6kzInHlvmclua2vN/RQlQuDnCE8Gixu9mwnzHBG8fLRdtlzL7g+gSK+ 55FA== X-Gm-Message-State: APt69E3unWoTDZO6BDc7jwpNm/KHVlKfl3uAGkUPh/1zJ9PbonYbM/f3 cgrHS3gKCcsLLpSJxHfYm63UvA== X-Received: by 2002:adf:ac0d:: with SMTP id v13-v6mr1353387wrc.7.1529676736952; Fri, 22 Jun 2018 07:12:16 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id m16-v6sm9415938wro.91.2018.06.22.07.12.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 22 Jun 2018 07:12:11 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id D78053E0B62; Fri, 22 Jun 2018 15:12:05 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org> To: peter.maydell@linaro.org Date: Fri, 22 Jun 2018 15:11:54 +0100 Message-Id: <20180622141205.16306-12-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180622141205.16306-1-alex.bennee@linaro.org> References: <20180622141205.16306-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::241 Subject: [Qemu-devel] [RISU PATCH v4 11/22] risugen: add dtype_msz address helper 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: =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>, qemu-arm@nongnu.org, richard.henderson@linaro.org, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
ARM SVE support for RISU
|
expand
|
diff --git a/risugen_arm.pm b/risugen_arm.pm index 696bf5f..8d423b1 100644 --- a/risugen_arm.pm +++ b/risugen_arm.pm @@ -765,6 +765,15 @@ sub write_get_offset() write_risuop($OP_GETMEMBLOCK); } +# Return the log2 of the memory size of an operation described by dtype. +sub dtype_msz($) +{ + my ($dtype) = @_; + my $dth = $dtype >> 2; + my $dtl = $dtype & 3; + return $dtl >= $dth ? $dth : 3 - $dth; +} + sub reg($@) { my ($base, @trashed) = @_;