From patchwork Fri Apr 30 01:15:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 429738 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp2111438jao; Thu, 29 Apr 2021 18:31:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQj9lU8Wv8dI90Ic7iRoie7tPBUjPi/iZFzLW1B5AlZtUfjOVIfHC2cmR7Ve0SxOe/778c X-Received: by 2002:a6b:2c47:: with SMTP id s68mr1731014ios.15.1619746302296; Thu, 29 Apr 2021 18:31:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619746302; cv=none; d=google.com; s=arc-20160816; b=CX/AJRtTipebv5uclX89p/OxY6GJDgwlY92BPITausNwmddo5DbwOowFHf+FKy5tt+ 1ohVTuwuvYx7/bExMr6grWj/rPO47CyG13SAgjbz7/xzydlmGM7pWs7QrRA2bUovWstx ZVYoPMsE5huMN+Bwu9LZIyBsNnW2GeufUZVxuiYn+Nvb2ET/otjOY/9zWuxA7PMKcszK tZm3obZiCVCoIm69GG31EAXMxQyhr114ut7La7l+Fyr15x8xpbnG3AWPP6QfO/oyJ7OY CVbEMrrkg/pGWHkYuAKwOnG3lGhoUj2AbcOrQPOfoEuqyauZpln10iyz+uog/WOjF2r3 oXow== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=cIQmdrbpw+tsZnl9LQMLZ+zBhw2wNBDZzMctIGQTbTU=; b=ZAliNL8gKEEU0MXuY6iqmeBka1NJneVTQRpQCL2RKhKXavEGr4R1Ax3vXqqYS8JQgk J74AqAfr9VUx3XdNl8CSnj20l+rXbe9K5kU3U9zK4/i9ekeOVP6Y4UTiAF00MV1d6gYn tL+M/ifNeE03VYrJui7/h+RGHFJfeTFm5ZKtUXoD/RbipqsApWBKBfRZBHb3/GiMhrvb A3d7VCK/uXqlHQ0J8Qu3JL/NCvDfETSeNxytM4tMHPnuN8SpY7IOdPWnuINEOBHNJRI1 PnS27P0JQzlIWq4Uuho9avUqDPewhlrU2DAbpxU+Lvy096btmpaIpifKHofCzwn/snBd L37g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=YMJFpGfp; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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. [209.51.188.17]) by mx.google.com with ESMTPS id s4si519692ilv.29.2021.04.29.18.31.42 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 29 Apr 2021 18:31:42 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=YMJFpGfp; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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]:42326 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcI0L-0002BB-LJ for patch@linaro.org; Thu, 29 Apr 2021 21:31:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34324) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcHlc-0003Te-42 for qemu-devel@nongnu.org; Thu, 29 Apr 2021 21:16:28 -0400 Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]:34552) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lcHlD-0007dw-Ju for qemu-devel@nongnu.org; Thu, 29 Apr 2021 21:16:27 -0400 Received: by mail-pg1-x530.google.com with SMTP id z16so7445994pga.1 for ; Thu, 29 Apr 2021 18:16:03 -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=cIQmdrbpw+tsZnl9LQMLZ+zBhw2wNBDZzMctIGQTbTU=; b=YMJFpGfp1Jv2yHm/4LYJlUZP5AGQIBVe2q8w5I540QTTiTk6opSsOMql79NMvGxWNg XWjwgaJsGam73PR6QKrfCxxYL3cAXS3z08dLZuiO35WnR7YxGjlqSE7zDH7quLq2odr2 8hVoi14Aw/qdHA7wloWKt6K3JI6BhIJ0O1e2/KLyqp8v1Vf/ZA89HMMg/Q/fBzmFdO96 36a/XKc93SNxZ/L8DtjL1ZtIdzGa4sSnmEZ9Z6pSVM/aLJEn6ea4+m2VgaN+NXgWab2Z 1kJOXoF6EBC6NFLs22hmrYiUcXnOW/LRerj9BwPrhaqmNN0Bo3/sgOpBaYiVuXzrO4nV ZdFg== 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=cIQmdrbpw+tsZnl9LQMLZ+zBhw2wNBDZzMctIGQTbTU=; b=b+pwnfwCusPR9eIXQvXP8fIiLE0iddtNrJuyWM12IT9Zfmgy0G8qb0LUoQvUBqb0R5 mCN2yp5qfrl4MdCm4ZBp0N19odcbvqqznovF6/qqFqHQYvYGaKXk7zFejn5IM2J2kKVc 4lBr/56sfSOSKvv3AmaMFDulq15RHSJo2ZBlAkWG4bLVMWh/eFol0I8jrWt+V/zqCSDe GqFHIZkTGvrc7Nf8VjvSnjHd1YplfZlKJRN9QjRHlOR53Z0lfqKEgyIdf/eFEYc0y7Ld Jttc2GP/WUe6aPkNNGq5RZ+JkuaYlid/+Q/YRDnY49ILcb1iYmmO1lG/qRDcKbIBPc4/ N0LA== X-Gm-Message-State: AOAM530/3qwJY9m/ZZJdrxhj318kYw4776tIV65uN+mO8fG+OvX+Igwa rfJY/47pgfwm2FP07Pww2K280aV0iBFmnA== X-Received: by 2002:a65:4889:: with SMTP id n9mr2305018pgs.91.1619745362261; Thu, 29 Apr 2021 18:16:02 -0700 (PDT) Received: from localhost.localdomain ([71.212.144.24]) by smtp.gmail.com with ESMTPSA id 1sm161277pjx.46.2021.04.29.18.16.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Apr 2021 18:16:02 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v3 26/30] target/ppc: Implement PNOP Date: Thu, 29 Apr 2021 18:15:39 -0700 Message-Id: <20210430011543.1017113-27-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210430011543.1017113-1-richard.henderson@linaro.org> References: <20210430011543.1017113-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::530; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x530.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-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: f4bug@amsat.org, luis.pires@eldorado.org.br, qemu-ppc@nongnu.org, lagarcia@br.ibm.com, bruno.larsen@eldorado.org.br, matheus.ferst@eldorado.org.br, david@gibson.dropbear.id.au Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Richard Henderson --- target/ppc/insn32.decode | 2 ++ target/ppc/insn64.decode | 11 +++++++++++ target/ppc/translate/fixedpoint-impl.c.inc | 5 +++++ 3 files changed, 18 insertions(+) -- 2.25.1 Reviewed-by: Philippe Mathieu-Daudé diff --git a/target/ppc/insn32.decode b/target/ppc/insn32.decode index 52d9b355d4..2ed25c7e67 100644 --- a/target/ppc/insn32.decode +++ b/target/ppc/insn32.decode @@ -17,6 +17,8 @@ # License along with this library; if not, see . # +&empty + &D rt ra si @D ...... rt:5 ra:5 si:s16 &D diff --git a/target/ppc/insn64.decode b/target/ppc/insn64.decode index f4272df724..5a82ce375e 100644 --- a/target/ppc/insn64.decode +++ b/target/ppc/insn64.decode @@ -20,6 +20,8 @@ # Many all of these instruction names would be prefixed by "P", # but we share code with the non-prefixed instruction. +&empty !extern + # Format MLS:D and 8LS:D &PLS_D rt ra si:int64_t r:bool !extern %pls_si 32:s18 0:16 @@ -31,3 +33,12 @@ ADDI 000001 10 0--.-- .................. \ 001110 ..... ..... ................ @PLS_D + +### Prefixed No-operation Instruction + +# TODO: diagnose the set of patterns that are illegal: +# branches, rfebb, sync other than isync, or a service processor attention. +# The Engineering Note allows us to either diagnose these as illegal, +# or treat them all as no-op. +NOP 000001 11 0000-- 000000000000000000 \ + -------------------------------- diff --git a/target/ppc/translate/fixedpoint-impl.c.inc b/target/ppc/translate/fixedpoint-impl.c.inc index 7af1b3bcf5..96b8c38f60 100644 --- a/target/ppc/translate/fixedpoint-impl.c.inc +++ b/target/ppc/translate/fixedpoint-impl.c.inc @@ -55,3 +55,8 @@ static bool trans_ADDIS(DisasContext *ctx, arg_D *a) } return true; } + +static bool trans_NOP(DisasContext *ctx, arg_NOP *a) +{ + return true; +}