From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id +VeWBcHfwmpnqjgAWB0awg (envelope-from ) for ; Sun, 04 Oct 2026 19:22:41 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=o2.pl header.i=@o2.pl header.a=rsa-sha256 header.s=s20261001 header.b=TPR9b06Q; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 0DDF01E050; Sun, 04 Oct 2026 19:22:41 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 3AE8A1E047 for ; Sun, 04 Oct 2026 19:22:40 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0A55D4BA23CC for ; Sun, 4 Oct 2026 23:22:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0A55D4BA23CC Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=o2.pl header.i=@o2.pl header.a=rsa-sha256 header.s=s20261001 header.b=TPR9b06Q Received: from mx-out.tlen.pl (mx-out.tlen.pl [193.222.135.145]) by sourceware.org (Postfix) with ESMTPS id B51314BA23C1 for ; Sun, 4 Oct 2026 23:22:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B51314BA23C1 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=o2.pl Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=o2.pl ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B51314BA23C1 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=193.222.135.145 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1791156131; cv=none; b=uIuRD7EuoAO1oW8QgYoFTYlj3lzGpnV6OTnPhL5hUuGiiR9VVMmfu1iwueR7JLyhFG+dJF9yf6WG9Qt/dfMVxIupHCFxt9ApI7zqGOuUYIolTCiTWIgELQsPSu5tksrwSc6QqqaFeEopVjKMLNS+BNL/VSrB5e9JBKpWEDA2qi0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1791156131; c=relaxed/simple; bh=CE3hKMTxHzK0f7OzBD3Q18gCK4zg1UAI43VaO3FuYW4=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=cQDEDyociFIfmM5IzEIolYv0xZcSHSTyczxLlr6FpbOu2Wn9J5aQ/2dUqnZewxMR/RjX0dAAWaYhPRliaO9ajq+0YteIPkK/cXE4RqFXxmTGzY7EVakWXHMXccnI3oCLqNmTA59C8nZvmuD2DkksazfCoFxx7d8d8QPWYesEX0c= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=o2.pl header.i=@o2.pl header.a=rsa-sha256 header.s=s20261001 header.b=TPR9b06Q DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B51314BA23C1 Received: (wp-smtpd smtp.tlen.pl 13025 invoked from network); 5 Oct 2026 01:22:07 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=o2.pl; s=s20261001; t=1791156127; bh=3sRqkfuwKfzymWX5sDCmRljNx3gfQR4trSAvZ3RkZts=; h=Subject:To:From; b=TPR9b06Q6COZ4FKhff75HDFwcrFabaTt/F4+WPUDXEBTraFlb4Ob9TfRkk661CzUM KjoW34+zlPpmBxppV+xubEMkzG8YZDQ4X7ccYpMAA4erG+M8uPB7oypyYI074JEfwj D2RA3VEKLabatxoxmF1+F4/bQ3t8VUQ/23CqcOD6C8oDUFOnVbfXrMv4zCPBoLDI5Q /gQ7u23rts/r7Thh+vW34BmSutwTGyFZjY/hfipvLaoflulSdnz7UD8i2hY6RxKCH5 vLsaBPM5GVAqcFEn1LI7fSdIcge7Yl1yKRvH8bNA4XIQ1UktGKF+UyI3BPUfFb5NDU JgkEzIyHpG0dA== Received: from [192.168.0.1] (ip-94-42-230-167.multimo.pl [94.42.230.167]) (envelope-sender ) by smtp.tlen.pl (WP-SMTPD) with TLS_AES_256_GCM_SHA384 encrypted SMTP for ; 5 Oct 2026 01:22:07 +0200 Message-ID: <0d6a8b27-8656-4f14-9043-1ffe7d1c50b7@o2.pl> Date: Mon, 5 Oct 2026 01:22:07 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4] H8/300: sim: Fix simulator hang caused by qsort on Windows/MinGW To: Simon Marchi , gdb-patches@sourceware.org References: <20260910020110.493902-1-jdx@o2.pl> <189579af-6c0d-4643-a26c-338dc34fe8b6@simark.ca> Content-Language: pl From: Jan Dubiec In-Reply-To: <189579af-6c0d-4643-a26c-338dc34fe8b6@simark.ca> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-WP-MailID: 477323593070976312745f05b3203c49 X-WP-AV: skaner antywirusowy Poczty o2 X-WP-SPAM: NO 0000000 [IeM8] X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org On 28.09.2026 16:00, Simon Marchi wrote: > On 9/9/26 9:58 PM, Jan Dubiec wrote: [...] >> table is sorted �the wrong way�, i.e. when ldm appears before mov > > The characters around "the wrong way" seem to suffer from bad encoding. I will repost the patch later with the quotes fixed. > I'd suggest using a > > SIM_ASSERT (p1->how != p2->how) > > above, since we never want two entries to compare equal. It doesn't work because the comparator doesn't use all the available sorting keys (i.e. the members of struct h8_opcode) when sorting the opcode table. /J.D.