Received: by 2002:a17:906:b10c:b0:992:abd5:50eb with SMTP id u12csp2959906ejy; Tue, 4 Jul 2023 07:52:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlEWYmvqVDt+nhB1pQQGxuAw8YrqJIO++2dq2bRfu1djxW5fa9s2rgTzbzafU60uFietB0it X-Received: by 2002:ad4:4446:0:b0:635:a1f5:545a with SMTP id l6-20020ad44446000000b00635a1f5545amr12271761qvt.41.1688482366508; 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=SrtwRZArQvRg9lyIyQ7csKkbdUhMBlYrNOBBBBt+z1kElAZkCkdaL+WXbkglEUhC8t kibqVMnh0s7HaRcoZ5sPC2lkbLeEa86MuKAVplKH2FTO17x8QwN5oE+WkQiNiCd/L0RW LoCn3f3BQOrnknCOzFWFeJ+ocXyV8nxCi+YJ0/YbsNPaFYGxV+42E428uRUr5TkdLC+i QG1c04iAYry3H7WtYUzK23+1ZsH3XWWJP3CfE5smGwgwExvdrmdLni9UNddcYRTPVzTo bewD5ttx2OtcM8itobS+YP0Gvy3IlEmo4uljj3ra2fc/7PYzcoy6EiyPUjsLb7tFRRfX ITBQ== 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=fuQZe3XRjPZACj1AnRN5etMd/RJ6Idz/Do4XaXb3jXDFWmMBHeEGbTMT8fC3btCWzf eQIv99SqXGkDQq50t/lnSqllvd3VOs7VDOyq2XkDW45/Nl08csq72VRRB1w+sTQjukRy DRKALx0XKZW3tZ69BhQchh53Fv3lDrF8ZpyrBgRdCG/cCCJDVmtIE4OmPSRzu4KeUekz 5PSFyxCr8kxnk6+Zldgfd+lIOGDdxyc9IMwrqljAkFNHYfVS15vVXHhIW7y6y+iIQX/G RaZn0uQiJDlEPAP1guhx/0Os6OAuq0Fwoq9NjMmsNgRGgtZYE0RZF32N8NI9JJDmQTD4 0Jmw== 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+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=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 q6-20020a056214194600b0063013f95025si13231150qvk.461.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+alex.bennee=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+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=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=20Mathieu-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=20Mathieu-Daud=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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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+alex.bennee=linaro.org@nongnu.org Sender: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: IM3oSL3r2bVs 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 --- 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; -- 2.38.1