From patchwork Tue Jul 4 14:50:04 2023 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: 698949 Delivered-To: patch@linaro.org Received: by 2002:adf:fcc5:0:0:0:0:0 with SMTP id f5csp2315108wrs; Tue, 4 Jul 2023 07:52:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlF5oEVFQrT0Tebtfa8vvVOJpvquMi7W2Bt97x3V9EEc6J4r21FUsN7vBF1Z7kwxmiicMmpe X-Received: by 2002:a05:6214:174:b0:632:23c7:d043 with SMTP id y20-20020a056214017400b0063223c7d043mr12052929qvs.52.1688482366760; Tue, 04 Jul 2023 07:52:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688482366; cv=none; d=google.com; s=arc-20160816; b=Ftv6RpEMMmTaBgVAm1JDqVy1SSfCv+Ws1cc+ipIlNhK6rnv33KPbKWHLMGD7ZnwvXA uc0fjLtt/hDnRmXyv7dOV7zwSxs81Yuj5s67Y0NYKfBDHPDAqv2+K58iX1Nbu32FVxJS xl4uV8wm0Gob7gYuuxzYIwx9GxEmZuifX0hlufh+GJqDl4/LFeDabf+R9wzoI6aveW5E f7Mk2CThLfwiFWO9Xtj01TXlm9ye8PfoQ4ezZs8hqWhvKaKdLVIdnvkLuiD+jIxCqP1H s0+1P9yF7EJH8pW+WgxtjrnLn67m+v2VpO/o3uI3nNDa0I/gnveJh38CA+dUuqOIAE5O HFJg== 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=XqL6wbsoBKcWRQEkNfzmSMwKA1cCT5j0UC3IEqUISV4=; fh=Lngrjms14biHE1uwg3hJItOsHUc/fKOP3kWz84zgU0I=; b=j0CM3lAsNE5olf2q5hbWIZHWvhbtSDEk8uPxJIBgpWYWUx5/bHTQgdHXRTsEr8a1IV fqdbLU5AQESL1efcBIYJ4DQ8KH076/uf9tbwAS39mrbSC5epSV6yA8y8y79CFywbH+u3 W8lI3WrOS4MVPskG37Y77xvrniOwqShaEUTNP2L2vmwgfCxlLefKZeQxGZ5JgIiDXoXV xrS60M/TUiH2Y4ieUXPnGjtTN6WoZdD9jvLM1oO98oeJa1myffhEwJv8ZJ6NyoxBwt6m 4NoYTCbDkSbMSa8Iev8AkeqPX2P3NMYcaLaCqVCieiHaZEALSvhuqffirIIxidVPeUc7 uVqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FQZ+59a8; 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 gf15-20020a056214250f00b0062388040b4csi13724446qvb.203.2023.07.04.07.52.46 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Jul 2023 07:52:46 -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=FQZ+59a8; 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 1qGhNI-0004qQ-TH; Tue, 04 Jul 2023 10:51:28 -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 1qGhN7-0004Ga-0s for qemu-devel@nongnu.org; Tue, 04 Jul 2023 10:51:20 -0400 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qGhN4-00039M-Sh for qemu-devel@nongnu.org; Tue, 04 Jul 2023 10:51:16 -0400 Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-3141fa31c2bso5550938f8f.2 for ; Tue, 04 Jul 2023 07:51:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688482272; x=1691074272; 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=XqL6wbsoBKcWRQEkNfzmSMwKA1cCT5j0UC3IEqUISV4=; b=FQZ+59a8s3fLXBux9rcwdzHsa/HQWeASBJLIRjGIQB21cjKiVuleUhShtM+yRaVodA i20u2SqR6j1ZHtFeR+1JzzXt07b1gAUQLl1v1Gfc2Z1Q/pkDn3uIq7+Z0CFNPpafUY57 j5rrjg+WZdneduS62OoeiLHplR1c7y8tK/LfJzmtd1HQlEKfHrzHhxB7AzJf5aPzzf7A MhylTQ6ig1e4Iw6RBRCWgp8aO5ZhwWN1xfN3lWsaXGru2dq+ocTrZnMl+2EsphPMsSO/ WE/vaFiZ97ZY8qC90vmHI5TY5P3l9EMwhwwmCI/9H1xlPaAoM1Al6tqaIbsoN6cXCh4o nfYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688482272; x=1691074272; 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=XqL6wbsoBKcWRQEkNfzmSMwKA1cCT5j0UC3IEqUISV4=; b=hxitxY5v7zoIzPW1P3ZpPZKgWFg7HVTrqWZ4KtwpDcWlIoJ2/bwzZAfUBCnweCPA2P 9/XkM0woSG7D4tGpdFraknyQHqNynX0lK6IIh+5p9OlOybUuO8aSh8/CPQi885eGEE39 PofjXvv3CEG9UzNPVc6mq1gHUne0F9UW6u4BrcjzFXp6MGzMXIsiq8pF5jhkN06J2Hmf nuruoBxKiyTfnwdxR0eW+FdYcuo4EGwZPKJRbSNwRdPpdJsTyjUjfRavEme6etaggV9m 7AOPTNtDe2c8zwPSxLziOPhU8548RSMlKa4//YA+9qbbhjVngeuTSR9jLtzJ9HLVcmwh prfg== X-Gm-Message-State: ABy/qLb53euOO2FYLXSY1pcNyGx6Y3ajJM9f9sOINtL3slXngVmBtYOk bOLefEzw3UJr9toj0pn3NHHNr0bg9845lIGr8QI= X-Received: by 2002:adf:f049:0:b0:313:f708:5d4 with SMTP id t9-20020adff049000000b00313f70805d4mr12107156wro.24.1688482271995; Tue, 04 Jul 2023 07:51:11 -0700 (PDT) Received: from localhost.localdomain ([176.176.157.122]) by smtp.gmail.com with ESMTPSA id p5-20020a5d68c5000000b00314283a525bsm10137803wrw.93.2023.07.04.07.51.11 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 04 Jul 2023 07:51:11 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Thomas Huth , qemu-arm@nongnu.org, Peter Maydell , Paolo Bonzini , Mark Cave-Ayland , Sergey Kambalin , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= Subject: [PATCH v2 11/19] hw/timer/arm_timer: Convert ArmTimer::freq to uint32_t type Date: Tue, 4 Jul 2023 16:50:04 +0200 Message-Id: <20230704145012.49870-12-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230704145012.49870-1-philmd@linaro.org> References: <20230704145012.49870-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=philmd@linaro.org; helo=mail-wr1-x42a.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, T_SCC_BODY_TEXT_LINE=-0.01 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 In preparation of accessing ArmTimer::freq as a QOM property, convert it to uint32_t (so we'll be able to use DEFINE_PROP_UINT32). Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Peter Maydell Reviewed-by: Richard Henderson --- hw/timer/arm_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/timer/arm_timer.c b/hw/timer/arm_timer.c index 4ef34b0f60..2b5fb75577 100644 --- a/hw/timer/arm_timer.c +++ b/hw/timer/arm_timer.c @@ -33,7 +33,7 @@ typedef struct { ptimer_state *timer; uint32_t control; uint32_t limit; - int freq; + uint32_t freq; int int_level; qemu_irq irq; } ArmTimer;