TEMU  4.4
The Terma Emulator
temu_MachineIface Struct Reference

#include </builds/termade/temu/temu/include/temu-c/Models/Machine.h>

Data Fields

void(* reset )(void *Obj, int ResetType)
 Send reset to all processors in the machine. More...
 
temu_CpuExitReason(* run )(void *Obj, uint64_t NanoSecs)
 Run the machine for the given time. More...
 
temu_CpuExitReason(* step )(void *Obj, int CpuId, uint64_t Steps)
 Step the given process a number of steps. More...
 
temu_CpuIfaceRef(* getCurrentCpu )(void *Obj)
 Get current processor. More...
 
temu_CpuIfaceRef(* getCpu )(void *Obj, unsigned Idx)
 Get processor by index. More...
 
int64_t(* getTime )(void *Machine)
 Get machine time in nanoseconds. More...
 
unsigned(* getCurrentCpuId )(void *Obj)
 Return the current CPU number. More...
 
void(* asyncStop )(void *Obj)
 

Detailed Description

Standard machine interface

Field Documentation

◆ asyncStop

void(* temu_MachineIface::asyncStop) (void *Obj)

Async stop must be async safe, it can be used to tell the emulator to stop in an async safe way, e.g. from a signal handler.

◆ getCpu

temu_CpuIfaceRef(* temu_MachineIface::getCpu) (void *Obj, unsigned Idx)

Get processor by index.

◆ getCurrentCpu

temu_CpuIfaceRef(* temu_MachineIface::getCurrentCpu) (void *Obj)

Get current processor.

◆ getCurrentCpuId

unsigned(* temu_MachineIface::getCurrentCpuId) (void *Obj)

Return the current CPU number.

◆ getTime

int64_t(* temu_MachineIface::getTime) (void *Machine)

Get machine time in nanoseconds.

◆ reset

void(* temu_MachineIface::reset) (void *Obj, int ResetType)

Send reset to all processors in the machine.

◆ run

temu_CpuExitReason(* temu_MachineIface::run) (void *Obj, uint64_t NanoSecs)

Run the machine for the given time.

◆ step

temu_CpuExitReason(* temu_MachineIface::step) (void *Obj, int CpuId, uint64_t Steps)

Step the given process a number of steps.


The documentation for this struct was generated from the following file: