Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 35FAFC3DA61 for ; Thu, 25 Jul 2024 02:45:53 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sWoU1-0000FP-2E; Wed, 24 Jul 2024 22:45:33 -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 1sWoTy-0000EF-A7 for qemu-riscv@nongnu.org; Wed, 24 Jul 2024 22:45:30 -0400 Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sWoTw-0002RN-BN for qemu-riscv@nongnu.org; Wed, 24 Jul 2024 22:45:30 -0400 Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-1fd65aaac27so10640225ad.1 for ; Wed, 24 Jul 2024 19:45:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1721875526; x=1722480326; darn=nongnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Xe3QJDfxIAuoiRpyLObV4mXGxxOfU5mk7la8DjtIrrE=; b=l786cpgXbZbpoN8CFIUNI35xlvbUKPi2HPHrVutGI2E0ANA34KicnA0clqcZtzY10u AydPyvmuljrxbUW7lzB3SI66BxIUwie/m4razk2sNhw2pc0FRX+NezjlslVEIvmTZrUs f8buNflDCsB70ptIpNyvshG1PmIxOnXXJQoP+56I2CyYrFmhyrCBaLmutZAazNXatb5Z dp81t7IQAK7jkYoCc4ROfepksxuK+TYqTODv9kCp7JlrW5pWOGzzdoBGtyg0rXXm3pXt tvB5Dr6V9FduIojxboekAmO+yVBofr7rcgGs/WMf5sZZQFVNzfyjsmH0WQywEiU0t/as qCMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721875526; x=1722480326; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Xe3QJDfxIAuoiRpyLObV4mXGxxOfU5mk7la8DjtIrrE=; b=SL+unrljNQYmb/PsYVias5zDaWujl0amyH+JDsvbfrAfwg4sqTj+OC0ukz9EXSQa2l AMCV3bzR1B4NJTKDAZgriItt25j54fjKfX0MJPFTYZenZ3Yjyb3g9EBt64FeNJKnXGnq iFdwxhjm96UQZR5f8mlDBOhexp1AV1zksoQXVUYo1jps1ks4D05vbhGmYt0Y4lhY//SZ Ro0ETFmo2FqA5x4eS5pX7LEb0/SPsJ+JrmOA94VG8LOimW6iAGMwq6P+6jbJ9o6I0geX twDrwGlw140nkvJvuQ2GTUYlB+EwFdRgwJ2E1ayWnt1+IcxlaeIIAKb2NiGYxlOO4eNj fwcw== X-Gm-Message-State: AOJu0Yxs1zpipUxfgoBolDUuxSMII663DXGhiyLnJvFdaye+5exkiTrr Ry2aIeuP93zGJZUJT0Ici/HxSd0NOgTwgqu3VH3k/ykASlXj47xuABzPLGMMJkw= X-Google-Smtp-Source: AGHT+IFtvUcnYGi3Fuuhlwp510LTZuZSOtxCJAVpZzQjmLw+vw+5uXpQFrfyyQ2daGy8qnr6d2Efkg== X-Received: by 2002:a17:902:e842:b0:1fd:7432:16c8 with SMTP id d9443c01a7336-1fdd6d897ffmr61978675ad.10.1721875526022; Wed, 24 Jul 2024 19:45:26 -0700 (PDT) Received: from [192.168.1.113] ([203.56.128.103]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1fed7ca8fd5sm2904695ad.64.2024.07.24.19.45.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 24 Jul 2024 19:45:25 -0700 (PDT) Message-ID: <1c82060a-4352-497b-818e-767c1ceb73df@linaro.org> Date: Thu, 25 Jul 2024 12:45:18 +1000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/1] target/riscv: Remove redundant insn length check for zama16b To: LIU Zhiwei , qemu-devel@nongnu.org Cc: qemu-riscv@nongnu.org, palmer@dabbelt.com, alistair.francis@wdc.com, dbarboza@ventanamicro.com, liwei1518@gmail.com, bmeng.cn@gmail.com References: <20240723013012.1443-1-zhiwei_liu@linux.alibaba.com> <8d12202f-7170-4127-a1a6-c23c03835cf6@linaro.org> <5c34fb1a-ce46-4039-b887-9ea56488239b@linux.alibaba.com> Content-Language: en-US From: Richard Henderson In-Reply-To: <5c34fb1a-ce46-4039-b887-9ea56488239b@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::62c; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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: , Errors-To: qemu-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org Sender: qemu-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org On 7/24/24 16:32, LIU Zhiwei wrote: >> However!  It does explicitly say "no more than MXLEN bits", which means that an RV32/ >> RV64 check is appropriate for FLD/FSD, since MXLEN may be less than 64. > Yes.  That's true. Although I don't know why MXLEN is needed as F, D or Q don't depend on > MXLEN. We can implement D extension on RV32 CPU. Implementation of D on RV32 does not mean that FLD/FST is atomic -- it can be implemented with two 32-bit loads/stores under the hood. r~