Received: from eggs.gnu.org ([208.118.235.92]:35578) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T4Lii-0002DM-LB for qemu-devel@nongnu.org; Wed, 22 Aug 2012 20:56:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T4Lih-0005hg-H6 for qemu-devel@nongnu.org; Wed, 22 Aug 2012 20:56:24 -0400 From: Scott Wood Date: Wed, 22 Aug 2012 19:55:41 -0500 Message-ID: <1345683341-8236-2-git-send-email-scottwood@freescale.com> In-Reply-To: <1345683341-8236-1-git-send-email-scottwood@freescale.com> References: <1345683341-8236-1-git-send-email-scottwood@freescale.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH 2/2] PPC: e500: calculate initrd_base like dt_base List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org While investigating dtb pad issues, I noticed that initrd_base wasn't taking loadaddr into account the way dt_base was. This seems wrong. Signed-off-by: Scott Wood --- hw/ppc/e500.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/ppc/e500.c b/hw/ppc/e500.c index 1ccfd7c..60ddd85 100644 --- a/hw/ppc/e500.c +++ b/hw/ppc/e500.c @@ -553,7 +553,8 @@ void ppce500_init(PPCE500Params *params) /* Load initrd. */ if (params->initrd_filename) { - initrd_base = (kernel_size + INITRD_LOAD_PAD) & ~INITRD_PAD_MASK; + initrd_base = (loadaddr + kernel_size + INITRD_LOAD_PAD) & + ~INITRD_PAD_MASK; initrd_size = load_image_targphys(params->initrd_filename, initrd_base, ram_size - initrd_base); -- 1.7.9.5