From patchwork Mon Nov 11 22:44:50 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: 842475 Delivered-To: patch@linaro.org Received: by 2002:a5d:6307:0:b0:381:e71e:8f7b with SMTP id i7csp3284025wru; Mon, 11 Nov 2024 14:45:31 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUUUsr+B8HD+dVHIJu1Xh7ikQvOJ8TMp+bhWe4utyJ/HpAa1uxrYklX8eFxWS6rmasmhVRWXQ==@linaro.org X-Google-Smtp-Source: AGHT+IFrPDPVXW9RYFocHbGRMCeIsBVswXO2IcFgk7ugbM9Ao/6+qiEHq0m/gyv+FgIMErE7abqc X-Received: by 2002:a05:620a:2916:b0:7b1:456e:2a26 with SMTP id af79cd13be357-7b331e5f68dmr1913832485a.54.1731365131725; Mon, 11 Nov 2024 14:45:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1731365131; cv=none; d=google.com; s=arc-20240605; b=A7+ZjMN0+NedKIsIGifZDKlX/N/dnsv5UGFxJEcVkB3P5ewvC3LDiLWsPUO/iP4gdV u+lwQMHJPkg9gVwHfbeh5aHfOrpaRXBhAaJktHaa7qJK4t4cokMU9m/3uciVTunFqGWa ZnDy7sVvCVyxWSGmFLn5YhA6n5AhIYPFR7JWfZhgk6dTbq9DuPDt8nwU/0tkkgAenTdL vn8AARUV5TznkI6DZOfo/u7Ue5O+lFIyb1kdA9eMmgqNHfz+nivZMsuAChpwX6sprh9O h0VdRBDAmn8JXQOHMqDfwtWNLPhXCsoK6g3dAb8lDY3KbuoEVPXNRuzj2DDYLUyrbV0j ht9A== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=HbptZfaMtZGTcm7Pug5x0xF4ndFJdzn3nDzgxt2Fk9I=; fh=WVWmXZGoHk1jjbeIbEEEn3Aa4DD+pE4ViZFxt4CxR98=; b=UrDK8pIJ0CelJL8GVlIbtDNi4t2mc4dFgfArA8zlhsGfj39ditvYcnnp056rCzeamF u7vTC7DmVUvlb+nQsr7qRsdXSFcuqVR4okzpVx73+uEWashKAYk9eue0PWtPHWMxQdIO 9QXtxf22NMz96uRo4mMTtTMSikus7Oy3J2Pc1nrZxkTMDKQLZDHzp1COLPNnEyJyPOzq Y5g06kC/vCwZuwhXi1JdmTusyXebvUqoX9QSycufY6P7kwtfY5Yh4CQuB9H7TOz5gkgU YpeuejCyd5QFWtzoUk3rY1oRgfH25T8/FNWtSiOX1ExUANk/PQm3AysXwAJ7iDRqcG6N L4uQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KLl7w6r8; 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 af79cd13be357-7b32acf7b3dsi1376079085a.440.2024.11.11.14.45.31 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 11 Nov 2024 14:45:31 -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=KLl7w6r8; 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 1tAd9Z-0005ze-AG; Mon, 11 Nov 2024 17:45:01 -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 1tAd9X-0005zT-OS for qemu-devel@nongnu.org; Mon, 11 Nov 2024 17:44:59 -0500 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tAd9V-0008GW-TA for qemu-devel@nongnu.org; Mon, 11 Nov 2024 17:44:59 -0500 Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-37d3e8d923fso3566982f8f.0 for ; Mon, 11 Nov 2024 14:44:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1731365095; x=1731969895; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=HbptZfaMtZGTcm7Pug5x0xF4ndFJdzn3nDzgxt2Fk9I=; b=KLl7w6r86Tv2Zlq496clxQii8a9twYRBmNrZYrL+4VhcvRPOQkJrsvPW1BoPWzFyFT 5Z+GV45871ucrNPzZGvRCe85eR4Me3xwhtgG4LFFe457+1bKTDadAQiOjKR4cjojAn4/ T8/aMn6lbODkKC9VSFJ/Zv3fuDmO7gEc+fd7GKYgB8qdzAyGffJXsuAEoET7u8XrJGjQ pyzy3fUtzQ2F3hTPx9PuXw+rYX44qU80XryKwahvPm5MWpQdRiYhc9q3e5TH5SxZpdGX Y8Xkzkm/VPjf3jI/eYSkL9xRRxU9oNbR9EQZ3YaelvKTLQGBpOHqdRsuWGL2PwgskeX5 n8ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731365095; x=1731969895; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=HbptZfaMtZGTcm7Pug5x0xF4ndFJdzn3nDzgxt2Fk9I=; b=OYAk21iO51ltFMNoNum4HpgeBFEMlt/uKTW3eAqNMEbs/kUFI2o21ZTX5FW5v4jWFu J1ukQPLQKWFW9lTdRH0KaAe8RgS9dC7NkD367KnKKqUj0BMuRzNrCC8HgqfS3vO8mxoI zh8e3L5wROLLPOJxIN3Mu+l48WdI6/15Ki7z8+1oed6GSYDciSN8SlH2RJu1oLLO5jEA FKdfgOL9gjr59/PR9+WksgOfxqJhogBNGUVZXrV78QYs7GNxFByDgtD0yPMsUX8Gm9aQ cl4eWtLOnlfhzfHI+tkCiqiS+xl7G9HzXZZmgsowaLD3OUWbw9UhDI2WN5qU6VlyPGH7 A78g== X-Gm-Message-State: AOJu0YwMcOsq44oML5xgUYke9HuEKBOvbbPFh3gw6OHiQpzYEN/em9as WluLOyhOJKuc2jSrkGJuDPMNkIWVdXkiq5c/YxsH1GEkcLAiYrMrF3YvbgMNyTBaGcKrMpSgBj6 l X-Received: by 2002:a05:6000:4028:b0:37d:476d:2d58 with SMTP id ffacd0b85a97d-381f18858b3mr12884195f8f.45.1731365095211; Mon, 11 Nov 2024 14:44:55 -0800 (PST) Received: from localhost.localdomain (vau06-h02-176-184-43-163.dsl.sta.abo.bbox.fr. [176.184.43.163]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-432b05305a4sm190737885e9.5.2024.11.11.14.44.53 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 11 Nov 2024 14:44:54 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Aleksandar Rikalo , Aurelien Jarno , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , Jiaxun Yang Subject: [PATCH 0/2] target/mips: Convert nanoMIPS LSA opcode to decodetree Date: Mon, 11 Nov 2024 23:44:50 +0100 Message-ID: <20241111224452.61276-1-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::433; envelope-from=philmd@linaro.org; helo=mail-wr1-x433.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 Yet another 2 patches extracted from an old branch I'm rebasing. Trivial decodetree conversion of LSA, however this introduce the basis to convert nanoMIPS opcodes. Philippe Mathieu-Daudé (2): target/mips: Introduce decode tree bindings for nanoMIPS ISA target/mips: Convert nanoMIPS LSA opcode to decodetree target/mips/tcg/translate.h | 2 ++ target/mips/tcg/nanomips16.decode | 8 ++++++++ target/mips/tcg/nanomips32.decode | 16 +++++++++++++++ target/mips/tcg/nanomips_translate.c | 26 ++++++++++++++++++++++++ target/mips/tcg/nanomips_translate.c.inc | 16 +++++++-------- target/mips/tcg/meson.build | 3 +++ 6 files changed, 62 insertions(+), 9 deletions(-) create mode 100644 target/mips/tcg/nanomips16.decode create mode 100644 target/mips/tcg/nanomips32.decode create mode 100644 target/mips/tcg/nanomips_translate.c Reviewed-by: Aleksandar Rikalo