diff options
author | Aurelien Jarno <aurelien@aurel32.net> | 2009-12-21 13:52:08 +0100 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2009-12-21 13:52:08 +0100 |
commit | b711de9565d3c8f758956dfa96b648cc321577b6 (patch) | |
tree | 75cfacb2e5563a009e6cc7e6618f476dd45c0845 /hw/ppc.c | |
parent | e3ea652962383a2ffc05b2f1b10a0e97542eb6f8 (diff) | |
download | qemu-b711de9565d3c8f758956dfa96b648cc321577b6.zip qemu-b711de9565d3c8f758956dfa96b648cc321577b6.tar.gz qemu-b711de9565d3c8f758956dfa96b648cc321577b6.tar.bz2 |
PPC64: Fix alternate timebase
Fix the alternate time base the same way as the default timebase. SPR_ATBL
should return a 64-bit value on 64 bit implementations.
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'hw/ppc.c')
-rw-r--r-- | hw/ppc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -463,7 +463,7 @@ void cpu_ppc_store_tbu (CPUState *env, uint32_t value) _cpu_ppc_store_tbu(env, value); } -uint32_t cpu_ppc_load_atbl (CPUState *env) +uint64_t cpu_ppc_load_atbl (CPUState *env) { ppc_tb_t *tb_env = env->tb_env; uint64_t tb; @@ -471,7 +471,7 @@ uint32_t cpu_ppc_load_atbl (CPUState *env) tb = cpu_ppc_get_tb(tb_env, qemu_get_clock(vm_clock), tb_env->atb_offset); LOG_TB("%s: tb %016" PRIx64 "\n", __func__, tb); - return tb & 0xFFFFFFFF; + return tb; } uint32_t cpu_ppc_load_atbu (CPUState *env) |