Received: from eggs.gnu.org ([208.118.235.92]:57482) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gf3ao-000742-IO for qemu-devel@nongnu.org; Thu, 03 Jan 2019 09:03:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gf3al-0005MO-9l for qemu-devel@nongnu.org; Thu, 03 Jan 2019 09:03:26 -0500 Date: Thu, 3 Jan 2019 15:03:20 +0100 (CET) From: BALATON Zoltan In-Reply-To: <20190102041507.GN27457@umbus.fritz.box> Message-ID: References: <16d6e1b4987d30c11ace0211e9d6a57303784467.1546394798.git.balaton@eik.bme.hu> <20190102041507.GN27457@umbus.fritz.box> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Subject: Re: [Qemu-devel] [PATCH 4/8] ppc4xx: Use ram_addr_t in ppc4xx_sdram_adjust() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Gibson Cc: qemu-devel@nongnu.org, qemu-ppc@nongnu.org On Wed, 2 Jan 2019, David Gibson wrote: > On Wed, Jan 02, 2019 at 03:06:38AM +0100, BALATON Zoltan wrote: >> To avoid overflow if larger values are added later use ram_addr_t for >> the sdram_bank_sizes parameter to match ram_size to which it is >> compared. > > So, technically I think these should be 'hwaddr' (which represents a > guest physical address) rather tham ram_addr_t which > represents... something subtley different I've never properly > understood. I don't understand the difference either but ram_size in MachineState where this value comes from is ram_addr_t now so I've left is for now. If someone knows which type should this be can change it in another patch later. Regards, BALATON Zoltan