From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id dyoVHnRa+mHsSgAAWB0awg (envelope-from ) for ; Wed, 02 Feb 2022 05:18:28 -0500 Received: by simark.ca (Postfix, from userid 112) id 5D6B71F3BA; Wed, 2 Feb 2022 05:18:28 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,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 E44651ECEB for ; Wed, 2 Feb 2022 05:18:23 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 33D19385E004 for ; Wed, 2 Feb 2022 10:18:23 +0000 (GMT) Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50116.outbound.protection.outlook.com [40.107.5.116]) by sourceware.org (Postfix) with ESMTPS id 6790A3858D1E for ; Wed, 2 Feb 2022 10:17:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6790A3858D1E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=syrmia.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=syrmia.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ep0GXoWTe/a6rpbzGa1Ve8Z26UWfWSeuPbf6ZTrPW0Xsgatx4H30CDv4nisC197Jy7+aTQ/uhRei5G8jzVueHzIb/3pu8OawF5fv5LX7w+hB0kk4P+Q5ktWGpbmCiXdl8Pt63g8cdPudGRJk0jga3FRsitXcwAnoD6qOKcItNcjeixKWCdMY+oSqLuXR9cE1kbnM2nHRukgnQO2SdVWK7neSA3hOtUj4bSGBssnm4eCGpiKjcPakDDOSQhd2/0h5eky3Auv16o2x53PyN74EjhhUKr7gEBYqEbFfSrBGmZC33YyDyeMi6jsj7lr73HHhktgUtSv0kQStUJWZCLUvrg== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=sjUMq3zh+Ip7zhWJ2wSvheL5jUrIkX+e7MWD2ZHpYpo=; b=Ni8eqeOqdQkLVLd21QYcaaq1/deAqBu58hWxLJ1pFamZQt7M96DtpWdqD6qyfBP39D2NALha0D8rfvA2lqKzRc7GehWMHEmT4bwuCREZk9ImwKP2NtW1LcQc9sM7+9jR+iBj7mELVk/LZX/L7zP8iItA1g08AuSS8b0QsoVgQQc48OSuWSeYn1hQUMNM+OuNKoqopH9EW5UfgQ5Md4MXMO/KEesYC7l4RdyNY168/tXf2ua2TAMi+3Grny5uYxBkTNBKoXod3LNwfccDGTB100sl5Yok41TlSKKHlb2BaMYW/Ln0Pkrndk9B9zzAyjGBdEQK3EQ6FakppEUJGpkU/w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=syrmia.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sjUMq3zh+Ip7zhWJ2wSvheL5jUrIkX+e7MWD2ZHpYpo=; b=p+6yPjTafmKSMhH1tvow5r91C1cDs+dpmu0tHkHXhkZnLiCV601bz5S8cNNpEO+HfFghK93NtgQzs6QwQk99G5jcCjwmuO7rb9cOPkKqBujAR/6yOB8dzq4L4UZOT9A9plz0J6/lWywR0wGxibeNMYKMaRhWfienXgMbsZUidQk= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=syrmia.com; Received: from VI1PR03MB4208.eurprd03.prod.outlook.com (2603:10a6:803:51::25) by AM0PR03MB3924.eurprd03.prod.outlook.com (2603:10a6:208:6e::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.12; Wed, 2 Feb 2022 10:17:43 +0000 Received: from VI1PR03MB4208.eurprd03.prod.outlook.com ([fe80::2403:1065:f4bd:86c5]) by VI1PR03MB4208.eurprd03.prod.outlook.com ([fe80::2403:1065:f4bd:86c5%6]) with mapi id 15.20.4951.012; Wed, 2 Feb 2022 10:17:43 +0000 From: Dragan Mladjenovic To: gdb-patches@sourceware.org Subject: [PATCH v5 0/4] sim: Add support for MIPS32/64 revision 6 Date: Wed, 2 Feb 2022 11:17:21 +0100 Message-Id: <20220202101725.23671-1-Dragan.Mladjenovic@syrmia.com> X-Mailer: git-send-email 2.17.1 Content-Type: text/plain X-ClientProxiedBy: VI1PR0601CA0041.eurprd06.prod.outlook.com (2603:10a6:800:1e::51) To VI1PR03MB4208.eurprd03.prod.outlook.com (2603:10a6:803:51::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 16596271-82b3-4df6-a9c3-08d9e6353fef X-MS-TrafficTypeDiagnostic: AM0PR03MB3924:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1443; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vYnqMDlRN4PHYlkLAtOtdgP4mc5AIx+2sQNpyrf0PJIssq9R9/o7UuvZdmy9nXVQIWtwVu3SgZq8m3nlDyENIE4fncmrQoS3LOe6R5/o4wQXlPQ8BGo+xxH8FflIGgXl2DiIJngm8pGsInxSj+QE0Gh2v6lhO1PGgaR7HqJsQgx1J//vCjM9yYF7MRxQYuFRyWq63pqpk3Y99kILCuTfbPR+E/ScGmQu8B1dkNwYH0HlFRNm3e+EKN66Vf3IPaHdvudVlBSobZGt06RyF1MqOFJmzvg+VV2SyVGstr72GtbxDN8FU3NeyZ1KDNHAktaPGTpm/e61uWbSKUkdnMRcTeSNKicqasFUtZdK8BL41qxBT3uhlLXxdZtsfHaLdxYYH0mjzn6Z+wgeAvVyrzeDFkM6erJtt3G4WRLkdpyB2k2SQqn26I02v9lMEGH7dn2mQ8sObZCh/Hgi5qXkkpDhnhJDRaTE7kW3gn6Uw05V5EoMZ55ruV4qYk4hnd5vaAxk86oC6ei+tZqAL6cgfret5XikP7IZJDLmUtrBMGP9qLBHO5Iw68YBvTClIyVbXJ+jkMdevLNHY1K9eGG83qzMt5KlvFq4uxbEDw4FESWvE5OewdSaWUxtv/+jjF8VukFu5hW2FbTTGjdbqyfEruCay+UybsZWafF/lQEFB/26a0ylkCoSdRVzt3pcnw93fQN+7jJqy+ihiP5BNASgSxHu/w== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR03MB4208.eurprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(39840400004)(396003)(366004)(346002)(376002)(136003)(2616005)(186003)(26005)(1076003)(508600001)(4326008)(66476007)(8936002)(66556008)(8676002)(83380400001)(38100700002)(38350700002)(66946007)(5660300002)(6486002)(86362001)(6916009)(54906003)(6506007)(6512007)(6666004)(316002)(36756003)(2906002)(52116002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?aKiBY7ky/afRPoA5jKjg+Vt76AQ/BKVw0PjUuOqjzGUi6lr0+m/WMeiNohvl?= =?us-ascii?Q?u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r0FB/Bu5FcMHt/G+k0tX+hXi?= =?us-ascii?Q?29Mdbr9J7yObi/hAoeGGesQzm29XbIbDWThsS4q5Jm9Mqfsbn6tCKXCcWG6Z?= =?us-ascii?Q?Gt0LJtr3AR961Mfl0BWB4OPWtmHc4AypKTrC3soAWHOb37bBJs5j/Noo1Ktx?= =?us-ascii?Q?bDwJONGDaC7KY5OdBDtaKfuN0agcGW/JcJtWDuWVYtDa9DLNPXRUA05owD56?= =?us-ascii?Q?M/cm6Q+QWtvnYsgpSbvLXdbWk9qlGNWMXx3SQxHe5k/2tTh+zkhaODyNTY2H?= =?us-ascii?Q?86+zJWsqZonnVYZZqp9XbIpHoq/A/+mD2r4FR2cxVARjyyWppUs4bkQHcMOV?= =?us-ascii?Q?G5vWTx7BiOwu5F6L3UbBgc0ihYczhNJHINwzoAS6JOemU/IhA3yHJvd1fWWi?= =?us-ascii?Q?lSHt9AX+wgeaSFjfRHajLmkbgCBEfzdbxV+8m/1Kjec+DZo/csObyXGAdKw6?= =?us-ascii?Q?Mi2wcRHXP95jC7yvXSFP2Sb0C7X5g1xSxwJBKx3MNHivkC931S4h/nm6YZaJ?= =?us-ascii?Q?dHxMwjn2SL5qOmJAst/BBUZhK5F03aMwu2POwPYMdagabbuJpYxtxE/dXefE?= =?us-ascii?Q?Mlpk2dAdCEUXiPzini5KzdH0clHQ6c3fBj5ZDccmQeoI2+lrDtmN/W8GSdXm?= =?us-ascii?Q?QPTckr7CHDXpsf2lhwXQtsKHDqOfObSe4Rfqg7nIf+WPDJVEw2ikkBz26FAQ?= =?us-ascii?Q?MhyMvFJFWfc1PMTOMAIYw9MIZD2jewJ1Vx9wIYy9St9+q82gKyHgLhBaHTZz?= =?us-ascii?Q?1UctAQ=3D=3D?= X-OriginatorOrg: syrmia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 16596271-82b3-4df6-a9c3-08d9e6353fef X-MS-Exchange-CrossTenant-AuthSource: VI1PR03MB4208.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Feb 2022 10:17:43.1212 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 19214a73-c1ab-4e19-8f59-14bdcb09a66e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: NlIJdl6RQ/hYRzFkQZX0QAlM4J95ZaPTBhIcqIa8g2CxfGko/nP7GkvMG9ELjN7ZbBNFty/uv7AyJUj2jIe7WPaQ9EDTIJjaqxQUgPjI9Yk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR03MB3924 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 , "Maciej W . Rozycki" Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" This is a refresh of the previous series by Faraz excluding GDB support. Patches should be Werror clean now. The original summary is below: 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 (4): 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 sim/common/sim-bits.h | 5 + sim/common/sim-fpu.c | 324 ++++---- sim/common/sim-fpu.h | 61 +- sim/mips/Makefile.in | 1 + sim/mips/configure | 22 +- sim/mips/configure.ac | 20 +- sim/mips/cp1.c | 432 +++++++++- sim/mips/cp1.h | 6 + sim/mips/interp.c | 6 +- sim/mips/micromips.igen | 4 +- sim/mips/mips.igen | 381 ++++++++- sim/mips/mips3264r2.igen | 30 + sim/mips/mips3264r6.igen | 1226 ++++++++++++++++++++++++++++ sim/mips/sim-main.h | 97 ++- sim/testsuite/mips/basic.exp | 72 +- 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 | 291 +++++++ 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 ++++ 28 files changed, 3965 insertions(+), 252 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 -- 2.17.1