Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1pIalJ-0005uk-Nj for mharc-qemu-riscv@gnu.org; Thu, 19 Jan 2023 14:39:49 -0500 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 1pIalG-0005uS-1P for qemu-riscv@nongnu.org; Thu, 19 Jan 2023 14:39:48 -0500 Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pIalE-00049H-2I for qemu-riscv@nongnu.org; Thu, 19 Jan 2023 14:39:45 -0500 Received: by mail-ej1-x632.google.com with SMTP id qx13so8371951ejb.13 for ; Thu, 19 Jan 2023 11:39:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=rhBn4Q7sapQ8G6+OZKi0juSaT8tNnKBzYGlBIyGz9qg=; b=K96WSCCze2T1PoOoHxAoArqDvLwuVixNLm9ugEYSmWz9pdHGDlfWTj2KXhExECno6P l1Jf7nes8YCyDRg3LkpSHNJ6GvwntB4aBH7ChraKgILmFiuzvtggkENxZ6bCaXoDktyT jwbBm1izyE6zsIHOU4U+nAPtviVsNEPUU8FkQFzHWSPgasKdqAXU2I/d97n4Er0I94u5 rI3n0qtHhKJ4e2rz+At5ddhkC0zwu0yivyeia0OVU+DgNU23tJ2KRtH8CbQq98IoGO9y pnEvreSz+dOVzfXHWrZ/v0ZRIryQPoNIVLbB/HrxgdC6GYUpDc+Kp4D5dZWGNPgQyFfK 5mDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=rhBn4Q7sapQ8G6+OZKi0juSaT8tNnKBzYGlBIyGz9qg=; b=NC6d8tmZMzxsYGW++bvLvRTks0JkuFmLTLsfkjb3jfW5Ecgd4gaOuttdEMCwWD13fh jL0xR8WzOjiMKG16MxJDg8hnyVa3rTf/f0ryQUYOSkxB3zc8Pfgq3mCiI4fKXyQJcBCj QsZkkrAHBRKkT+9UCi9BAGy0kE+xXLoE18VkpjB4JnzovUbKtRmXQsKJF5IrV/zh/mjI +o/mLD6doMTv1vaQZXYz4w6xwyiVuD8uOXoUittCh5//CPC9p2eUuZSzfcxBivYJtZmq Nrt54xfnFEsG5apgMNBQ5emAzwQJ811vmiiUlnW7d06xWU0InOL593bU5Yvo61yAS7o2 0V7A== X-Gm-Message-State: AFqh2krU9gLC2E65fYTRkSaFgEM+GhnPn2rXSuok2PdByE4S6sIi1bPK eshRa4p3YZK51YkxYmU5TOGFZw== X-Google-Smtp-Source: AMrXdXsfKSAfOeucBuDSIlNoPLsB5XN/W0A4C4bsutZM0tidCP4nYd519MGmBRV7mKckIIehtjo4gg== X-Received: by 2002:a17:906:cb95:b0:86a:addf:880a with SMTP id mf21-20020a170906cb9500b0086aaddf880amr11998771ejb.65.1674157182229; Thu, 19 Jan 2023 11:39:42 -0800 (PST) Received: from [192.168.1.115] ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id hq15-20020a1709073f0f00b0084c4b87a69csm16751510ejc.153.2023.01.19.11.39.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 Jan 2023 11:39:41 -0800 (PST) Message-ID: <91833080-784f-06cf-70ae-67936040ab78@linaro.org> Date: Thu, 19 Jan 2023 20:39:40 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH v3 4/7] hw/riscv: simplify riscv_compute_fdt_addr() Content-Language: en-US To: Daniel Henrique Barboza , qemu-devel@nongnu.org Cc: qemu-riscv@nongnu.org, alistair.francis@wdc.com References: <20230119191728.622081-1-dbarboza@ventanamicro.com> <20230119191728.622081-5-dbarboza@ventanamicro.com> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= In-Reply-To: <20230119191728.622081-5-dbarboza@ventanamicro.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::632; envelope-from=philmd@linaro.org; helo=mail-ej1-x632.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.094, 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-riscv@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jan 2023 19:39:48 -0000 On 19/1/23 20:17, Daniel Henrique Barboza wrote: > All callers are using attributes from the MachineState object. Use a > pointer to it instead of passing dram_size (which is always > machine->ram_size) and fdt (always machine->fdt). > > Signed-off-by: Daniel Henrique Barboza > --- > hw/riscv/boot.c | 6 +++--- > hw/riscv/sifive_u.c | 4 ++-- > hw/riscv/spike.c | 4 ++-- > hw/riscv/virt.c | 3 +-- > include/hw/riscv/boot.h | 2 +- > 5 files changed, 9 insertions(+), 10 deletions(-) Reviewed-by: Philippe Mathieu-Daudé