Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1pogZZ-0001NU-Jx for mharc-qemu-riscv@gnu.org; Tue, 18 Apr 2023 04:20:21 -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 1pogZW-0001Mu-Mo for qemu-riscv@nongnu.org; Tue, 18 Apr 2023 04:20:18 -0400 Received: from mail-yw1-x1132.google.com ([2607:f8b0:4864:20::1132]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pogZV-0005jg-5y for qemu-riscv@nongnu.org; Tue, 18 Apr 2023 04:20:18 -0400 Received: by mail-yw1-x1132.google.com with SMTP id 00721157ae682-54fa9da5e5bso247399607b3.1 for ; Tue, 18 Apr 2023 01:20:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681806016; x=1684398016; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=IPKQOh+/dc/hqRghNq7RfRFkDmvZYeq2w5cXPUBWFTo=; b=ZfcShlT9AekOmUL1LevSlUE+TwXLo1JVs2x6RN6ZPY9Q5a+BLDWzyrQk5sXk3/gU5a WtNRuSqJqwZNFxLAXm7aXKSsoUrK/2xsW6US+x9Ji0bfDHdI4NSbgRwvp+T5KhOwf1Ug IaXSfsjr+6tsUSCgyuuQ/CJ07973g9VbDBM3iYvnH7rfS42JEIaK6UXQCX+B5k3kYwXo NUKGyDFm0xxAokxApdHD+Yk1J23hylNHIc8cMo7F6fv/0Osy/rbWhauxbdSMBzPrFdBo 7diJeDKbLJBY+QBJYpdW375lYODmmm23KpVXjyHOQ/dXGKrV0uXQDio4bBT/1Hc0Tc11 Ib2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681806016; x=1684398016; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=IPKQOh+/dc/hqRghNq7RfRFkDmvZYeq2w5cXPUBWFTo=; b=fE7MZ4TL9vAlkqJhvN2w5EdrtgdvVY4toqOLJot5AF5jB3SumSW1HwjsRy234jclGL pcqaU2mSLTlVlybnVMVBzETVvJz5gfAgllSFVyfLOXEDFl2oB5sQadFxlCUX78pY2UeP fKjI5CdHgS0L7J3Gr8GmZ3/ZQszpBMY0FnokOk0btfhcVm8iCNs3dqlUX07lcepY1DXK GTNmdz/2inVkUsIOluFyAgTLa5gXKtBGetRgMs72w8NNeLm2d0T5JeOOB2wHrUPQvGzQ 2jJVJ6Ss7Ca+ohS3r0AhTNmFOVL7swNTIIrgzdxFnW2AnLBBkXEogKhveM5qJzoZVXWL MVWw== X-Gm-Message-State: AAQBX9dOq4skRLwUfIrvIbSNLojlEMT2dIHK5AeeEf006bPdBXWUfPNZ E4zb6bh+C3ytEdx9CPIFte9ANg== X-Google-Smtp-Source: AKy350YkhhQX1OQUgKxOQW0rPFh93SNXmWM4X4l9brWPj2Wqe/umyUTWQQOHGvpV7rgM+CulaIb9Hw== X-Received: by 2002:a0d:c387:0:b0:54c:1405:2ce with SMTP id f129-20020a0dc387000000b0054c140502cemr20029718ywd.49.1681806016252; Tue, 18 Apr 2023 01:20:16 -0700 (PDT) Received: from ?IPV6:2605:ef80:8079:8dd6:3f0f:2ab3:5c15:47fa? ([2605:ef80:8079:8dd6:3f0f:2ab3:5c15:47fa]) by smtp.gmail.com with ESMTPSA id cd9-20020a05690c088900b0054c02f97d8dsm2902713ywb.91.2023.04.18.01.19.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 18 Apr 2023 01:20:15 -0700 (PDT) Message-ID: Date: Tue, 18 Apr 2023 10:19:37 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v2 07/17] qemu/bitops.h: Limit rotate amounts Content-Language: en-US To: Lawrence Hunter , qemu-devel@nongnu.org Cc: dickon.hood@codethink.co.uk, nazar.kazakov@codethink.co.uk, kiran.ostrolenk@codethink.co.uk, frank.chang@sifive.com, palmer@dabbelt.com, alistair.francis@wdc.com, bin.meng@windriver.com, pbonzini@redhat.com, philipp.tomsich@vrull.eu, kvm@vger.kernel.org, qemu-riscv@nongnu.org References: <20230417135821.609964-1-lawrence.hunter@codethink.co.uk> <20230417135821.609964-8-lawrence.hunter@codethink.co.uk> From: Richard Henderson In-Reply-To: <20230417135821.609964-8-lawrence.hunter@codethink.co.uk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2607:f8b0:4864:20::1132; envelope-from=richard.henderson@linaro.org; helo=mail-yw1-x1132.google.com X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, NICE_REPLY_A=-2.284, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-riscv@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Apr 2023 08:20:18 -0000 On 4/17/23 15:58, Lawrence Hunter wrote: > From: Dickon Hood > > Rotates have been fixed up to only allow for reasonable rotate amounts > (ie, no rotates >7 on an 8b value etc.) This fixes a problem with riscv > vector rotate instructions. > > Signed-off-by: Dickon Hood > --- > include/qemu/bitops.h | 24 ++++++++++++++++-------- > 1 file changed, 16 insertions(+), 8 deletions(-) Reviewed-by: Richard Henderson r~