From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id sIxaO9QTpmCRUAAAWB0awg (envelope-from ) for ; Thu, 20 May 2021 03:46:28 -0400 Received: by simark.ca (Postfix, from userid 112) id EC7FE1F11C; Thu, 20 May 2021 03:46: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 BD5B61E813 for ; Thu, 20 May 2021 03:46:20 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0CA2B394FC20; Thu, 20 May 2021 07:46:20 +0000 (GMT) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2137.outbound.protection.outlook.com [40.107.94.137]) by sourceware.org (Postfix) with ESMTPS id 9736D3848019 for ; Thu, 20 May 2021 07:46:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 9736D3848019 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=KNQpB8IsH5w3s03upzdlM5hmO0OaUHhJD0T2ehmbHZLZLeJwCxnpp0FqtpDYsfiSdfgmIuVqw1lqocAjtmWHAslC0UYbzi9iky5fAL6l9OmOHKrRP1GYff4kzm3yf6QzpJg2U+acP3BSqBvcoyRQxlBvElyln6+L7gnRLXgpdSH6VGGZX3E15yYQvWI2ZwKSOTtn6imgNOsurAkz26C6XfBYuqwAMHsNOEXBz/JbYFZU1H05wUEYlQVsx4p0avLe1ez/JTeLU6dMq5QvvA7e7UYbqol9HQV3oQQDkVCqTfV+i3ECvBef99otA1fmMHFZsutPP45IJNZ9m9D2r2PlaQ== 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=Ok0F00Uj0rzPjaXQNft2S7pKFio/WX/vxvXQVDFjQ3I=; b=nZ9aBiwep7sDY3oaC+IbEX3gP+jFwB/juEnssAiuUp/DHZsZ+1Zk7kQ+Lfc1sMAq67nJSgWuNzZBCXEjKxDy41DH5fB/PHMc6ZRVAAPWO6px1U3maXhyQ7JrwqpLG5zb903Jj6DEmKZP+6rnAtSP2QGtZVhLvco2euv9qxZr5+Uu5qmzeo1qLK+jQIPvi8KoNAu9MlEhmxXzQQTmeKZu8GPVnfSwp/NNCXdIvJw4Cf5ubPqY0cmpUK8EKjaPtIpxl9+joquO4+EfDZ9ATEX1LsW2EIodFzG8EzrILPRXT+UcNkjB7dLRxAbZhvghRkL6S1y7giwHYwBo5aJ1r/yBhw== 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=Ok0F00Uj0rzPjaXQNft2S7pKFio/WX/vxvXQVDFjQ3I=; b=GkuLl4J2Tg3TI2zvSn9WHe3nHaupSAa5APIjma+TJO+v6YFDErbH2UVtYXvNzzGZdqcukmbaCbT1wCQSY8YmPldrF9KDKuVTgK3zcQUhL16mi8NYzlfqZ7kArlij/6Mu0Mi/T2UYXzKuu7aCYLLejY6OYNq7OBVnmdElOhzcDZU= 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 MWHPR2201MB1344.namprd22.prod.outlook.com (2603:10b6:301:25::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.28; Thu, 20 May 2021 07:46:10 +0000 Received: from MW3PR22MB2299.namprd22.prod.outlook.com ([fe80::e098:7822:150b:bb5b]) by MW3PR22MB2299.namprd22.prod.outlook.com ([fe80::e098:7822:150b:bb5b%6]) with mapi id 15.20.4129.034; Thu, 20 May 2021 07:46:09 +0000 From: Faraz Shahbazker To: gdb-patches@sourceware.org, Mike Frysinger Subject: [PATCH 0/5] Add support for MIPS32/64 revision 6 Date: Thu, 20 May 2021 13:15:49 +0530 Message-Id: <20210520074554.1465327-1-fshahbazker@wavecomp.com> X-Mailer: git-send-email 2.25.1 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable X-Originating-IP: [123.201.194.96] X-ClientProxiedBy: PN2PR01CA0088.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:23::33) To MW3PR22MB2299.namprd22.prod.outlook.com (2603:10b6:303:47::10) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (123.201.194.96) by PN2PR01CA0088.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:23::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.25 via Frontend Transport; Thu, 20 May 2021 07:46:07 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cea00d44-4fbe-4c02-7803-08d91b63552d X-MS-TrafficTypeDiagnostic: MWHPR2201MB1344: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1417; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pyiC0zPlOrAD9o+ePd6QY9auiKL8Npzx360nek1hlgHUswcURrh6cWigpc25Z9y2WpojCTJJ/65RTnT78Ztjpyzv6oBY1vc65TOEaSwUtOaJX0vpHRtuKwO04pPEBZrzATql0ddqyxVZhrG3wmwXzGlAiOpuN0l3o8TdgIVOqndMK67ar5h/k7OxgsHBmG+pkZCmNk+RwHnIAIwJGtXnD5FxazpPNL9akVEKNswvqSiwFI9VypmMqVWEN/q7bX7GHrI56x3SZa3kwOcS6uHLm9KvX/ujQmuUtETwKDt4oxs1ao0zIq8aRgxIfB8apW49kAmiKB+J0zUyc6dila8vs5HbRSrW12QnF/DBlyjQn2B6N5wQV/DCXica2iz/uXLd0M30hzPA0rCuyJMDMyPMfuBJmRJzuHJDyEwycZtZ46Cp8YkpLP+xguF+L6i1Va1l6ow3/M/vma9BYxQTL2UIgoP3KpcJqV2Me9jB44FuNYchILYv9wNYk9hkbXblocd1JReKtAGwDqq5mbiz1RYZoxIDTRAZulPY/q0oBe2+07ps1v65+AKmnTkaq8F5hm+Nrp1NYBOjYk8o5yAbsUnKGTYWgDcFrztIrInhDphs3RBfhqN1tMhYhuDCY5idsyjHsLL+IGAO0swOJq18SMtwjg== 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:(346002)(376002)(366004)(39830400003)(136003)(396003)(8936002)(107886003)(2906002)(26005)(8676002)(6512007)(36756003)(38100700002)(1076003)(38350700002)(16526019)(186003)(66946007)(6666004)(478600001)(54906003)(316002)(6506007)(83380400001)(6916009)(66476007)(66556008)(6486002)(956004)(4326008)(2616005)(5660300002)(86362001)(52116002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?c9HAdiaxeLMlV5eDuNwn8v1o0K8uPSgHdN8OT/e0661Lyk8ndkcwpceoVA0m?= =?us-ascii?Q?WGn/rtLBtjlJRIVhCcX6NksBnBcrVfhcopXObg8Jmr2H60lxlHMcLZz4aour?= =?us-ascii?Q?795incPDUSX7djl0qYBZENUfB/FhpWWbEM2hVfRj75seNkll5Anvcpcq5D9C?= =?us-ascii?Q?32qVq6FUNV7oHqnzUi2DNsQyssUiJYz4udCTSMRGtc0Y9zZ7lZyvXq+XcaJ3?= =?us-ascii?Q?psZkoi/9mkfMXg0Twxjq7Pm/Xierm6nM2ANij9TXpfbDfdCjw/DBLj9n3fYH?= =?us-ascii?Q?3SO33puUII8gQhyGwfxZ+ZWQ6guRSAPqcMYGvkJln6fO/+YU/GZTCXk4tnve?= =?us-ascii?Q?rrt0fgiMvYKiEH3OICOffsPlOEg4ZZB8jvtTRTsmtpn/uKet1xm+5ADQTMlY?= =?us-ascii?Q?NlprHSZCCFniEbIaW/KmrZV4OrWGmT2UavoVTDUUX896uazkcKcT6aIUpHxu?= =?us-ascii?Q?XpK9l6if3TxxXCfbNV7I+nHD2/WZbUssGzc/bAl1E3iTMC5UjS+2G0GWWIuq?= =?us-ascii?Q?u3heOG4lnHQ48p3gtoH+4S41RLyR6mAMKYh41grcnTLVO8QoM35GknGSL/7n?= =?us-ascii?Q?oaomDYm+P9r0YQuh4Iohjb649GRGAolG1fxDISfpzlLBaG9Vp3ySaWLAqu9r?= =?us-ascii?Q?G911ShJjTqRzDbVzVX3slOW+jvD61JFQE5hgWnrDoKL0BqHU2A1m8TSMtovw?= =?us-ascii?Q?iLLInWgJZ58pbQXGf5u6o7Www5HJ7nw3wc8hoCptfhA580IdXEkcxK4DZcpX?= =?us-ascii?Q?A+iryawxj2LG5RatNbW/Ch7xy9APR5l2qhA+QIrrgXGIa5BbYNgDAXiCXAoq?= =?us-ascii?Q?6xWMaF2wAOWuuE4fLGsvaMyeuy3nxF9JqmJvFi2KFwy0gvAJrLTMsvxBR2ZL?= =?us-ascii?Q?4CDUJYHky4U0bgNrcv+rWM47TEo0KtWy3nsSDcm7hD6OQnVcAD2x+p2g5eLU?= =?us-ascii?Q?ayE6ubAL+GIzB5G0WEiqTalnJufX8d32HEO/VowsDGrcO7tRsQY9rf/ia1Ur?= =?us-ascii?Q?sxS5TGMP/grYtSglAuYXirjQMN5fA1CayEfkelPDFOEdombHjwjniKgHLP/R?= =?us-ascii?Q?CU+H37rXWyk1fW5MdsPo7r1qg2yEVaduVMJ7GMjgJxud7ByRQ3j1I8mLnzI6?= =?us-ascii?Q?M5Of9vMvgAd7ZyV7KYwgr3pr0tgFCqLjVpO2hz14Zt05M21oMGpmLgU6IgR3?= =?us-ascii?Q?gxnz6CC4RRIy5BELJqKsF3nkw2MyjqGzRYok+Aqhnj1/YKrP9Javc2ANYLBZ?= =?us-ascii?Q?Y3yJcyENd+OxB2YEW+aj88zoInXXsA90qQx0OHZ/l2ycdqk6NUIQTT5NF8bh?= =?us-ascii?Q?xhVOJGsQvSW/jshrt3UIZArR?= X-OriginatorOrg: wavecomp.com X-MS-Exchange-CrossTenant-Network-Message-Id: cea00d44-4fbe-4c02-7803-08d91b63552d X-MS-Exchange-CrossTenant-AuthSource: MW3PR22MB2299.namprd22.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 May 2021 07:46:09.7736 (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: RfH0jdRNx9sHd5v67jZ/G4LxRhHBxC/dpx8e9Dz1I6pM/TfVSlRnPU3x/Fp9A06G4ID3V83Of5BakapdD8FX+qc6WQosg2WmVtN9cmux+Os= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR2201MB1344 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: Chao-ying Fu , Faraz Shahbazker , "Maciej W . Rozycki" Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" 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 | 525 +++++++++++- sim/common/sim-bits.h | 5 + sim/common/sim-fpu.c | 346 ++++---- sim/common/sim-fpu.h | 17 +- sim/mips/Makefile.in | 1 + sim/mips/configure | 21 +- sim/mips/configure.ac | 15 +- sim/mips/cp1.c | 417 +++++++++- sim/mips/cp1.h | 6 + sim/mips/interp.c | 5 +- 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 | 110 ++- 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 ++++ sim/testsuite/mips/utils-r6.s | 0 30 files changed, 4423 insertions(+), 278 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 create mode 100644 sim/testsuite/mips/utils-r6.s --=20 2.25.1