ARM devboards: Set arm_sysctl properties before init, not after
PATCH 1/1 ARM devboards: Set arm_sysctl properties before init, not after
The ARM devboard models (vexpress-a9, realview, versatilepb, etc) were accidentally trying to set one of the arm_sysctl properties after device init. This has now become a fatal error; set the property before device init where it should be done instead.
---
If somebody would like to commit this simple patch quickly that would probably be a good idea since these models are otherwise totally broken...
hw/realview.c | 2 +- hw/versatilepb.c | 2 +- hw/vexpress.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
hw/realview.c +1 -1
@@ -217,8 +217,8 @@ static void realview_init(ram_addr_t ram_size, sys_id = is_pb ?0x01780500 :0xc1400400 ; sysctl =qdev_create (NULL ,"realview_sysctl" );qdev_prop_set_uint32 (sysctl,"sys_id" , sys_id); -qdev_init_nofail (sysctl);qdev_prop_set_uint32 (sysctl,"proc_id" , proc_id); +qdev_init_nofail (sysctl);sysbus_mmio_map (sysbus_from_qdev (sysctl),0 ,0x10000000 );if (is_mpcore) {
hw/versatilepb.c +1 -1
@@ -198,8 +198,8 @@ static void versatile_init(ram_addr_t ram_size, sysctl =qdev_create (NULL ,"realview_sysctl" );qdev_prop_set_uint32 (sysctl,"sys_id" ,0x41007004 ); -qdev_init_nofail (sysctl);qdev_prop_set_uint32 (sysctl,"proc_id" ,0x02000000 ); +qdev_init_nofail (sysctl);sysbus_mmio_map (sysbus_from_qdev (sysctl),0 ,0x10000000 ); cpu_pic =arm_pic_init_cpu (env);
hw/vexpress.c +1 -1
@@ -123,8 +123,8 @@ static void vexpress_a9_init(ram_addr_t ram_size,/* 0x10000000 System registers */ sysctl =qdev_create (NULL ,"realview_sysctl" );qdev_prop_set_uint32 (sysctl,"sys_id" , sys_id); -qdev_init_nofail (sysctl);qdev_prop_set_uint32 (sysctl,"proc_id" , proc_id); +qdev_init_nofail (sysctl);sysbus_mmio_map (sysbus_from_qdev (sysctl),0 ,0x10000000 );/* 0x10001000 SP810 system control */
Signature · 1 line
1.7.5.4
Quoted 9 lines · Peter Maydell
The ARM devboard models (vexpress-a9, realview, versatilepb, etc) were accidentally trying to set one of the
arm_sysctlproperties after device init. This has now become a fatal error; set the property before device init where it should be done instead.Signed-off-by Peter Maydell<[email protected]>---
If somebody would like to commit this simple patch quickly that would probably be a good idea since these models are otherwise totally broken...
Thanks Peter!
Paolo
Quoted 9 lines
The ARM devboard models (vexpress-a9, realview, versatilepb, etc) were accidentally trying to set one of the
arm_sysctlproperties after device init. This has now become a fatal error; set the property before device init where it should be done instead.Signed-off-by Peter Maydell <[email protected]>---
If somebody would like to commit this simple patch quickly that would probably be a good idea since these models are otherwise totally broken...
Done.
Paul
Am 09.02.2012 13:15, schrieb Paul Brook:
Quoted 11 lines
Quoted 9 lines
The ARM devboard models (vexpress-a9, realview, versatilepb, etc) were accidentally trying to set one of the
arm_sysctlproperties after device init. This has now become a fatal error; set the property before device init where it should be done instead.Signed-off-by Peter Maydell <[email protected]>---
If somebody would like to commit this simple patch quickly that would probably be a good idea since these models are otherwise totally broken...Done.
Your commit should've contained Paolo's Reviewed-by tag after Peter's SoB, and you as committer didn't sign it off either.
http://git.qemu.org/?p=qemu.git;a=commit;h=7a65c8cc315c76bde6d692845c12e7ba06f44f89
Andreas
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
Am 09.02.2012 13:34, schrieb Andreas Färber:
Quoted 11 lines
Am 09.02.2012 13:15, schrieb Paul Brook:
Quoted 10 lines
Quoted 9 lines
The ARM devboard models (vexpress-a9, realview, versatilepb, etc) were accidentally trying to set one of the
arm_sysctlproperties after device init. This has now become a fatal error; set the property before device init where it should be done instead.Signed-off-by Peter Maydell <[email protected]>---
If somebody would like to commit this simple patch quickly that would probably be a good idea since these models are otherwise totally broken...
Quoted 6 lines
Quoted 1 line
Done.
Your commit should've contained Paolo's Reviewed-by tag after Peter's SoB, and you as committer didn't sign it off either.
http://git.qemu.org/?p=qemu.git;a=commit;h=7a65c8cc315c76bde6d692845c12e7ba06f44f89
...but it's nice that you aid in applying patches again. :)
Quoted 2 lines
Andreas
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
Quoted 12 lines
Am 09.02.2012 13:15, schrieb Paul Brook:
Quoted 11 lines
Quoted 10 lines
The ARM devboard models (vexpress-a9, realview, versatilepb, etc) were accidentally trying to set one of the
arm_sysctlproperties after device init. This has now become a fatal error; set the property before device init where it should be done instead.Signed-off-by Peter Maydell <[email protected]>---
If somebody would like to commit this simple patch quickly that would probably be a good idea since these models are otherwise totally broken...
Quoted 4 lines
Quoted 1 line
Done.
Your commit should've contained Paolo's Reviewed-by tag after Peter's SoB,
Ok.
Quoted 1 line
and you as committer didn't sign it off either.
Ah, I thought SoB was only relevant if I'd actually touched the patch.
Paul