Revision e3ea6529

b/darwin-user/main.c
82 82
    return 0;
83 83
}
84 84

  
85
uint32_t cpu_ppc_load_tbl (CPUState *env)
85
uint64_t cpu_ppc_load_tbl (CPUState *env)
86 86
{
87
    return cpu_ppc_get_tb(env) & 0xFFFFFFFF;
87
    return cpu_ppc_get_tb(env);
88 88
}
89 89

  
90 90
uint32_t cpu_ppc_load_tbu (CPUState *env)
b/hw/ppc.c
401 401
    return muldiv64(vmclk, tb_env->tb_freq, get_ticks_per_sec()) + tb_offset;
402 402
}
403 403

  
404
uint32_t cpu_ppc_load_tbl (CPUState *env)
404
uint64_t cpu_ppc_load_tbl (CPUState *env)
405 405
{
406 406
    ppc_tb_t *tb_env = env->tb_env;
407 407
    uint64_t tb;
......
409 409
    tb = cpu_ppc_get_tb(tb_env, qemu_get_clock(vm_clock), tb_env->tb_offset);
410 410
    LOG_TB("%s: tb %016" PRIx64 "\n", __func__, tb);
411 411

  
412
    return tb & 0xFFFFFFFF;
412
    return tb;
413 413
}
414 414

  
415 415
static inline uint32_t _cpu_ppc_load_tbu(CPUState *env)
b/linux-user/main.c
1068 1068
    return 0;
1069 1069
}
1070 1070

  
1071
uint32_t cpu_ppc_load_tbl (CPUState *env)
1071
uint64_t cpu_ppc_load_tbl (CPUState *env)
1072 1072
{
1073
    return cpu_ppc_get_tb(env) & 0xFFFFFFFF;
1073
    return cpu_ppc_get_tb(env);
1074 1074
}
1075 1075

  
1076 1076
uint32_t cpu_ppc_load_tbu (CPUState *env)
b/target-ppc/cpu.h
741 741

  
742 742
/* Time-base and decrementer management */
743 743
#ifndef NO_CPU_IO_DEFS
744
uint32_t cpu_ppc_load_tbl (CPUPPCState *env);
744
uint64_t cpu_ppc_load_tbl (CPUPPCState *env);
745 745
uint32_t cpu_ppc_load_tbu (CPUPPCState *env);
746 746
void cpu_ppc_store_tbu (CPUPPCState *env, uint32_t value);
747 747
void cpu_ppc_store_tbl (CPUPPCState *env, uint32_t value);
b/target-ppc/op_helper.c
68 68

  
69 69
target_ulong helper_load_tbl (void)
70 70
{
71
    return cpu_ppc_load_tbl(env);
71
    return (target_ulong)cpu_ppc_load_tbl(env);
72 72
}
73 73

  
74 74
target_ulong helper_load_tbu (void)

Also available in: Unified diff