qemu/target-ppc
Alexander Graf e3ea652962 PPC64: Fix timebase
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 value. If we only take the lower ones, fine. But Linux
wants to see all 64 bits or it breaks.

This patch makes PPC64 Linux work even after TB crossed the 32-bit boundary,
which usually happened a few seconds after bootup.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2009-12-21 13:42:37 +01:00
..
STATUS Update PowerPC emulation status file. 2007-10-25 21:38:16 +00:00
cpu.h PPC64: Fix timebase 2009-12-21 13:42:37 +01:00
exec.h Replace always_inline with inline 2009-08-16 09:06:54 +00:00
helper.c user: move CPU reset call to main.c for x86/PPC/Sparc 2009-11-07 10:37:06 +00:00
helper.h Revert "Get rid of _t suffix" 2009-10-01 16:12:16 -05:00
helper_regs.h Replace always_inline with inline 2009-08-16 09:06:54 +00:00
kvm.c target-ppc: fix ppc32 kvm build 2009-12-19 09:30:20 +01:00
kvm_ppc.c kvm ppc: Remove unused label 2009-11-12 11:23:55 -06:00
kvm_ppc.h kvm/powerpc: extern one function for MPC85xx code use 2009-01-24 16:35:56 +00:00
machine.c kvm: Simplify cpu_synchronize_state() 2009-08-27 20:35:30 -05:00
mfrom_table.c find -type f | xargs sed -i 's/[\t ]$//g' # on most files 2007-09-16 21:08:06 +00:00
mfrom_table_gen.c find -type f | xargs sed -i 's/[\t ]*$//g' # Yes, again. Note the star in the regex. 2007-09-17 08:09:54 +00:00
op_helper.c PPC64: Fix timebase 2009-12-21 13:42:37 +01:00
translate.c Revert "Get rid of _t suffix" 2009-10-01 16:12:16 -05:00
translate_init.c target-ppc: simpler definitions for microcontrollers based on e300 2009-10-18 16:15:47 +02:00