From patchwork Sat Oct 6 00:19:22 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 189634 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id F1A462C0325 for ; Sat, 6 Oct 2012 10:19:37 +1000 (EST) Received: from localhost ([::1]:49320 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKI7C-0006ra-K3 for incoming@patchwork.ozlabs.org; Fri, 05 Oct 2012 20:19:34 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37050) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKI75-0006rM-Sk for qemu-devel@nongnu.org; Fri, 05 Oct 2012 20:19:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TKI74-0003p0-S9 for qemu-devel@nongnu.org; Fri, 05 Oct 2012 20:19:27 -0400 Received: from cantor2.suse.de ([195.135.220.15]:50850 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKI74-0003oH-LY; Fri, 05 Oct 2012 20:19:26 -0400 Received: from relay2.suse.de (unknown [195.135.220.254]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id B9540A2FD7; Sat, 6 Oct 2012 02:19:25 +0200 (CEST) From: Alexander Graf To: qemu-devel qemu-devel Date: Sat, 6 Oct 2012 02:19:22 +0200 Message-Id: <1349482762-25765-1-git-send-email-agraf@suse.de> X-Mailer: git-send-email 1.6.0.2 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-Received-From: 195.135.220.15 Cc: Richard Zenkert , "qemu-ppc@nongnu.org List" , qemu-stable@nongnu.org Subject: [Qemu-devel] [PATCH] PPC: Bamboo: Fix memory size DT property X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Device tree properties need to be specified in big endian. Fix the bamboo memory size property accordingly. Signed-off-by: Alexander Graf CC: qemu-stable@nongnu.org --- hw/ppc440_bamboo.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/ppc440_bamboo.c b/hw/ppc440_bamboo.c index c198071..9286438 100644 --- a/hw/ppc440_bamboo.c +++ b/hw/ppc440_bamboo.c @@ -59,7 +59,7 @@ static int bamboo_load_device_tree(target_phys_addr_t addr, { int ret = -1; #ifdef CONFIG_FDT - uint32_t mem_reg_property[] = { 0, 0, ramsize }; + uint32_t mem_reg_property[] = { 0, 0, cpu_to_be32(ramsize) }; char *filename; int fdt_size; void *fdt;