From patchwork Fri Oct 20 20:43:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 736310 Delivered-To: patch@linaro.org Received: by 2002:adf:dd81:0:b0:32d:baff:b0ca with SMTP id x1csp502213wrl; Fri, 20 Oct 2023 13:48:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHrHjNSa2oT3FwBUS4xVTBE1/0cmVcbLKOEfXj5Img8ZJpllnqrnLzVoqmEFyh/ITuHBMl9 X-Received: by 2002:a05:620a:4004:b0:774:9dc7:ce3d with SMTP id h4-20020a05620a400400b007749dc7ce3dmr3014641qko.12.1697834936695; Fri, 20 Oct 2023 13:48:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697834936; cv=none; d=google.com; s=arc-20160816; b=WhQ1UV3HHWmE0p4FnzY6sDHcclqQnAN+D56eVKY2g/uq0hoXUsEEWj1wb4nXuSZz9S 5mzbxYSiSswXKDvHQLWbVrA9FrPOm625ZlL7IPu79Sj+IdNLucrBqdr2p1XvKV4E5iTJ 09fd+qaxdVBI6l8Vve65eX+k5Jem6/18bZBRhoEePuPm12wuoqHyydOpxhhlcQWIRB9j ySR1hC2cbSKoMp8ujhoi/1AyfmuuN1OCK9GMPqRoOYVqT+56HC3g3x7jW0vwsN0DE9hW k6JD7XiphA3jQvo9wvi3g4j3X+IotD4YStzc9YFZKxhF4oJBYvHb2XVYhdLTkpUuzNmm s/MQ== 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=ZidGRalLwOY7DoY6Z59b3Uu+qUnyVDoR533dncqCuKQ=; fh=f2WZoDMBYjCKWIIOoPI+rQtxlv4fmOm4u+dLdQLqpOk=; b=qsMQ8i9nUzQY7FbEun2gL906MHHee5vw+2MfaW1TVl2Zq6V5hYjV2VsRIvsS4KeNsv oRLNYsGbtqEUbk0LycCbL+m1cdL5/H4xqpAfmVcs4KvbfZHPkGvtlGuZdfWQY7n/dKCr xkCqQO4Pv+MoM9TTupQTk8uuCHW48/htQVwMSYwWp7nDaoqUMPlcpG6Nh51CFTLjLFH9 hMIeMfgzUKRWC3ryZIF0xOfdbQwafd79Lc0P5p8Q31H3Qq93lVNwziiAc1MgZDw7fg0U FYwHbtBJM72aVktFjUEnyAg9IApjCd1hg7EOxWr2o2Eirc+hkIkAgOPi9U5DPyQUhdXo M8Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TYyWj7ER; 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 p9-20020a05620a22a900b0076f39f669desi1914134qkh.51.2023.10.20.13.48.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 20 Oct 2023 13:48:56 -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=TYyWj7ER; 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 1qtwOs-0001no-Pb; Fri, 20 Oct 2023 16:47:18 -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 1qtwOr-0001mr-6Q for qemu-devel@nongnu.org; Fri, 20 Oct 2023 16:47:17 -0400 Received: from mail-pg1-x52d.google.com ([2607:f8b0:4864:20::52d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qtwOp-0001Aq-Km for qemu-devel@nongnu.org; Fri, 20 Oct 2023 16:47:16 -0400 Received: by mail-pg1-x52d.google.com with SMTP id 41be03b00d2f7-565334377d0so918087a12.2 for ; Fri, 20 Oct 2023 13:47:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697834834; x=1698439634; 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=ZidGRalLwOY7DoY6Z59b3Uu+qUnyVDoR533dncqCuKQ=; b=TYyWj7ERVwiTehoWl00ATJF3C1+RyoSnGT/VNvkrM1PWbxtXNNGSoFwgVWZAEwLmUq JFtknzcOtU1deVFFbOUAil3zJzx8U3uyJstChaVfHXo/0HjWufzgIbRiYssx/egsqWWO NoteOkWjBTDXnEw3WwaRrJVcqpTN16Ig/amgtkbqCk7Hh/Z0onDZmxvEZE3RpbP3izPW G+yK5wAQcjZTOvI7IsVjK3AyjtRXZPaDf5jExeKRTQHx2RMRp7PDnRbAdt6tRndo+J69 MRtEHgplp4u7tAcL4eezjsJ6ZqtFw4ni25oQVNoDFBwZEHxTWSg0vk1zDu+YajpeT+4r skNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697834834; x=1698439634; 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=ZidGRalLwOY7DoY6Z59b3Uu+qUnyVDoR533dncqCuKQ=; b=G+ygttd6OIINY9a75TG2f+9chg1w5F+EOvKGMHoacjN+hNwcknYy+/LIAt12XtD1ZN fB0QHXf3/BFgp2WVQmZmVGXjFx5EkaGfzS4XZxvE1YOv5Vq3663VebuPd0h4o7hZzNJA ufxbCHxV7FZkPjq3pVAtiNZcrB56yDcJXXJB80zRT4j+IS4qicgmbKHr+HBSXevST8A3 Vqkzc9dnFu3udiSIDTo5pALIo23f9ba4Zr/A3/cDKzG0sVXWw94mA0n5TKOUL6mABEmB YwDuSZmQ9FjX4kEsUoLzq6qSoXDlyXS5mwfpWHgqNQ580epDzhC9Gj+VtW4g9344p3kB N2Tw== X-Gm-Message-State: AOJu0YwQiafCZIFciT9oIqqRayhMg6yIUOZTfz9W7k0KO5vPP8NMRpaU UnpPiB2b/K1uNZxZC9GQFnKPFeItQTxWfwDc/XA= X-Received: by 2002:a05:6a20:da9f:b0:16b:c20d:fcd1 with SMTP id iy31-20020a056a20da9f00b0016bc20dfcd1mr3758942pzb.21.1697834834380; Fri, 20 Oct 2023 13:47:14 -0700 (PDT) Received: from stoup.. ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id u7-20020aa78487000000b00694fee1011asm1946775pfn.208.2023.10.20.13.47.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 13:47:13 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: deller@gmx.de Subject: [PATCH v2 46/65] hw/hppa: Use uint32_t instead of target_ureg Date: Fri, 20 Oct 2023 13:43:12 -0700 Message-Id: <20231020204331.139847-47-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231020204331.139847-1-richard.henderson@linaro.org> References: <20231020204331.139847-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::52d; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x52d.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 The size of target_ureg is going to change. Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé --- hw/hppa/machine.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hw/hppa/machine.c b/hw/hppa/machine.c index 85682e6bab..1f09b4b490 100644 --- a/hw/hppa/machine.c +++ b/hw/hppa/machine.c @@ -391,9 +391,9 @@ static void machine_HP_common_init_tail(MachineState *machine, PCIBus *pci_bus) true, EM_PARISC, 0, 0); /* Unfortunately, load_elf sign-extends reading elf32. */ - firmware_entry = (target_ureg)firmware_entry; - firmware_low = (target_ureg)firmware_low; - firmware_high = (target_ureg)firmware_high; + firmware_entry = (uint32_t)firmware_entry; + firmware_low = (uint32_t)firmware_low; + firmware_high = (uint32_t)firmware_high; if (size < 0) { error_report("could not load firmware '%s'", firmware_filename); @@ -420,9 +420,9 @@ static void machine_HP_common_init_tail(MachineState *machine, PCIBus *pci_bus) true, EM_PARISC, 0, 0); /* Unfortunately, load_elf sign-extends reading elf32. */ - kernel_entry = (target_ureg) cpu_hppa_to_phys(NULL, kernel_entry); - kernel_low = (target_ureg)kernel_low; - kernel_high = (target_ureg)kernel_high; + kernel_entry = (uint32_t) cpu_hppa_to_phys(NULL, kernel_entry); + kernel_low = (uint32_t)kernel_low; + kernel_high = (uint32_t)kernel_high; if (size < 0) { error_report("could not load kernel '%s'", kernel_filename);