Re: [Qemu-devel] Object cast macro change-pattern automation.

2013-06-21 Thread Paolo Bonzini
Il 21/06/2013 09:44, Peter Crosthwaite ha scritto: > Hi Paolo, > > On Fri, Jun 21, 2013 at 5:36 PM, Paolo Bonzini wrote: >> Il 21/06/2013 06:21, Peter Crosthwaite ha scritto: >>> diff --git a/hw/timer/xilinx_timer.c b/hw/timer/xilinx_timer.c >>> index 0c39cff..ae09170 100644 >>> --- a/hw/timer/xi

Re: [Qemu-devel] Object cast macro change-pattern automation.

2013-06-21 Thread Peter Crosthwaite
Hi Andreas, On Fri, Jun 21, 2013 at 7:33 PM, Andreas Färber wrote: > Hi Peter, > > Am 21.06.2013 06:21, schrieb Peter Crosthwaite: >> I thought Id share with you a little script I made (not very polished) >> that I used to help with some of my patches creating the QOM cast >> macros (mainly the P

Re: [Qemu-devel] Object cast macro change-pattern automation.

2013-06-21 Thread Andreas Färber
Hi Peter, Am 21.06.2013 06:21, schrieb Peter Crosthwaite: > I thought Id share with you a little script I made (not very polished) > that I used to help with some of my patches creating the QOM cast > macros (mainly the PCI ones). May be useful in speeding up the > QOMification effort. Andreas, im

Re: [Qemu-devel] Object cast macro change-pattern automation.

2013-06-21 Thread Andreas Färber
Hi, Am 21.06.2013 09:44, schrieb Peter Crosthwaite: > On Fri, Jun 21, 2013 at 5:36 PM, Paolo Bonzini wrote: >> Il 21/06/2013 06:21, Peter Crosthwaite ha scritto: >>> diff --git a/hw/timer/xilinx_timer.c b/hw/timer/xilinx_timer.c >>> index 0c39cff..ae09170 100644 >>> --- a/hw/timer/xilinx_timer.c

Re: [Qemu-devel] Object cast macro change-pattern automation.

2013-06-21 Thread Hu Tao
On Fri, Jun 21, 2013 at 02:21:02PM +1000, Peter Crosthwaite wrote: > Hi Andreas, Hu, > > I thought Id share with you a little script I made (not very polished) > that I used to help with some of my patches creating the QOM cast > macros (mainly the PCI ones). May be useful in speeding up the > QOM

Re: [Qemu-devel] Object cast macro change-pattern automation.

2013-06-21 Thread Hu Tao
On Fri, Jun 21, 2013 at 09:36:46AM +0200, Paolo Bonzini wrote: > Il 21/06/2013 06:21, Peter Crosthwaite ha scritto: > > diff --git a/hw/timer/xilinx_timer.c b/hw/timer/xilinx_timer.c > > index 0c39cff..ae09170 100644 > > --- a/hw/timer/xilinx_timer.c > > +++ b/hw/timer/xilinx_timer.c > > @@ -218,7

Re: [Qemu-devel] Object cast macro change-pattern automation.

2013-06-21 Thread Peter Crosthwaite
Hi Paolo, On Fri, Jun 21, 2013 at 5:36 PM, Paolo Bonzini wrote: > Il 21/06/2013 06:21, Peter Crosthwaite ha scritto: >> diff --git a/hw/timer/xilinx_timer.c b/hw/timer/xilinx_timer.c >> index 0c39cff..ae09170 100644 >> --- a/hw/timer/xilinx_timer.c >> +++ b/hw/timer/xilinx_timer.c >> @@ -218,7 +2

Re: [Qemu-devel] Object cast macro change-pattern automation.

2013-06-21 Thread Paolo Bonzini
Il 21/06/2013 06:21, Peter Crosthwaite ha scritto: > diff --git a/hw/timer/xilinx_timer.c b/hw/timer/xilinx_timer.c > index 0c39cff..ae09170 100644 > --- a/hw/timer/xilinx_timer.c > +++ b/hw/timer/xilinx_timer.c > @@ -218,7 +218,7 @@ static int xilinx_timer_init(SysBusDevice *dev) > ptimer