Re: [Qemu-devel] [PATCH] PPC64: Fix timebase

2009-12-21 Thread Andreas Färber
Am 21.12.2009 um 11:15 schrieb Aurelien Jarno: On Mon, Dec 21, 2009 at 10:39:39AM +0100, Alexander Graf wrote: On 21.12.2009, at 10:24, Aurelien Jarno wrote: On Mon, Dec 21, 2009 at 01:22:12AM +0100, Alexander Graf wrote: On PPC we have a 64-bit time base. Usually (PPC32) this is accessed

Re: [Qemu-devel] [PATCH] PPC64: Fix timebase

2009-12-21 Thread Alexander Graf
Aurelien Jarno wrote: > On Mon, Dec 21, 2009 at 12:15:42PM +0100, Alexander Graf wrote: > >> On 21.12.2009, at 10:24, Aurelien Jarno wrote: >> >> >>> On Mon, Dec 21, 2009 at 01:22:12AM +0100, Alexander Graf wrote: >>> On PPC we have a 64-bit time base. Usually (PPC32) this is ac

Re: [Qemu-devel] [PATCH] PPC64: Fix timebase

2009-12-21 Thread Aurelien Jarno
On Mon, Dec 21, 2009 at 12:15:42PM +0100, Alexander Graf wrote: > > On 21.12.2009, at 10:24, Aurelien Jarno wrote: > > > On Mon, Dec 21, 2009 at 01:22:12AM +0100, Alexander Graf wrote: > >> On PPC we have a 64-bit time base. Usually (PPC32) this is accessed using > >> two separate 32 bit SPR acce

Re: [Qemu-devel] [PATCH] PPC64: Fix timebase

2009-12-21 Thread Alexander Graf
On 21.12.2009, at 10:24, Aurelien Jarno wrote: > On Mon, Dec 21, 2009 at 01:22:12AM +0100, Alexander Graf wrote: >> On PPC we have a 64-bit time base. Usually (PPC32) this is accessed using >> two separate 32 bit SPR accesses to SPR_TBU and SPR_TBL. >> >> On PPC64 the SPR_TBL register acts as 64

Re: [Qemu-devel] [PATCH] PPC64: Fix timebase

2009-12-21 Thread Alexander Graf
On 21.12.2009, at 10:24, Aurelien Jarno wrote: > On Mon, Dec 21, 2009 at 01:22:12AM +0100, Alexander Graf wrote: >> On PPC we have a 64-bit time base. Usually (PPC32) this is accessed using >> two separate 32 bit SPR accesses to SPR_TBU and SPR_TBL. >> >> On PPC64 the SPR_TBL register acts as 64

Re: [Qemu-devel] [PATCH] PPC64: Fix timebase

2009-12-21 Thread Aurelien Jarno
On Mon, Dec 21, 2009 at 10:39:39AM +0100, Alexander Graf wrote: > > On 21.12.2009, at 10:24, Aurelien Jarno wrote: > > > On Mon, Dec 21, 2009 at 01:22:12AM +0100, Alexander Graf wrote: > >> On PPC we have a 64-bit time base. Usually (PPC32) this is accessed using > >> two separate 32 bit SPR acce

Re: [Qemu-devel] [PATCH] PPC64: Fix timebase

2009-12-21 Thread Alexander Graf
On 21.12.2009, at 10:24, Aurelien Jarno wrote: > On Mon, Dec 21, 2009 at 01:22:12AM +0100, Alexander Graf wrote: >> On PPC we have a 64-bit time base. Usually (PPC32) this is accessed using >> two separate 32 bit SPR accesses to SPR_TBU and SPR_TBL. >> >> On PPC64 the SPR_TBL register acts as 64

Re: [Qemu-devel] [PATCH] PPC64: Fix timebase

2009-12-21 Thread Aurelien Jarno
On Mon, Dec 21, 2009 at 01:22:12AM +0100, Alexander Graf wrote: > On PPC we have a 64-bit time base. Usually (PPC32) this is accessed using > two separate 32 bit SPR accesses to SPR_TBU and SPR_TBL. > > On PPC64 the SPR_TBL register acts as 64 bit though, so we get the full > 64 bits as return val