From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id GGxKNkTpq2CEYgAAWB0awg (envelope-from ) for ; Mon, 24 May 2021 13:58:28 -0400 Received: by simark.ca (Postfix, from userid 112) id D6B5D1F13D; Mon, 24 May 2021 13:58:28 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,RDNS_DYNAMIC, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 75ED11E01F for ; Mon, 24 May 2021 13:58:23 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B78793891C2F; Mon, 24 May 2021 17:58:22 +0000 (GMT) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2122.outbound.protection.outlook.com [40.107.223.122]) by sourceware.org (Postfix) with ESMTPS id C63253858022 for ; Mon, 24 May 2021 17:58:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org C63253858022 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=wavecomp.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=fshahbazker@wavecomp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aRP3fmv47kmPSEH8mpch9hI4jL8tIx5tLkVrSGpAAVnygCH1XcWTDvWr4uyS7YAEQtvttuolqbF1oBRodBNP4OoktJzdlwPNmuwxRxy+P+ZVo1PGIm2ia2kZkq9G4EZbQN2w3iQimN+5t6Djulbq2jpGRRlDc9DqRKLydtVtiXdP5okcmdHtMjzvw3hkB904VyujPseNsdeSSKwZiYyVV4qegq+46KnPdK1ZPUmO9rMYVifMyr9KZdo5uRkYrzZzBcgkurYKCzn6KuA9POdgeNXjIPx9D+0PIQ7R39NyvYwFSl3h/GGl8rVCp7PASeE5UJDbM2QANqwqg3mAnEqGJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uU6F4fzCgi7UZFdhi/1H1ijO7F2SGMpxzqsIB670r8w=; b=m9E9Hnqp9zR3jWaoz7m84oCGllfle75Pt1knEEGe53SlDDuNwUGaaehipZMf37QRq8VRBEFd6kwDol3ibVoivObvbfxd8hrUS6ourVFiWsfSG570QC6Mw1Ekkd/5rsPd9iqG+0DaH3X58kHB0uBx3i7HlZu/7OJ+aZ15unPZ1UXBDQXpLOSp64ndJbrrXIzru04b0pN6q5ks0HBaABLKIrMTbJDlw3NiYdYvob8IGmIrHJSq3ePyf66NZIHwl8R6GdBSnrdKqwPhpeAfjf2O8soLIgyE3ixqUHijwc0RjTnYRGpZ+kIMt+tWCmisMYAtwjX4lTN72BukQBQVTCsWKw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wavecomp.com; dmarc=pass action=none header.from=wavecomp.com; dkim=pass header.d=wavecomp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wavecomp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uU6F4fzCgi7UZFdhi/1H1ijO7F2SGMpxzqsIB670r8w=; b=Ifle8RsgaFBqkjnPLpm06Co1RCE2O4/HkUKQOquObX9r35srzhkWjM/7+xSE9rky38UuAJRvV6ACjxyXb9haM7RcsZkcVjctelJfK79SEGD1gk56J/DW+YIxEJYy0x5DBVgsKnV9ytH27InFwXyTysxge/rB7W0jv8iEwW01aY4= Authentication-Results: sourceware.org; dkim=none (message not signed) header.d=none;sourceware.org; dmarc=none action=none header.from=wavecomp.com; Received: from MW3PR22MB2299.namprd22.prod.outlook.com (2603:10b6:303:47::10) by MWHPR2201MB1343.namprd22.prod.outlook.com (2603:10b6:301:1c::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4150.26; Mon, 24 May 2021 17:58:15 +0000 Received: from MW3PR22MB2299.namprd22.prod.outlook.com ([fe80::e098:7822:150b:bb5b]) by MW3PR22MB2299.namprd22.prod.outlook.com ([fe80::e098:7822:150b:bb5b%7]) with mapi id 15.20.4150.027; Mon, 24 May 2021 17:58:15 +0000 From: Faraz Shahbazker To: gdb-patches@sourceware.org, Mike Frysinger Subject: [PATCH v2 0/5] Add support for MIPS32/64 revision 6 Date: Mon, 24 May 2021 23:27:57 +0530 Message-Id: <20210524175802.875687-1-fshahbazker@wavecomp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable X-Originating-IP: [175.100.139.57] X-ClientProxiedBy: SJ0PR05CA0116.namprd05.prod.outlook.com (2603:10b6:a03:334::31) To MW3PR22MB2299.namprd22.prod.outlook.com (2603:10b6:303:47::10) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from frsxps.mipstec.com (175.100.139.57) by SJ0PR05CA0116.namprd05.prod.outlook.com (2603:10b6:a03:334::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4173.12 via Frontend Transport; Mon, 24 May 2021 17:58:12 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4f86d148-14c1-42d5-0c31-08d91edd80a1 X-MS-TrafficTypeDiagnostic: MWHPR2201MB1343: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1923; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: r1VNfhzPRSIvRTZ6JohmWDcsyF/jt0pLpbhoVPTrUre62u6v/TR3Mq+1M3TnP5+kg1tdJUANnuf1bHb74j1EvFJcuRSYFnnWboLvAlQUSldFdFBqdbeYtswUOZnQowWVfY8relXY2FbFmWrqdRCPRk1tp5cxdNpD01lcc3uSycm/6ysD3bSMH71IlRbGNUCXCYoX1VTsFFz7VLHXEmcwB4XERK5bVRLOVVe08U+yrOpmBeknq0UMuWS95tqZ7X5bvvp2LN8dtNO2GN2KrTTLcdHy63+k9cD/46A+EhV5CST/i6VBNByz/T8It0F+4BAbzaymAhTSsqchkS1aRjfjL6AduVwcHNzThRDrvzSv94NO07sinYpfJUP1prrn+5fA8R6E6SZu861Z7XW05VdLMyPxH29BXvECbnXlqXjcgt/joeqCG3xmkJYGD6k/SGiBofUaYXnaAojm/ZuhGyn5GBFnDNlvTW7QY0lZBrtfqMVRsUmjDnT+/oUck/3EwcJzHGJWXfm3LQjx41H5bh63OROsgfW5dpaI3+c5DfxBPM+YWlQJsdKG+5+g39+02ueXnFdtCxy46EMks17mT4SkuBriYOXA5TbDopSbYDZ5Qx7xZdQH1F4HTpcMUjUjS+9WnSA/PUQkkPKvXgNOHXmeYQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MW3PR22MB2299.namprd22.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(396003)(39830400003)(136003)(346002)(376002)(478600001)(26005)(6666004)(107886003)(6512007)(4326008)(6506007)(16526019)(2906002)(6486002)(52116002)(38350700002)(6916009)(54906003)(316002)(956004)(8936002)(8676002)(86362001)(186003)(83380400001)(1076003)(66556008)(38100700002)(66946007)(66476007)(2616005)(5660300002)(36756003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?oengInGJYL0/sj2UO6yaimZm93pfmBbF2KPrHaIiy1JUfmrWAsSGi75l4VAu?= =?us-ascii?Q?uOZpozHn34K2D8PCHUDts5pv0O6r9CeViQzQ0s/puT6CrVOd2rNY9Kg7Nfl3?= =?us-ascii?Q?Yq4wZd2Z7DT2cAZZytHg4wXCAnvMZVk7j6/p9P7SXJXtQkqL9XyvsULIKg51?= =?us-ascii?Q?3jyEfhFVeiISov4yJFzhHPAsrfWu8CwECTULk/Xh9eBrG/ySwfhtaBgWoV0P?= =?us-ascii?Q?+EELeQT6xL8vFQxajwc4rSI1NMA4dpX/nxw64paci5KZqpyxV0gmkv4Tt+we?= =?us-ascii?Q?ciWFiM2hjD+wZ1UizyVanTEP3WuY21P0xGDnZtmWT5jELXBFcbtPHm13Rc+e?= =?us-ascii?Q?SljUdgyei5WjnKbQbqbhdo5Tl7erx8neeO6wRE/ddhGCV3fz2KhT/AXiE9XM?= =?us-ascii?Q?XD4U0wJbtrQOBJJvnCfzATkr2g9B13cUmb3q88RkFjo0IiUhbkw19XiSwJht?= =?us-ascii?Q?f5Fg4Ms8uENGpjOYjfvR++w/1gGtK8CjTbZlklzghsJF2w238OcmYlGtZ/FU?= =?us-ascii?Q?C/1ZfQBM0It7Yww+UJ8TPejneX8c4WDAvDv9SMa/v2+hLHuJhF2UnI1bqE2N?= =?us-ascii?Q?BbD5xu36ylKxow3lrCQIvD2IbxuDFzHr9fLMyBKHVXyLlmIziqrODNXLNfMH?= =?us-ascii?Q?cynYo19GFSJg2KVhWI23yW9cJTkilERB2HrM3JEzyy70XZMIQKOgkKnod5yx?= =?us-ascii?Q?uU41u+tw0BMvbo3s5aLvQMrz9Dy2f/qBTANtMuBJxtQu/ia9BGaQqLOq9CcX?= =?us-ascii?Q?8i0cRZLKTsE1w6UVtrSjT7YcD4sWebayWlyr3liGxCTB3r/GdCrJ++ZS+a9Z?= =?us-ascii?Q?9OJ5konAdi0RMwG1Evh5+4VY9Aye8g+1lrb+2l1EVD0vJIK16yNrxhdsTB1u?= =?us-ascii?Q?VbmRuwbJbxBJUSfCTottcpOU0XWLKyAFMognyrNBTW3yL39/J0Mj6d4ZJvCP?= =?us-ascii?Q?RoMRePd5/HnXi5rLj0pX7TX0IYcMI8MUHozcP9J8UIldraHUAZMiuxMwwctL?= =?us-ascii?Q?/i5E4MTmNzp37cNQ4BHmfNikgjT+fr3nATJ9RyJubuKZeN4yK170GtN/SVgI?= =?us-ascii?Q?wg9m5eTQjePTymip2RkiwWfPQttytAiezg8DnZpPNdMmhalE/76dfHWTWoYw?= =?us-ascii?Q?GKeF1An42bs1/WbcEs/j5wpfOBWTaXbtZ57yqH4E8BQLj+drTYmWriWJMfJa?= =?us-ascii?Q?UBNmUMf2OLky/py2MghXzJnmkJARBvfBgEDsefpRSY2MUoHDyhkFSEOZjZpo?= =?us-ascii?Q?FRTv1ZpNOocI7nThA6EboM4Ifn6eOuTis5O0RjhchhMYZwBTcaAqQx7zl4Mq?= =?us-ascii?Q?dd++YouzoGULpDhLtvTOlfwX?= X-OriginatorOrg: wavecomp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4f86d148-14c1-42d5-0c31-08d91edd80a1 X-MS-Exchange-CrossTenant-AuthSource: MW3PR22MB2299.namprd22.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 May 2021 17:58:14.9775 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 463607d3-1db3-40a0-8a29-970c56230104 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: mqWXRkbPzD0wiOeZBBtByZGEZOJaiiVb6cfO6VqAOgDHvQwvGTk08YW5cjEohK2eKWtajmVGJ3vKRadEqBCZsg9irKJr1Qn/09jA8iVZQp8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR2201MB1343 X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Faraz Shahbazker , Chao-ying Fu Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" Changes from v1: style and indentation fixes from previous review. This series adds support to GDB and simulator for MIPSR6. We introduce partial support for IEEE 754-2008 in the common code including NaN semantics for MIN/MAX/ABS/NEG operations and a CLASSIFY operation. This can enabled by invoking sim_fpu_set_mode(). The multi-simulator model supports R6 in addition to previous revisions and the engine picks the appropriate revision based on flags in the ELF header where possible. Faraz Shahbazker (5): sim: Allow toggling of quiet NaN-bit semantics sim: Factor out NaN handling in floating point operations sim: Add partial support for IEEE 754-2008 sim: mips: Add simulator support for mips32r6/mips64r6 gdb: mips: Add MIPSR6 support gdb/mips-tdep.c | 518 +++++++++++- sim/common/sim-bits.h | 5 + sim/common/sim-fpu.c | 344 ++++---- sim/common/sim-fpu.h | 17 +- sim/mips/Makefile.in | 1 + sim/mips/configure | 21 +- sim/mips/configure.ac | 15 +- sim/mips/cp1.c | 409 +++++++++- sim/mips/cp1.h | 6 + sim/mips/interp.c | 6 +- sim/mips/micromips.igen | 4 +- sim/mips/mips.igen | 378 ++++++++- sim/mips/mips3264r2.igen | 30 + sim/mips/mips3264r6.igen | 1226 ++++++++++++++++++++++++++++ sim/mips/sim-main.h | 97 ++- sim/testsuite/mips/basic.exp | 66 +- sim/testsuite/mips/hilo-hazard-3.s | 2 +- sim/testsuite/mips/r2-fpu.s | 31 + sim/testsuite/mips/r6-64.s | 157 ++++ sim/testsuite/mips/r6-branch.s | 290 +++++++ sim/testsuite/mips/r6-forbidden.s | 51 ++ sim/testsuite/mips/r6-fpu.s | 446 ++++++++++ sim/testsuite/mips/r6-llsc-dp.s | 57 ++ sim/testsuite/mips/r6-llsc-wp.s | 41 + sim/testsuite/mips/r6-removed.csv | 68 ++ sim/testsuite/mips/r6-removed.s | 18 + sim/testsuite/mips/r6.s | 163 ++++ sim/testsuite/mips/testutils.inc | 55 ++ sim/testsuite/mips/utils-r6.inc | 150 ++++ 29 files changed, 4402 insertions(+), 270 deletions(-) create mode 100644 sim/mips/mips3264r6.igen create mode 100644 sim/testsuite/mips/r2-fpu.s create mode 100644 sim/testsuite/mips/r6-64.s create mode 100644 sim/testsuite/mips/r6-branch.s create mode 100644 sim/testsuite/mips/r6-forbidden.s create mode 100644 sim/testsuite/mips/r6-fpu.s create mode 100644 sim/testsuite/mips/r6-llsc-dp.s create mode 100644 sim/testsuite/mips/r6-llsc-wp.s create mode 100644 sim/testsuite/mips/r6-removed.csv create mode 100644 sim/testsuite/mips/r6-removed.s create mode 100644 sim/testsuite/mips/r6.s create mode 100644 sim/testsuite/mips/utils-r6.inc --=20 2.25.1