From patchwork Wed Jun 13 06:21:33 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peter A. G. Crosthwaite" X-Patchwork-Id: 164550 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 D69D9B6FC4 for ; Wed, 13 Jun 2012 16:21:52 +1000 (EST) Received: from localhost ([::1]:42105 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Segxg-0007vA-Ux for incoming@patchwork.ozlabs.org; Wed, 13 Jun 2012 02:21:48 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60895) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SegxW-0007ud-Fa for qemu-devel@nongnu.org; Wed, 13 Jun 2012 02:21:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SegxU-0007lV-D4 for qemu-devel@nongnu.org; Wed, 13 Jun 2012 02:21:38 -0400 Received: from mail-bk0-f45.google.com ([209.85.214.45]:61309) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SegxU-0007lK-6F for qemu-devel@nongnu.org; Wed, 13 Jun 2012 02:21:36 -0400 Received: by bkwj10 with SMTP id j10so173493bkw.4 for ; Tue, 12 Jun 2012 23:21:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type :x-gm-message-state; bh=qRZ26hSh0lP+caaLHWs3tYBLzhuKlSIZbjaANCpR6LY=; b=ZoRb4ewBWxtEYK9xNnr4+Hmyv27RL03+W1E1UhMZmHhn2PTx6ZgJUAg+w93EN6vpwW QGTlXpcUQuzp8581Dpj+dfl3GCJm9hU0jFmQrgSpUAdqHC4wcNSwRTg5JZVTI76pDsSN bbNbEEtoYM+GOwS6qLmMt+pR2BS5PGayA9xM1hk17NxoxARTe0FhEj7Z7Soefo/7Lj3S tBtb+RKiBSVBbay7FHq2ZMyRe5oFAkY+h6pK+sUD7P6ViIpWb4/BC4DwGrKCvEAg1sQX OjQQ8ka9sXjJKmfyuFxaKl2AsZamebffx40USPGXCprmAf9eQNjZ45HQhxeMS447XPcG 7lxg== MIME-Version: 1.0 Received: by 10.205.133.193 with SMTP id hz1mr13142655bkc.31.1339568493347; Tue, 12 Jun 2012 23:21:33 -0700 (PDT) Received: by 10.205.81.68 with HTTP; Tue, 12 Jun 2012 23:21:33 -0700 (PDT) Date: Wed, 13 Jun 2012 16:21:33 +1000 Message-ID: From: Peter Crosthwaite To: "qemu-devel@nongnu.org Developers" , Paolo Bonzini X-Gm-Message-State: ALoCoQnatszbQCM9TEk3okGUnXYv/Zc1eIr+nX/hAzRZ3XQ1CHMXoIa4SERG3KpfnsbZvjchxnRQ X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.214.45 Cc: "Edgar E. Iglesias" , Anthony Liguori , =?ISO-8859-1?Q?Andreas_F=E4rber?= , John Williams , Peter Maydell Subject: [Qemu-devel] Prop-ptr and Xilinx. 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 Hi Paolo, Im testing your revisions the the xilinx ip around getting rid of the pointer props (your prop-ptr branch on your github). First up theres a typo in the machine model stuff, heres the fix: I corrected this and ran it but SIGABRT'ed on some assertion in the qom framework: peterc@PetaLogix-ws2:~/Petalogix/Internal/plgx_install/qemu-upstream-regression/petalinux-vx.x/software/petalinux-dist$ gdb -x ../../etc/qemu/gdb_args --args qemu-system-microblazeel -M petalogix-ml605 -kernel images/image.elf -dtb ./hack.dtb GNU gdb (GDB) 7.1-ubuntu Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /home/peterc/Petalogix/Internal/plgx_install/qemu-upstream-regression/petalinux-vx.x/tools/linux-i386/petalogix/bin/qemu-system-microblazeel...done. (gdb) r Starting program: /home/peterc/Petalogix/Internal/plgx_install/qemu-upstream-regression/petalinux-vx.x/tools/linux-i386/petalogix/bin/qemu-system-microblazeel -M petalogix-ml605 -kernel images/image.elf -dtb ./hack.dtb [Thread debugging using libthread_db enabled] warning: no loadable sections found in added symbol-file [New Thread 0x7ffff63fc700 (LWP 18082)] ** ERROR:/home/peterc/Petalogix/Internal/plgx_src/qemu/qom/object.c:150:type_get_parent: assertion failed: (type->parent_type != NULL) Program received signal SIGABRT, Aborted. 0x00000000005ac96b in raise (sig=) at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:42 42 ../nptl/sysdeps/unix/sysv/linux/pt-raise.c: No such file or directory. in ../nptl/sysdeps/unix/sysv/linux/pt-raise.c (gdb) bt #0 0x00000000005ac96b in raise (sig=) at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:42 #1 0x00000000005c08e0 in abort () #2 0x0000000000565c14 in g_assertion_message () #3 0x000000000056615c in g_assertion_message_expr () #4 0x00000000004cdb83 in type_get_parent () #5 0x00000000004cdd82 in type_initialize () #6 0x00000000004ce3bd in object_new_with_type () #7 0x00000000004ce43d in object_new () #8 0x00000000004cdecf in object_interface_init () #9 0x00000000004cdf82 in object_init_with_type () #10 0x00000000004ce093 in object_initialize_with_type () #11 0x00000000004ce3e4 in object_new_with_type () #12 0x00000000004ce43d in object_new () #13 0x0000000000461a9b in qdev_try_create () #14 0x0000000000461a18 in qdev_create () #15 0x000000000052149b in petalogix_ml605_init () #16 0x000000000049cee9 in main () (gdb) More info to come as I trace. Regards, Peter diff --git a/hw/petalogix_ml605_mmu.c b/hw/petalogix_ml605_mmu.c index 37866f4..e718183 100644 --- a/hw/petalogix_ml605_mmu.c +++ b/hw/petalogix_ml605_mmu.c @@ -126,7 +126,7 @@ petalogix_ml605_init(ram_addr_t ram_size, xilinx_timer_create(TIMER_BASEADDR, irq[2], 2, 100 * 1000000); /* axi ethernet and dma initialization. */ - DeviceState *dma = qdev_create(NULL, "xilinx-axidma"); + DeviceState *dma = qdev_create(NULL, "xilinx,axidma"); DeviceState *eth0; eth0 = xilinx_axiethernet_create(&nd_table[0], XILINX_AXIDMA_PEER(dma),