Received: by 2002:a17:906:d7a2:b0:96f:a786:ac5c with SMTP id pk2csp2766873ejb; Wed, 24 May 2023 12:13:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7FYRI5MIvQVYKYZ2YPl6bs0HA+v1Xc7brztzT2Ow3MQoHUgiP2sTWLxgkx3Fm+Onj6JWRi X-Received: by 2002:a37:68c8:0:b0:75b:23a1:8318 with SMTP id d191-20020a3768c8000000b0075b23a18318mr7719126qkc.19.1684955604717; Wed, 24 May 2023 12:13:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684955604; cv=none; d=google.com; s=arc-20160816; b=HJuYMjXQSk3p1tHDLFBrb6ytfaBwQbEZIefzrt9XUp1EjA0/ZWkA5fy1nukGul4VVj JNdM0MCcJQOHzN0SPs+NyrkjrK0WhuWHPLPRcxpRiRRezIDk/GFHkxQtlq3xxBLihx30 bGERE+eICFIisqYHr5ch/C4KaybUI9AokTDbBE1X+c96rMrGqv3pM0vzZPp4eq6J3iuI dM9+QC8NXwa62z9pmNozBCpsn/Ktsuyt5jNv8HYX8A0b4JSDVRzF5eH9L1wHYQE8FDnu 0539BfB4PgZWM5eV91n1+tIntft4W6hjEm9uFaup5cbS7f1P8iEBajo5kEZ4qFK6ZmjB pj8g== 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 :in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=N6NxrZMdWccwqs4vNCW4LU++Q2ar/ayHy5pVrDVUv80=; b=TcmYxeUIpvrffCRYqN4++DtItxMABxhZ7AGH/cCbB3YbXURxHQaYXW0lEqlnSbNzEc g+JwHQ2D/wGdvNi0B1eb5zFZvtf4W/rR+UXhWIxaj75ozQQm4SbIC/KdN7WSsab263QV ztLMhrUvOp8C8I4nTJRm6im27L0fl6Smg14JcG4mErx/f+uBIWSuIW2jth2ZFIx9TvFv sp2zpSybjwHdB54hVXt4nFxB8cxpt4b18Li4+wHyXiKgfWcsDbR89MdAaugoc1aM860S AqNu+G7HObmbxNTcetQBCO4rX5MBzaOxU+Vc7LB4n9njuCPHXIbAigB0kr6mpLEgnksA g8jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P8jJPvNN; 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 i1-20020a37c201000000b0075c4ca59bb9si466089qkm.343.2023.05.24.12.13.24 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 May 2023 12:13:24 -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=P8jJPvNN; 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 1q1tuo-0006ls-1N; Wed, 24 May 2023 15:12:54 -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 1q1tue-0006kp-Il for qemu-devel@nongnu.org; Wed, 24 May 2023 15:12:46 -0400 Received: from mail-pl1-x62c.google.com ([2607:f8b0: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 1q1tuZ-0008VM-17 for qemu-devel@nongnu.org; Wed, 24 May 2023 15:12:43 -0400 Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-1ae4c5e12edso4964315ad.3 for ; Wed, 24 May 2023 12:12:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684955557; x=1687547557; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=N6NxrZMdWccwqs4vNCW4LU++Q2ar/ayHy5pVrDVUv80=; b=P8jJPvNN2B6Uhk8MFPCtUIM4MOVYpwnfclbGGFJVRS4tY4iYOIEZlGA8JMW6ylpqvh CrDr0Lq4knMHm+WQMtq4U1CLhjHEDXoEj+VWEY3BDpNyjC2AGkEJR3D1H6zOIUXReju8 rmHN0kRmh+MJUSS1R2qX3RfxDG45RHKvr0sd/6Lb0AVMCsxJQnPRVEp7m0r2/kf6EsJp t4Jj9nTpXAacHhrQwgJlELm9TGbkD7oRNyBQYfXioIqaocGoL9ARSF1++DqpwT37kYfn iiltQYJFhWHEaNiWqpoGB4ZvOW5AGdm//QUFnbdoXUFvIZAlWATKgKqFpkg5xOrIVKu/ CrLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684955557; x=1687547557; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=N6NxrZMdWccwqs4vNCW4LU++Q2ar/ayHy5pVrDVUv80=; b=KZSf4H1XprZfTiC1vencTP62DmRo56TZHCzGSQV62ZWMJ2qeCxtVCDNrCMWnV62EKT LUBugF0fIHJrC2x95uE/HDBNyIQOGjyJEXk0q4bcqzBQKNV+e9oEVW2w7b2chiqJHSlH CqNLSBa/QUUfy+jbXrip8bcGIGX2W1ckMQt287kqhaXacJqIVsLZEVqkRWMqdA3ZGkpO odDvAcYZ7fR3H0tFWNTbIvrjZbCwpqe1L6ad7iJVEYLL6FVOZC5yvPJhDCWXgJNeZZ1a kqsFuMExBBONOwXopBEPZlonSP/BQY8jQu3lgDicEZdJNppyPM4XIRhkUoXhyHZ/Co9W W/wA== X-Gm-Message-State: AC+VfDyApc7mvlTYYJS5j+5CK7UZt0xBx/Z22sYU3ztRa0x0Z4INtp/I qvV9j3AReMwccVAB9H5fy3tVXw== X-Received: by 2002:a17:902:f689:b0:1ac:8148:8c40 with SMTP id l9-20020a170902f68900b001ac81488c40mr22406756plg.53.1684955557585; Wed, 24 May 2023 12:12:37 -0700 (PDT) Received: from ?IPV6:2602:ae:1598:4c01:6b03:9af2:33c1:3d6b? ([2602:ae:1598:4c01:6b03:9af2:33c1:3d6b]) by smtp.gmail.com with ESMTPSA id iw10-20020a170903044a00b001ac2f98e953sm9082224plb.216.2023.05.24.12.12.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 24 May 2023 12:12:37 -0700 (PDT) Message-ID: <1c197199-8033-2089-e660-90657397e4ee@linaro.org> Date: Wed, 24 May 2023 12:10:31 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 07/10] hw/arm/realview: Move 'mpcore_periphbase' to RealviewMachineClass Content-Language: en-US To: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= , qemu-devel@nongnu.org Cc: Peter Maydell , qemu-arm@nongnu.org, Thomas Huth References: <20230524145906.33156-1-philmd@linaro.org> <20230524145906.33156-8-philmd@linaro.org> From: Richard Henderson In-Reply-To: <20230524145906.33156-8-philmd@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::62c; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62c.google.com X-Spam_score_int: -21 X-Spam_score: -2.2 X-Spam_bar: -- X-Spam_report: (-2.2 / 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, NICE_REPLY_A=-0.107, 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: bd8IuOOXey2j On 5/24/23 07:59, Philippe Mathieu-Daudé wrote: > - int is_mpcore = 0; > + bool is_mpcore = rmc->mpcore_periphbase != 0; > bool is_pb = rmc->is_pb; > uint32_t proc_id = 0; > uint32_t sys_id; > ram_addr_t low_ram_size; > ram_addr_t ram_size = machine->ram_size; > - hwaddr periphbase = 0; hwaddr periphbase = rmc->mpcore_periphbase; bool is_mpcore = periphbase != 0; would be cleaner and require fewer changes. Otherwise, Reviewed-by: Richard Henderson r~