From patchwork Sat Apr 13 05:23:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 788568 Delivered-To: patch@linaro.org Received: by 2002:adf:e6ca:0:b0:346:15ad:a2a with SMTP id y10csp1041158wrm; Fri, 12 Apr 2024 22:25:31 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWFdzPOVr2ovIzXqBvL8rz1Uzy1bG2bzIHWVU/DAWt6TTWKoSXh2eBa3HDmuar/eBA9sadv1+dhHZpccM4htvXM X-Google-Smtp-Source: AGHT+IGoHIu6xRBc2zPOhhkW+MAceg25qDtbpSn+aIp4ckxoRWC3Q90EhRZI3uTpHlZ5L642dIJr X-Received: by 2002:a05:620a:1a25:b0:78d:4404:2423 with SMTP id bk37-20020a05620a1a2500b0078d44042423mr6478259qkb.48.1712985931171; Fri, 12 Apr 2024 22:25:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1712985931; cv=none; d=google.com; s=arc-20160816; b=mwri2UyNoiEspF/OvdIp6QcFPG4A1Mttidvf6DxC/ldDyVz/4GWme2X4YFiBB3Py85 2udH/nSsw0QmoLQbqvU5SRpT3eJM/mNaJRa0Owub6viHew/Xoh3m5E2kyB8CuzuS+yBs 4/hsxABJXJGn/UCgiB5p7aGZ/hHeJOzG/oYW/A4fFnCTFVXFwUC4OR8Q68G6wyHYnFHu CEAK1bTUhaMetNhS7n7ggpi5z/UQd4UEStg5OS3rH9wjysB4IEYfAYiQ8W3WqlY6Uc4C z3vyrp2scsAsgOG/035dS04aQt5lND0GNBbqtwd+J8AJ/JBKA6TSy8Axuud4rka0YihO a2nQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=9gZgFEisTuojaEU6BFwPKIxl+WemPaSElaJvjDQjwig=; fh=8mBO+FwhNjUD9ALhUxcYEwIlwc/hLQI6+6+QuDX34lg=; b=d41OFnSnVCM7b9aOacWT75Njf/ZC7a/zHMfejnGO0cVtkmn/LWILKzfJZzksPXeqpw /7XzBvMrlerir05DoLI3flKBDKuWFhceArbooS50kVKEHQbmy0IGgw3gsxN1AhIxhoQ9 Iq9PNPWBYua0vy3qlBt6GtZjSzXblYHvNaUvt6MkSq7p4pScOKmTZwgwTlYnd3mYVtiu UUE2zIR3tWEIxdDD/sk6iJ+8QEi/rzqngA+HgfGdI72iKv0Arfo59nqHXyhwcX6tbfxh 0+kkchE7nmMfnOXoyqCX2Q2r8ShZgWQ5O7cCJrIZTC7TxbIdtMwjR8xrgRNoEh2K011v 3UDg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pt92eSZ0; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id yf3-20020a05620a3bc300b0078a4fe9e84asi5240332qkn.758.2024.04.12.22.25.30 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 12 Apr 2024 22:25:31 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pt92eSZ0; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rvVrZ-0001sE-76; Sat, 13 Apr 2024 01:23:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rvVrX-0001rx-D7 for qemu-devel@nongnu.org; Sat, 13 Apr 2024 01:23:39 -0400 Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rvVrV-0001cd-Va for qemu-devel@nongnu.org; Sat, 13 Apr 2024 01:23:39 -0400 Received: by mail-pg1-x52b.google.com with SMTP id 41be03b00d2f7-53fbf2c42bfso1160676a12.3 for ; Fri, 12 Apr 2024 22:23:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712985816; x=1713590616; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=9gZgFEisTuojaEU6BFwPKIxl+WemPaSElaJvjDQjwig=; b=pt92eSZ0O8g6iLFsuoDFwc/6W9ermKjnzX42Jq6KeItrIkjPXotikOOVJjJ8qc6IMw L56L+FAnYvfImHd9cW/dJI442ofDFo95Lpx32erHPaxJZi301/oSWPkmwrXVeiQS5Bko XK8ZNqQBQAs3TBiOXFzzMONaCoL4DQtIeG8QCoFYibbjbXcKkq2ix6AgZrPPc+jJSygY ZF93LQPjidFrp6WlqWY3xGyITwGoD6fc3FfTkYWNEdDI7H8cf2JENtWHcu1AQmf7p5Kl FFO1eL025y8dfugnHahj1D6dFpYJQeI0kga0XA94vzkhheunBYLF2WlUEzVDSqRonsuw GIhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712985816; x=1713590616; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=9gZgFEisTuojaEU6BFwPKIxl+WemPaSElaJvjDQjwig=; b=ZJT1RDonDQHY0PNumsY+On/H0j9s5DMrKVsnrb7z8JnV75yU/Wr0qkSS0hWg1I3TrV z5WzQnzeVtbjLjj+Ioh1f4RpeiV8EGsMaLYsEerP9t5LJqvGgNAvGgC96o07G/bGfUk2 TVam5Ezorz2A7Bi80tPL2vy3br6vZ1ijnCoGJ4ohRRdr8zInKnGCVFelkPWG/HigSxsw cHxkkXHAmnZEyZ/f6Phgw97xZepyT9e21tZL4xonBDcgkRz/PXavCYWXrC+Jq2m3xbVv +gIiUKp1loZVn6jKZOQ/zsXediKVElJRmNkO3u58/9g6aMGrc+OPmNa03CS2aGUSS6m9 9PJg== X-Gm-Message-State: AOJu0YyjU6HYBu5eGuzkRLIeF4RAg2XvhAyifYjuM3MPTmrFfaOnY89J qoNpNaznUq/FS338e4+CAQjpotZJ+nnsmA5hphJemZcTQt0buUhWw7FefA1pA8+3X50FqttsOK4 l X-Received: by 2002:a05:6a21:7899:b0:1a8:4276:670c with SMTP id bf25-20020a056a21789900b001a84276670cmr5864215pzc.17.1712985815878; Fri, 12 Apr 2024 22:23:35 -0700 (PDT) Received: from stoup.. (174-21-72-5.tukw.qwest.net. [174.21.72.5]) by smtp.gmail.com with ESMTPSA id v19-20020a17090abb9300b002a0544b81d6sm3564074pjr.35.2024.04.12.22.23.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 22:23:35 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: edgar.iglesias@gmail.com, philmd@linaro.org Subject: [PATCH 0/6] disas/cris: Use GString instead of sprintf Date: Fri, 12 Apr 2024 22:23:27 -0700 Message-Id: <20240413052333.688151-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::52b; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x52b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org More sprintf cleanup encouraged by the Apple deprecation. Probably there's a more minimal patch. On the other hand, there's certainly a larger cleanup possible. r~ Richard Henderson (6): disas/cris: Untabify disas/cris: Remove TRACE_CASE and related code disas/cris: Drop with_reg_prefix disas/cris: Use GString in print_with_operands and subroutines disas/cris: Remove struct cris_disasm_data disas/cris: Improve output of register names disas/cris.c | 2498 +++++++++++++++++++++----------------------------- 1 file changed, 1070 insertions(+), 1428 deletions(-) Reviewed-by: Edgar E. Iglesias