From patchwork Tue Nov 26 13:59:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 845593 Delivered-To: patch@linaro.org Received: by 2002:a5d:6989:0:b0:382:43a8:7b94 with SMTP id g9csp228945wru; Tue, 26 Nov 2024 06:01:57 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXGKL4zml4zUlSuak7UwjI3ybOMcGvcW3VOFFZpy4Oy3cGh4VJjUNI13y/vRcsFEn9bjDLlsQ==@linaro.org X-Google-Smtp-Source: AGHT+IEDsSxxE9zHyM/wPurN7OcM288HYAEW4D1Yljcmlcdpuiq7SuzE7AP5cQ+W8HrAkajzZQ6t X-Received: by 2002:a05:6000:2c8:b0:382:4926:98e0 with SMTP id ffacd0b85a97d-38260be53f0mr14901814f8f.52.1732629717008; Tue, 26 Nov 2024 06:01:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1732629716; cv=none; d=google.com; s=arc-20240605; b=SjcMHanYzKHIHdHYTkbUGXqH4JYdZyC8/Fia5t+RbQa4bwwTE2De2JrHapDVlRAlbi +iUy/04ERDK9kswC9B56pJqLq/C4ZP7H2eXkOcTyt+s7RzD5xK2KLXC8iqHAg9ljO78x IKAN+L9n727LOPm//R2zSUBSHd4xTJ55XwrJTiEO2pSNSXyoi8gv9isluaqAUAnTJPwY Uf6j9HrOWHnpHCjepWaIBdSeOjciQHa1Qbk6MI2CdAB0vHB0TVu5ry4pPJaFRtt4MkNn XM8Rq7MvjpdrKmlZEHs1pHxs9NTM7O1BDNLU2GSG4OLV61nal5gA8EWNSyXZE13qVW5w zGRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to: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:cc:to :from:dkim-signature; bh=tardOrbKTYXoxRnABs7gTXmCmfB9GEPw0cdGe0ErewQ=; fh=4r/AbSiZ/J/m0KBgVsy+383mo7PekE3kdENTAv+dxnM=; b=MZx1SL6a4UUagIaanoXhUh0hp0SNpedUTvkoL4oA1N9/WqtDn+I0Z4PvvBiIEsT6ca WC18B5MsHw5yL0kCuc7li8VLfSWnIJ0pfTqsJp1XYyFBKAxTdDxP0gKyA/qU2lVp6aAu mFOWDsz/djUlaBaU72bGYKEIvw67dnioH84BsBQ1CirEq2VxVz9K1VUmF7f4Js7DoPkX MuN25/gJynqvhAl2xVBxLKwe5CTDtXDX4kOjI8i/r6C2Baw2Yu3/fTM5bQcZq6DFDXeq wFWX+5TbDIwsVCDhzujvdUsFLsKUgcxanxC5t2UfkLVq+jUHlXJ1nAiiEAvhvZufBwi6 Iaug==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EcAGGetu; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id ffacd0b85a97d-385be967a9bsi1419057f8f.44.2024.11.26.06.01.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 26 Nov 2024 06:01:56 -0800 (PST) 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=pass header.i=@linaro.org header.s=google header.b=EcAGGetu; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tFw7s-0003fV-Os; Tue, 26 Nov 2024 09:01:12 -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 1tFw7n-0003My-SH for qemu-devel@nongnu.org; Tue, 26 Nov 2024 09:01:07 -0500 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tFw7m-0005J4-14 for qemu-devel@nongnu.org; Tue, 26 Nov 2024 09:01:07 -0500 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-43497839b80so23793205e9.2 for ; Tue, 26 Nov 2024 06:01:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1732629664; x=1733234464; darn=nongnu.org; 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=tardOrbKTYXoxRnABs7gTXmCmfB9GEPw0cdGe0ErewQ=; b=EcAGGetuA5u+FyCq6ph+9WYIzg3PcsxzXHxprvoO/AO9yCcBDY9tibY2LpAuy/7E76 MZinY/Q5NJePHoY7Z4LZBJuFSGlu/oL6LbbAuALmxacUnZzbjzkRiUmP22LqWPQqkzrm ZZmx+shku9Ev3tewnJJCOxd7grdLRXpyG98rnCKmk9BhLmDL6RVgKQhrG2AOL/K/SQfb kVphWf8tONMkOiX1Qae8TqNPSPT/OeIZuj3xe/yI5ITk4hfcw9gU7Dl+imIrOj92wUxt dfYk86F+IqsdIPIj9rRRO6P4ZAcwS6BnZ6adaQIuwUAjKoTPOctPHD9Pco0r6qHd+9F+ 8f/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732629664; x=1733234464; 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=tardOrbKTYXoxRnABs7gTXmCmfB9GEPw0cdGe0ErewQ=; b=ei4VZFEkr7FbhlIhnql983HZDJFzDltlkVh1g7NB5zLpsdFQq6sLPGMiXjxKZg0KhD bU/+oWYWC7zJF8oyCywUYFZ6gK2T5SXxo2eXkqM55hcrsRYLyyci2f5xPDG8Ay4WC2Mm BVM1SxjrebG3QReoOl/soroBlnUqxxYeXDUa1O1yfSp3fkS8HkBXsBA4pCyX9sBbtMj6 DIXqRpd9Jn4x0Z09zRlGUQP3HInBUzjLbsdgqDQ/xy8Liyxbn716/EdPK2mFDZ74W0w1 P3kUh0aBGdfr3LwxVGzmhfjhDEG9iOkmIASYrkvYu2GHOVZYBjuH5zstLEufs51JgepC 9DEw== X-Gm-Message-State: AOJu0YxkGVrHGoPcwyWgwc8gLwYUEvpWPMRx4ZGS/j2+mwkCncgPk3ki vrZqN+5/TtaJMl9/4iZTJj7F7ZHW3OU5KRhrta4PZwxxKQ7gLK68htsxUPgyQzntyQ1s6GMal1i R X-Gm-Gg: ASbGncuR8a3oQ40qinYaQIiUgo8/dtXTu8nb6nLZo+KKWOWER3YeHHnIYJlmb+VW5hZ lPTR4q6n91RccwUXZKfRKuvmeyg8pnR0Uvk7USyijK11r7f8h3eHYUYXSeJqsDCrOxZ6wELkDNk kknaawYs9iHaiYdZ+OgES7qLWLGROGsgEsyOJptBcxhBMLU0JWZP3c2s539fT0m2itqh8Iu4YiY 0h2kwR1PPLXzfJuuzAbJHeqUSErirmS6YtnNRFATWNpcNGjHakMXGY6q0UOPhk20egEMRb7 X-Received: by 2002:a05:600c:3509:b0:431:5187:28dd with SMTP id 5b1f17b1804b1-433ce4d3e48mr121677815e9.28.1732629663782; Tue, 26 Nov 2024 06:01:03 -0800 (PST) Received: from localhost.localdomain ([176.176.143.205]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-433b45d4dd6sm236632255e9.24.2024.11.26.06.01.02 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 26 Nov 2024 06:01:03 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Aurelien Jarno , Aleksandar Rikalo , Richard Henderson , Jiaxun Yang Subject: [PATCH v3 09/16] scripts/decodetree: Add support for 48-bit instructions Date: Tue, 26 Nov 2024 14:59:55 +0100 Message-ID: <20241126140003.74871-10-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241126140003.74871-1-philmd@linaro.org> References: <20241126140003.74871-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=philmd@linaro.org; helo=mail-wm1-x336.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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Some nanoMIPS instructions are encoded using 48-bit. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- scripts/decodetree.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/decodetree.py b/scripts/decodetree.py index e8b72da3a97..88cd476d2d3 100644 --- a/scripts/decodetree.py +++ b/scripts/decodetree.py @@ -1543,6 +1543,10 @@ def main(): insntype = 'uint64_t' insnmask = 0xffffffffffffffff bitop_width = 64 + elif insnwidth == 48: + insntype = 'uint64_t' + insnmask = 0xffffffffffff + bitop_width = 64 elif insnwidth != 32: error(0, 'cannot handle insns of width', insnwidth) elif o == '--test-for-error':