From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:49552) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S49EW-0003Wc-E9 for qemu-devel@nongnu.org; Sun, 04 Mar 2012 06:04:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S49EU-0007t2-I4 for qemu-devel@nongnu.org; Sun, 04 Mar 2012 06:04:08 -0500 Received: from mail-pw0-f45.google.com ([209.85.160.45]:63878) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S49EU-0007rX-B4 for qemu-devel@nongnu.org; Sun, 04 Mar 2012 06:04:06 -0500 Received: by pbcuo5 with SMTP id uo5so3115132pbc.4 for ; Sun, 04 Mar 2012 03:04:03 -0800 (PST) MIME-Version: 1.0 From: "Peter A. G. Crosthwaite" Date: Sun, 4 Mar 2012 21:03:50 +1000 Message-Id: Subject: [Qemu-devel] [PATCH v1 0/5] Microblaze machine models and bootloader refactoring List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, edgar.iglesias@gmail.com, john.williams@petalogix.com Cc: "Peter A. G. Crosthwaite" , peter.maydell@linaro.org, paul@codesourcery.com From: "Peter A. G. Crosthwaite" Overhauled the microblaze bootloader process. Factored out the common boot code between petalogix_ml605 and petalogix_s3adsp1800 machine models into a dedicated microblaze bootloader (Patch 1). It now organised in much the same way as its handled in arm machine models (arm_boot.c) where the machine model calls load_kernel() after machine initialisation. Did some general cleanup of s2adsp1800, moved some cpu reset behaviour out of the machine model initialisation (patch 2) and #defined some magic numbers (patch 3). Hooked up Peter Maydells -dtb argument to the bootloader for dtb loading (patches 4+5). Peter A. G. Crosthwaite (5): microblaze: factored out common boot code petalogix_s2adsp1800: moved rst logic to rst fn petalogix_s2adsp1800: macro'd magic numbers qemu-options.hx: allow -dtb argument for all archs microblaze_boot: enabled -dtb argument Makefile.target | 1 + hw/microblaze_boot.c | 177 +++++++++++++++++++++++++++++++++++++++++ hw/microblaze_boot.h | 10 +++ hw/petalogix_ml605_mmu.c | 144 +++------------------------------ hw/petalogix_s3adsp1800_mmu.c | 147 +++++----------------------------- qemu-options.hx | 2 +- 6 files changed, 221 insertions(+), 260 deletions(-) create mode 100644 hw/microblaze_boot.c create mode 100644 hw/microblaze_boot.h -- 1.7.5.4