Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1pVY5R-0003nV-Ci for mharc-qemu-riscv@gnu.org; Fri, 24 Feb 2023 08:26:09 -0500 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 1pVY5N-0003kq-14 for qemu-riscv@nongnu.org; Fri, 24 Feb 2023 08:26:05 -0500 Received: from mail-oa1-x29.google.com ([2001:4860:4864:20::29]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pVY5L-0005WH-FH for qemu-riscv@nongnu.org; Fri, 24 Feb 2023 08:26:04 -0500 Received: by mail-oa1-x29.google.com with SMTP id 586e51a60fabf-17235c8dab9so15646148fac.7 for ; Fri, 24 Feb 2023 05:26:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=nEs6ccjwVW0gg/wYcs41xs6oRr6SQ4L3Ar0gC/MnM4Q=; b=Au3e2lcew/ZB2ReAZVx3sbTbKbpxPtuggEK6XrowCWhs6LxhLw83QcVf2HSzabmWRh FrVLtfSLGQAbnsZAJYXNN7qhPnLKHI3mKNJJd+2DwJ76nun7RTvVT4KWCelfCmv5Bgsv hq6oSFD3NzClvbyXD2fG3a4a26dncjCc2GYcxMvwRCM3erSee3KaBzMcR5ikgIjnJEhP T28TGPO24Ut4yWmNWnwug+Fe4g2SPIKLFpvOlbExonPBLMS/qsBW9yZYB2K9msnsr8Zv Q0BFCo03kh0z1g33wd/fDawdQBCF8fqeix+noRvJj/tZplaZzwQu5X5EtR82PQVeC7j8 vWGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nEs6ccjwVW0gg/wYcs41xs6oRr6SQ4L3Ar0gC/MnM4Q=; b=0wDbBkAYeMSq95y9UyOHfUdzrUsFnuhU1ekGv2VPP6RajkLbT+sgAkaQzhwIqyT5mH rdPB4EWxDdnbcWLqIkHrZsMfSuFWAfmLIXWInUefhco7kc4K5RtR8ITYjrL7Wbg9/a8K M6jXxd+vrm2ef/phfMkTCrLViHc17shxa3Xksyzebcr0V/9+13mpS9AN1vPT6WS2QTT0 1j7IRxDunfuo2MvdMS37SAtF2UgLSuwcxHL/iLmV0PWb1wExg2nf7/muTO7OqpGavQfT 2mS3VaHFUt9q+10tcnKQm6xzBsGa68N4tpLghelKshIPxUvnqucxpaiOicGpNjIExbeM Wk6A== X-Gm-Message-State: AO0yUKWClZta3DKNX19VKxdkTpOFVmN3+tL9+iiQotOGuEFLHOi9gO41 WpefDBTLT1wpKxbRYOXthEhLUVsS9TwbkTCE X-Google-Smtp-Source: AK7set/sndjkzRTgQQFiEVr6H8D+6ypyPYDZoV06EK2yhYbl9C8RogCr3eV0/m8/Mcj6l7oOHbSi+A== X-Received: by 2002:a05:6870:82a0:b0:172:36be:bc45 with SMTP id q32-20020a05687082a000b0017236bebc45mr6627202oae.8.1677245162272; Fri, 24 Feb 2023 05:26:02 -0800 (PST) Received: from grind.. ([2804:18:18bc:fbbd:3c90:eebc:7544:73fd]) by smtp.gmail.com with ESMTPSA id b5-20020a05687061c500b001435fe636f2sm3383763oah.53.2023.02.24.05.25.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Feb 2023 05:26:01 -0800 (PST) From: Daniel Henrique Barboza To: qemu-devel@nongnu.org Cc: qemu-riscv@nongnu.org, alistair.francis@wdc.com, bmeng@tinylab.org, liweiwei@iscas.ac.cn, zhiwei_liu@linux.alibaba.com, richard.henderson@linaro.org, Christoph Muellner , Philipp Tomsich , Daniel Henrique Barboza Subject: [PATCH v8 4/4] target/riscv: add Zicbop cbo.prefetch{i, r, m} placeholder Date: Fri, 24 Feb 2023 10:25:36 -0300 Message-Id: <20230224132536.552293-5-dbarboza@ventanamicro.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230224132536.552293-1-dbarboza@ventanamicro.com> References: <20230224132536.552293-1-dbarboza@ventanamicro.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2001:4860:4864:20::29; envelope-from=dbarboza@ventanamicro.com; helo=mail-oa1-x29.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: , X-List-Received-Date: Fri, 24 Feb 2023 13:26:05 -0000 From: Christoph Muellner The cmo.prefetch instructions are nops for QEMU (no emulation of the memory hierarchy, no illegal instructions, no permission faults, no traps). Add a comment noting where they would be decoded in case cbo.prefetch instructions become relevant in the future. Co-developed-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Daniel Henrique Barboza Reviewed-by: Richard Henderson Reviewed-by: Weiwei Li --- target/riscv/insn32.decode | 1 + 1 file changed, 1 insertion(+) diff --git a/target/riscv/insn32.decode b/target/riscv/insn32.decode index 3788f86528..1aebd37572 100644 --- a/target/riscv/insn32.decode +++ b/target/riscv/insn32.decode @@ -134,6 +134,7 @@ addi ............ ..... 000 ..... 0010011 @i slti ............ ..... 010 ..... 0010011 @i sltiu ............ ..... 011 ..... 0010011 @i xori ............ ..... 100 ..... 0010011 @i +# cbo.prefetch_{i,r,m} instructions are ori with rd=x0 and not decoded. ori ............ ..... 110 ..... 0010011 @i andi ............ ..... 111 ..... 0010011 @i slli 00000. ...... ..... 001 ..... 0010011 @sh -- 2.39.2