From patchwork Thu Apr 18 19:25:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 789837 Delivered-To: patch@linaro.org Received: by 2002:adf:e6ca:0:b0:346:15ad:a2a with SMTP id y10csp735115wrm; Thu, 18 Apr 2024 12:29:12 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUEO5qg4XlMJURBLY61d8NyB29EGBv8A24/4exaAZOuntAwGNTESmIvbf7ycDHxCIllchOPpQ4Jjr/VI0SEwDsQ X-Google-Smtp-Source: AGHT+IFs3x5+bMppkmJNDQh+svOpSDFc2x3VtDSQUaGLMPHxToz7gk7myizvCO0VoVa2DUXOBSQk X-Received: by 2002:a0c:e34b:0:b0:69f:74f7:a96a with SMTP id a11-20020a0ce34b000000b0069f74f7a96amr290008qvm.11.1713468552475; Thu, 18 Apr 2024 12:29:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1713468552; cv=none; d=google.com; s=arc-20160816; b=V+0cIq/G+jHKwYvEU+0X/UA3WgbNORI/rLJMMHBbCqjvZFXxbspSgOcvg4KEquhVli /vW/ofPXFU0iZ61y3oMCYPrmAOwjggDh3cIZOOyDFSt+m5cIAE+Bjln613LF0SDRj5lk JQcLuqTkCVaNx93SxE6uEIhiGeQoYuNVuDdOy0on3Kbm23xvwywWKCndZPGcS5CpxtyG qAtrBtYz/PEvwb4H/0YNFxm+QnmquE5zpTTQ2imr8zanHnqEHK41D4xLWuQd6mDVjnni KBJKom8NBrAQxy3NntMQF3V1FLcKydqWjzrcMA1XbkUeo27p6/1V0Agqv7v0XsK4HeFP xpyw== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=KYZzt8h+xfLtt/f9EJkGkN8nzUXLIiHe8tAqM2sJg8A=; fh=fi4OOL5LLKZmC9PqRD+yn8P6yA3DeQ5NXYzL+Gop0Ag=; b=DOp1Uz8u4QD49aSaiKV6rJ1aet6M8m0f/j/QC25UqUC+Y0D8ysKhnJaHtOWTD9a5Li Q+IruvJ2cO8dCQSoQhx0LSiHEIaezQZWJhI96e3WQ0k2PtBo11CctgQF7QeOhIqjr6IU GwHIrqhYo4anhdyA+RbzP1bAVjAkvmz06GHpvWk7SczRttlJ+81r2zkclB/TwB8JGnw8 Ox+a71dIIAxVR4EczFQyOvWG0CKqpALc1pQ4LQEhHhrG60UiOosFLebSyXhTazMZwGQl 9MBBWGQLmsQ4cfoY17rvMRs38BhAnfpE0gCI2+YWJHMEQWWLJURCDV1MKILzi6WswcRR n03Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AkYNy8cZ; 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 s4-20020a0cf644000000b006a0598e3f6csi1155887qvm.404.2024.04.18.12.29.12 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 18 Apr 2024 12:29:12 -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=AkYNy8cZ; 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 1rxXRJ-0003Ui-C6; Thu, 18 Apr 2024 15:28:57 -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 1rxXPJ-0008JO-Sw for qemu-devel@nongnu.org; Thu, 18 Apr 2024 15:26:59 -0400 Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rxXPH-0007Xh-57 for qemu-devel@nongnu.org; Thu, 18 Apr 2024 15:26:52 -0400 Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-a52223e004dso121561966b.2 for ; Thu, 18 Apr 2024 12:26:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713468408; x=1714073208; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=KYZzt8h+xfLtt/f9EJkGkN8nzUXLIiHe8tAqM2sJg8A=; b=AkYNy8cZkrIeC2UlaNyVYL+Dl8CmRsdJxbOf0Q5Ja1NxpWPTEkYuiKXG8fK/Y1Exoa 5e30y84zHPVWK/RXqc3HZ7SUFrkbZtEPIh5CxObnd51HaSdvEzbSmhSnp7ONtRsoIUZs Zy0tR+inQKdLuFafn6WVW8P8jRpjihOX8SYJGj/TKrH8obeaNiQXGdZ3Gs0XkuWB8zwc orthIHWxjlnsCUGGzSLgaNwMndfXyMslvlCtUvkxHYTJ8ijR1SGtAvfkamqIkpeDTMOE Hd42Lf6YK2QY7Kmq0hZ5X2h7EewqNBwQHzQ/1ZvHTqbqlDfueNPlShMhdeeRVmaFpKhD Y0bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713468408; x=1714073208; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KYZzt8h+xfLtt/f9EJkGkN8nzUXLIiHe8tAqM2sJg8A=; b=CLq5yL3sR8jwEOJZ1doB9ob1Ffkure3+yEAhhposOyH+bPHlv+rjlbeyE8s5+B8Cqz PE3uV9YQjNaQhv06wgpcWBB5uch7b+AG4R0kl8uGTSY2EhH/sZfzk/1NkOhAC2LHFd6+ NCfdTeNbk06JRIFe2+/SgAnlfe/nGkEbF+AfA/OSEE/tYHIZ8qSB96TiU7fBc/FPfac5 G2qhTu9EGb5rHon+e8w4GWzZ0cDUD6RHbVdXQ+D2/RkyJlafCyb/dlyMrYZ3lkfqSzzc S2TTBmQfjvH+wPsH38hNYQiBknOV9lVEzDRGBjYA7I+wjGvpkbiA5yq6CAn0MVuX55ii E+aA== X-Gm-Message-State: AOJu0YzPgueeqEUPIx1kzWBstYMijfb4jCfq20zLUqdKenzPCB3zsAVx Q188RehoyKAXf2A02HSmk02ZazSPsDAnQ+qsKALjhQuS2dGuVA1ZGW8sqZ2XS91t9QLNE2n0i36 R X-Received: by 2002:a17:906:34da:b0:a52:2e08:207e with SMTP id h26-20020a17090634da00b00a522e08207emr43995ejb.77.1713468408261; Thu, 18 Apr 2024 12:26:48 -0700 (PDT) Received: from m1x-phil.lan ([176.176.151.213]) by smtp.gmail.com with ESMTPSA id u21-20020a1709064ad500b00a47423b4c33sm1255791ejt.128.2024.04.18.12.26.46 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 18 Apr 2024 12:26:47 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Richard Henderson , qemu-arm@nongnu.org, qemu-ppc@nongnu.org, qemu-riscv@nongnu.org, David Hildenbrand , =?utf-8?q?Alex_Benn=C3=A9e?= , Anton Johansson , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Mark Cave-Ayland , Artyom Tarasenko Subject: [PATCH 13/24] target/sparc: Replace abi_ulong by uint32_t for TARGET_ABI32 Date: Thu, 18 Apr 2024 21:25:12 +0200 Message-ID: <20240418192525.97451-14-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240418192525.97451-1-philmd@linaro.org> References: <20240418192525.97451-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::62c; envelope-from=philmd@linaro.org; helo=mail-ej1-x62c.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=unavailable 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 We have abi_ulong == uint32_t for the 32-bit ABI. Use the generic type to avoid to depend on the "exec/user/abitypes.h" header. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- target/sparc/gdbstub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/sparc/gdbstub.c b/target/sparc/gdbstub.c index 07ea81ab5f..ec0036e9ef 100644 --- a/target/sparc/gdbstub.c +++ b/target/sparc/gdbstub.c @@ -108,7 +108,7 @@ int sparc_cpu_gdb_write_register(CPUState *cs, uint8_t *mem_buf, int n) SPARCCPU *cpu = SPARC_CPU(cs); CPUSPARCState *env = &cpu->env; #if defined(TARGET_ABI32) - abi_ulong tmp; + uint32_t tmp; tmp = ldl_p(mem_buf); #else