Revision 8a84de23 hw/ppc.c

b/hw/ppc.c
445 445
    return tb & 0xFFFFFFFF;
446 446
}
447 447

  
448
uint32_t cpu_ppc_load_tbu (CPUState *env)
448
static inline uint32_t _cpu_ppc_load_tbu (CPUState *env)
449 449
{
450 450
    ppc_tb_t *tb_env = env->tb_env;
451 451
    uint64_t tb;
......
460 460
    return tb >> 32;
461 461
}
462 462

  
463
uint32_t cpu_ppc_load_tbu (CPUState *env)
464
{
465
    return _cpu_ppc_load_tbu(env);
466
}
467

  
463 468
static inline void cpu_ppc_store_tb (ppc_tb_t *tb_env, int64_t *tb_offsetp,
464 469
                                     uint64_t value)
465 470
{
......
483 488
    cpu_ppc_store_tb(tb_env, &tb_env->tb_offset, tb | (uint64_t)value);
484 489
}
485 490

  
486
void cpu_ppc_store_tbu (CPUState *env, uint32_t value)
491
static inline void _cpu_ppc_store_tbu (CPUState *env, uint32_t value)
487 492
{
488 493
    ppc_tb_t *tb_env = env->tb_env;
489 494
    uint64_t tb;
......
494 499
                     ((uint64_t)value << 32) | tb);
495 500
}
496 501

  
502
void cpu_ppc_store_tbu (CPUState *env, uint32_t value)
503
{
504
    _cpu_ppc_store_tbu(env, value);
505
}
506

  
497 507
uint32_t cpu_ppc_load_atbl (CPUState *env)
498 508
{
499 509
    ppc_tb_t *tb_env = env->tb_env;
......
738 748
}
739 749

  
740 750
void cpu_ppc601_store_rtcu (CPUState *env, uint32_t value)
741
__attribute__ (( alias ("cpu_ppc_store_tbu") ));
751
{
752
    _cpu_ppc_store_tbu(env, value);
753
}
742 754

  
743 755
uint32_t cpu_ppc601_load_rtcu (CPUState *env)
744
__attribute__ (( alias ("cpu_ppc_load_tbu") ));
756
{
757
    return _cpu_ppc_load_tbu(env);
758
}
745 759

  
746 760
void cpu_ppc601_store_rtcl (CPUState *env, uint32_t value)
747 761
{

Also available in: Unified diff