From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id prGKKafeCmKragAAWB0awg (envelope-from ) for ; Mon, 14 Feb 2022 17:58:47 -0500 Received: by simark.ca (Postfix, from userid 112) id 92C161F3C5; Mon, 14 Feb 2022 17:58:47 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.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 1C1F71EA69 for ; Mon, 14 Feb 2022 17:58:46 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 417E73858408 for ; Mon, 14 Feb 2022 22:58:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 417E73858408 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1644879525; bh=mER8rwULyIM3yr4zDruynzIIIjNcODoAsi06PbNYIMQ=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=VE3rt410+O4j3jTEqbD2o+JsTq1iWkKFFigjHuAGQS6AgzeD3+v0zx1ceuXv/w4eX FMb+WHzyytO0en24evh5hn7Wlnuweag+1pxyn/ug6rX1uC5xOGOp04T60FMFit+lJA tXCrCHtXr5SID/8HwWKOhcjuBCu9ehnIKxhYVweQ= Received: from smtp2.axis.com (smtp2.axis.com [195.60.68.18]) by sourceware.org (Postfix) with ESMTPS id 33A973858D3C for ; Mon, 14 Feb 2022 22:58:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 33A973858D3C To: Subject: [PATCH 00/12] A little TLC for the simulators (in particular CRIS) MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8BIT Message-ID: <20220214225824.AC90A20439@pchp3.se.axis.com> Date: Mon, 14 Feb 2022 23:58:24 +0100 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: , From: Hans-Peter Nilsson via Gdb-patches Reply-To: Hans-Peter Nilsson Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" It's been a while since my last simulator commit, and it seems cris-sim has broken since then. I started pursuing a memory framework bug and a 2.5x performance regression (found largely salvageable by --disable-sim-hardware). This set of commit takes it and the testsuite back to a state usable for my gcc autotester and (in part at least) for use in autotesting itself. Hopefully more to come soonish (no promises) as the "linux" part of the test-suite is still broken, though the "newlib" parts are fixed. Committed; general parts as authorized committer. sim cris: Correct PRIu32 to PRIx32 sim/testsuite/cris: Assembler testcase for PRIx32 usage bug sim/testsuite: Set global_cc_os also when no compiler is found sim/testsuite/cris/c: Use -sim3 but only for newlib targets sim/testsuite/cris/hw/rv-n-cris/irq1.ms: Disable due to randomness sim/testsuite: Support "requires: simoption <--name-of-option>" sim/testsuite/cris: As applicable, require simoption --cris-900000xx sim cris: Unbreak --disable-sim-hardware builds sim: Fix use of out-of-tree assembler and linker when testing sim: Add sim_dump_memory for debugging sim/testsuite/cris: Remove faulty use of basename in C tests sim/testsuite/cris: If failing compilation, mark C tests as errors sim/Makefile.in | 7 +- sim/common/sim-memopt.c | 10 + sim/configure | 356 +++++++++++++++++------- sim/cris/sim-if.c | 10 +- sim/m4/sim_ac_toolchain.m4 | 21 +- sim/testsuite/cris/asm/endmem1.ms | 47 ++++ sim/testsuite/cris/asm/io1.ms | 1 + sim/testsuite/cris/asm/io2.ms | 1 + sim/testsuite/cris/asm/io3.ms | 1 + sim/testsuite/cris/asm/io6.ms | 1 + sim/testsuite/cris/asm/io7.ms | 1 + sim/testsuite/cris/c/c.exp | 18 +- sim/testsuite/cris/c/openpf1.c | 8 +- sim/testsuite/cris/c/stat3.c | 3 +- sim/testsuite/cris/hw/rv-n-cris/irq1.ms | 1 + sim/testsuite/lib/sim-defs.exp | 61 ++++ 16 files changed, 431 insertions(+), 116 deletions(-) create mode 100644 sim/testsuite/cris/asm/endmem1.ms -- 2.30.2 brgds, H-P