ARM: stellaris lm3s6965evb machine model broken
Public bug reported:
The Stellaris lm3s6965evb Machine model is broken:
qemu-system-arm -M lm3s6965evb -kernel qs_ek-lm3s6965.bin
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/peterc/Petalogix/Internal/plgx_install/qemu-upstream-regression/petalinux-vx.x/tools/linux-i386/petalogix/bin/qemu-system-arm...done. (gdb) r
Starting program: /home/peterc/Petalogix/Internal/plgx_install/qemu-upstream-regression/petalinux-vx.x/tools/linux-i386/petalogix/bin/qemu-system-arm -M lm3s6965evb -kernel qs_ek-lm3s6965.bin [Thread debugging using libthread_db enabled]
warning: no loadable sections found in added symbol-file <in-memory>
[New Thread 0x7ffff63fc700 (LWP 15156)]
qemu-system-arm: /home/peterc/Petalogix/Internal/plgx_src/qemu/hw/qdev.c:309: qdev_get_gpio_in: Assertion `n >= 0 && n < dev->num_gpio_in' failed.
Program received signal SIGABRT, Aborted.0x00000000006f4a2b in raise (sig=<value optimised out>) 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 0x00000000006f4a2b in raise (sig=<value optimised out>)
at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:42 #1 0x00000000007089a0 in abort () #2 0x0000000000702c15 in __assert_fail () #3 0x0000000000463ffa in qdev_get_gpio_in () #4 0x0000000000588f94 in armv7m_init () #5 0x000000000060c62a in stellaris_init () #6 0x000000000060cc4e in lm3s6965evb_init () #7 0x00000000004fdb11 in main ()
(gdb)
Bisection points at this commit:
commit 1e8cae4dfea2bcc91d3820dcf4f9284e7b0abb28
Author: Peter Maydell <[email protected]> Date: Wed May 2 16:49:42 2012 +0000
hw/armv7m_nvic: Make the NVIC a freestanding class
Rearrange the GIC and NVIC so both are straightforward subclasses of a common class, rather than having the NVIC source file textually include arm_gic.c.
** Affects: qemu
Importance: Undecided
Status: New
Signature · 63 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1028260
Title:
ARM: stellaris lm3s6965evb machine model broken
Status in QEMU:
New
Bug description:
The Stellaris lm3s6965evb Machine model is broken:
qemu-system-arm -M lm3s6965evb -kernel qs_ek-lm3s6965.bin
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/peterc/Petalogix/Internal/plgx_install/qemu-upstream-regression/petalinux-vx.x/tools/linux-i386/petalogix/bin/qemu-system-arm...done.
(gdb) r
Starting program: /home/peterc/Petalogix/Internal/plgx_install/qemu-upstream-regression/petalinux-vx.x/tools/linux-i386/petalogix/bin/qemu-system-arm -M lm3s6965evb -kernel qs_ek-lm3s6965.bin
[Thread debugging using libthread_db enabled]
warning: no loadable sections found in added symbol-file <in-memory>
[New Thread 0x7ffff63fc700 (LWP 15156)]
qemu-system-arm: /home/peterc/Petalogix/Internal/plgx_src/qemu/hw/qdev.c:309: qdev_get_gpio_in: Assertion `n >= 0 && n < dev->num_gpio_in' failed.
Program received signal SIGABRT, Aborted.
0x00000000006f4a2b in raise (sig=<value optimised out>) 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 0x00000000006f4a2b in raise (sig=<value optimised out>)
at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:42
#1 0x00000000007089a0 in abort ()
#2 0x0000000000702c15 in __assert_fail ()
#3 0x0000000000463ffa in qdev_get_gpio_in ()
#4 0x0000000000588f94 in armv7m_init ()
#5 0x000000000060c62a in stellaris_init ()
#6 0x000000000060cc4e in lm3s6965evb_init ()
#7 0x00000000004fdb11 in main ()
(gdb)
Bisection points at this commit:
commit 1e8cae4dfea2bcc91d3820dcf4f9284e7b0abb28
Author: Peter Maydell <[email protected]>
Date: Wed May 2 16:49:42 2012 +0000
hw/armv7m_nvic: Make the NVIC a freestanding class
Rearrange the GIC and NVIC so both are straightforward
subclasses of a common class, rather than having the NVIC
source file textually include arm_gic.c.
Signed-off-by: Peter Maydell <[email protected]>
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1028260/+subscriptionscc relevant maintainers (PMM and PB).
Quoted 121 lines · Peter Crosthwaite
Public bug reported:
The Stellaris lm3s6965evb Machine model is broken:
qemu-system-arm -M lm3s6965evb -kernel qs_ek-lm3s6965.bin
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from/home/peterc/Petalogix/Internal/plgx_install/qemu-upstream-regression/petalinux-vx.x/tools/linux-i386/petalogix/bin/qemu-system-arm...done. (gdb) r
Starting program:/home/peterc/Petalogix/Internal/plgx_install/qemu-upstream-regression/petalinux-vx.x/tools/linux-i386/petalogix/bin/qemu-system-arm-M lm3s6965evb -kernel qs_ek-lm3s6965.bin [Thread debugging usinglibthread_dbenabled]
warning: no loadable sections found in added symbol-file <in-memory>
[New Thread0x7ffff63fc700(LWP 15156)]
qemu-system-arm:/home/peterc/Petalogix/Internal/plgx_src/qemu/hw/qdev.c:309:qdev_get_gpio_in: Assertion `n >= 0 && n <dev->num_gpio_in' failed.Program received signal SIGABRT, Aborted.
0x00000000006f4a2bin raise (sig=<value optimised out>) 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
#00x00000000006f4a2bin raise (sig=<value optimised out>)at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:42 #1 0x00000000007089a0 in abort () #2 0x0000000000702c15 in __assert_fail () #3 0x0000000000463ffa in qdev_get_gpio_in () #4 0x0000000000588f94 in armv7m_init () #5 0x000000000060c62a in stellaris_init () #6 0x000000000060cc4e in lm3s6965evb_init () #7 0x00000000004fdb11 in main ()(gdb)
Bisection points at this commit:
commit
1e8cae4dfea2bcc91d3820dcf4f9284e7b0abb28Author: Peter Maydell <[email protected]> Date: Wed May 2 16:49:42 2012 +0000hw/armv7m_nvic: Make the NVIC a freestanding class
Rearrange the GIC and NVIC so both are straightforward subclasses of a common class, rather than having the NVIC source file textually include
arm_gic.c.Signed-off-by Peter Maydell <[email protected]>** Affects: qemu
Importance: Undecided
Status: New--
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1028260Title:
ARM: stellaris lm3s6965evb machine model brokenStatus in QEMU:
NewBug description:
The Stellaris lm3s6965evb Machine model is broken:qemu-system-arm -M lm3s6965evb -kernel qs_ek-lm3s6965.bin
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from/home/peterc/Petalogix/Internal/plgx_install/qemu-upstream-regression/petalinux-vx.x/tools/linux-i386/petalogix/bin/qemu-system-arm...done. (gdb) r
Starting program:/home/peterc/Petalogix/Internal/plgx_install/qemu-upstream-regression/petalinux-vx.x/tools/linux-i386/petalogix/bin/qemu-system-arm-M lm3s6965evb -kernel qs_ek-lm3s6965.bin [Thread debugging usinglibthread_dbenabled]
warning: no loadable sections found in added symbol-file <in-memory>
[New Thread0x7ffff63fc700(LWP 15156)]
qemu-system-arm:/home/peterc/Petalogix/Internal/plgx_src/qemu/hw/qdev.c:309:qdev_get_gpio_in: Assertion `n >= 0 && n <dev->num_gpio_in' failed.Program received signal SIGABRT, Aborted.
0x00000000006f4a2bin raise (sig=<value optimised out>) 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
#00x00000000006f4a2bin raise (sig=<value optimised out>)at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:42 #1 0x00000000007089a0 in abort () #2 0x0000000000702c15 in __assert_fail () #3 0x0000000000463ffa in qdev_get_gpio_in () #4 0x0000000000588f94 in armv7m_init () #5 0x000000000060c62a in stellaris_init () #6 0x000000000060cc4e in lm3s6965evb_init () #7 0x00000000004fdb11 in main () (gdb)Bisection points at this commit:
commit
1e8cae4dfea2bcc91d3820dcf4f9284e7b0abb28
Author: Peter Maydell <[email protected]>
Date: Wed May 2 16:49:42 2012 +0000hw/armv7m_nvic: Make the NVIC a freestanding class
Rearrange the GIC and NVIC so both are straightforward subclasses of a common class, rather than having the NVIC source file textually include
arm_gic.c.Signed-off-by Peter Maydell <[email protected]>To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1028260/+subscriptions
Quoted 9 lines · Peter Crosthwaite
Quoted 9 lines
The Stellaris lm3s6965evb Machine model is broken:
qemu-system-arm:/home/peterc/Petalogix/Internal/plgx_src/qemu/hw/qdev.c:309:qdev_get_gpio_in: Assertion `n >= 0 && n <dev->num_gpio_in' failed.Bisection points at this commit:
commit
1e8cae4dfea2bcc91d3820dcf4f9284e7b0abb28Author: Peter Maydell <[email protected]> Date: Wed May 2 16:49:42 2012 +0000
Quoted 7 lines
Quoted 7 lines
hw/armv7m_nvic: Make the NVIC a freestanding class
Rearrange the GIC and NVIC so both are straightforward subclasses of a common class, rather than having the NVIC source file textually include
arm_gic.c.Signed-off-by Peter Maydell <[email protected]>
Yes. I think this was OK in review but got committed at about the same time as a qdev reworking that meant that every class in the hierarchy could have qdev properties rather than the subclass always winning. There's a 'num-irq' property for both armv7m-nvic and its parent class arm-gic-common and I think they're clashing so we get the default value specified by the parent class rather than the subclass.
I'm going to try a fix suggested by Paolo of deleting the subclass property and instead adding an instance init fn which fiddles the superclass's default value.
-- PMM
** Attachment added: "Test vector to replicate bug"
https://bugs.launchpad.net/qemu/+bug/1028260/+attachment/3233691/+files/stellaris-test.tar
Signature · 63 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1028260
Title:
ARM: stellaris lm3s6965evb machine model broken
Status in QEMU:
New
Bug description:
The Stellaris lm3s6965evb Machine model is broken:
qemu-system-arm -M lm3s6965evb -kernel qs_ek-lm3s6965.bin
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/peterc/Petalogix/Internal/plgx_install/qemu-upstream-regression/petalinux-vx.x/tools/linux-i386/petalogix/bin/qemu-system-arm...done.
(gdb) r
Starting program: /home/peterc/Petalogix/Internal/plgx_install/qemu-upstream-regression/petalinux-vx.x/tools/linux-i386/petalogix/bin/qemu-system-arm -M lm3s6965evb -kernel qs_ek-lm3s6965.bin
[Thread debugging using libthread_db enabled]
warning: no loadable sections found in added symbol-file <in-memory>
[New Thread 0x7ffff63fc700 (LWP 15156)]
qemu-system-arm: /home/peterc/Petalogix/Internal/plgx_src/qemu/hw/qdev.c:309: qdev_get_gpio_in: Assertion `n >= 0 && n < dev->num_gpio_in' failed.
Program received signal SIGABRT, Aborted.
0x00000000006f4a2b in raise (sig=<value optimised out>) 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 0x00000000006f4a2b in raise (sig=<value optimised out>)
at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:42
#1 0x00000000007089a0 in abort ()
#2 0x0000000000702c15 in __assert_fail ()
#3 0x0000000000463ffa in qdev_get_gpio_in ()
#4 0x0000000000588f94 in armv7m_init ()
#5 0x000000000060c62a in stellaris_init ()
#6 0x000000000060cc4e in lm3s6965evb_init ()
#7 0x00000000004fdb11 in main ()
(gdb)
Bisection points at this commit:
commit 1e8cae4dfea2bcc91d3820dcf4f9284e7b0abb28
Author: Peter Maydell <[email protected]>
Date: Wed May 2 16:49:42 2012 +0000
hw/armv7m_nvic: Make the NVIC a freestanding class
Rearrange the GIC and NVIC so both are straightforward
subclasses of a common class, rather than having the NVIC
source file textually include arm_gic.c.
Signed-off-by: Peter Maydell <[email protected]>
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1028260/+subscriptionshttp://patchwork.ozlabs.org/patch/172820/
Patch that should fix this bug.
Signature · 63 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1028260
Title:
ARM: stellaris lm3s6965evb machine model broken
Status in QEMU:
New
Bug description:
The Stellaris lm3s6965evb Machine model is broken:
qemu-system-arm -M lm3s6965evb -kernel qs_ek-lm3s6965.bin
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/peterc/Petalogix/Internal/plgx_install/qemu-upstream-regression/petalinux-vx.x/tools/linux-i386/petalogix/bin/qemu-system-arm...done.
(gdb) r
Starting program: /home/peterc/Petalogix/Internal/plgx_install/qemu-upstream-regression/petalinux-vx.x/tools/linux-i386/petalogix/bin/qemu-system-arm -M lm3s6965evb -kernel qs_ek-lm3s6965.bin
[Thread debugging using libthread_db enabled]
warning: no loadable sections found in added symbol-file <in-memory>
[New Thread 0x7ffff63fc700 (LWP 15156)]
qemu-system-arm: /home/peterc/Petalogix/Internal/plgx_src/qemu/hw/qdev.c:309: qdev_get_gpio_in: Assertion `n >= 0 && n < dev->num_gpio_in' failed.
Program received signal SIGABRT, Aborted.
0x00000000006f4a2b in raise (sig=<value optimised out>) 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 0x00000000006f4a2b in raise (sig=<value optimised out>)
at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:42
#1 0x00000000007089a0 in abort ()
#2 0x0000000000702c15 in __assert_fail ()
#3 0x0000000000463ffa in qdev_get_gpio_in ()
#4 0x0000000000588f94 in armv7m_init ()
#5 0x000000000060c62a in stellaris_init ()
#6 0x000000000060cc4e in lm3s6965evb_init ()
#7 0x00000000004fdb11 in main ()
(gdb)
Bisection points at this commit:
commit 1e8cae4dfea2bcc91d3820dcf4f9284e7b0abb28
Author: Peter Maydell <[email protected]>
Date: Wed May 2 16:49:42 2012 +0000
hw/armv7m_nvic: Make the NVIC a freestanding class
Rearrange the GIC and NVIC so both are straightforward
subclasses of a common class, rather than having the NVIC
source file textually include arm_gic.c.
Signed-off-by: Peter Maydell <[email protected]>
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1028260/+subscriptions** Changed in: qemu
Status: New => Fix Committed
Signature · 63 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1028260
Title:
ARM: stellaris lm3s6965evb machine model broken
Status in QEMU:
Fix Committed
Bug description:
The Stellaris lm3s6965evb Machine model is broken:
qemu-system-arm -M lm3s6965evb -kernel qs_ek-lm3s6965.bin
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/peterc/Petalogix/Internal/plgx_install/qemu-upstream-regression/petalinux-vx.x/tools/linux-i386/petalogix/bin/qemu-system-arm...done.
(gdb) r
Starting program: /home/peterc/Petalogix/Internal/plgx_install/qemu-upstream-regression/petalinux-vx.x/tools/linux-i386/petalogix/bin/qemu-system-arm -M lm3s6965evb -kernel qs_ek-lm3s6965.bin
[Thread debugging using libthread_db enabled]
warning: no loadable sections found in added symbol-file <in-memory>
[New Thread 0x7ffff63fc700 (LWP 15156)]
qemu-system-arm: /home/peterc/Petalogix/Internal/plgx_src/qemu/hw/qdev.c:309: qdev_get_gpio_in: Assertion `n >= 0 && n < dev->num_gpio_in' failed.
Program received signal SIGABRT, Aborted.
0x00000000006f4a2b in raise (sig=<value optimised out>) 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 0x00000000006f4a2b in raise (sig=<value optimised out>)
at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:42
#1 0x00000000007089a0 in abort ()
#2 0x0000000000702c15 in __assert_fail ()
#3 0x0000000000463ffa in qdev_get_gpio_in ()
#4 0x0000000000588f94 in armv7m_init ()
#5 0x000000000060c62a in stellaris_init ()
#6 0x000000000060cc4e in lm3s6965evb_init ()
#7 0x00000000004fdb11 in main ()
(gdb)
Bisection points at this commit:
commit 1e8cae4dfea2bcc91d3820dcf4f9284e7b0abb28
Author: Peter Maydell <[email protected]>
Date: Wed May 2 16:49:42 2012 +0000
hw/armv7m_nvic: Make the NVIC a freestanding class
Rearrange the GIC and NVIC so both are straightforward
subclasses of a common class, rather than having the NVIC
source file textually include arm_gic.c.
Signed-off-by: Peter Maydell <[email protected]>
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1028260/+subscriptions