src/ssx/ppc405/ppc405_core.c
/// Set the 64-bit timebase in an SSX_CRITICAL critical section
///
/// It is assumed that the caller knows what they are doing; e.g., is aware of
/// what may happen when time warps as a result of this call.
Set the 64-bit timebase in an SSX_CRITICAL critical section
It is assumed that the caller knows what they are doing; e.g., is aware of
what may happen when time warps as a result of this call.
Set the 64 - bit timebase in an SSX_CRITICAL critical section It is assumed that the caller knows what they are doing ; e . g . is aware of what may happen when time warps as a result of this call .
void
ssx_timebase_set(SsxTimebase timebase)
{
    SsxMachineContext ctx;
    Uint64 tb;
    tb.value = timebase;
    ssx_critical_section_enter(SSX_CRITICAL, &ctx);
    mttbl(0);
    mttbu(tb.word[0]);
    mttbl(tb.word[1]);
    ssx_critical_section_exit(&ctx);
}
void ssx_timebase_set ( SsxTimebase timebase ) { SsxMachineContext ctx ; Uint64 tb ; tb . value = timebase ; ssx_critical_section_enter ( SSX_CRITICAL , & ctx ) ; mttbl ( 0 ) ; mttbu ( tb . word [ 0 ] ) ; mttbl ( tb . word [ 1 ] ) ; ssx_critical_section_exit ( & ctx ) ; }
Set the 64-bit timebase in an SSX_CRITICAL critical section
It is assumed that the caller knows what they are doing; e.g., is aware of
what may happen when time warps as a result of this call.
Set the 64 - bit timebase in an SSX_CRITICAL critical section It is assumed that the caller knows what they are doing ; e . g . is aware of what may happen when time warps as a result of this call .