10 #define TEMU_MACHINE_H 25 void (*
reset)(
void *Obj,
int ResetType);
34 temu_CpuIfaceRef (*
getCpu)(
void *Obj,
unsigned Idx);
46 #define TEMU_MACHINE_IFACE_TYPE "MachineIface" int64_t(* getTime)(void *Machine)
Get machine time in nanoseconds.
Definition: Machine.h:36
struct temu_MachineIface temu_MachineIface
temu_CpuIfaceRef(* getCpu)(void *Obj, unsigned Idx)
Get processor by index.
Definition: Machine.h:34
temu_CpuExitReason(* step)(void *Obj, int CpuId, uint64_t Steps)
Step the given process a number of steps.
Definition: Machine.h:30
void(* reset)(void *Obj, int ResetType)
Send reset to all processors in the machine.
Definition: Machine.h:25
void(* asyncStop)(void *Obj)
Definition: Machine.h:44
temu_CpuExitReason(* run)(void *Obj, uint64_t NanoSecs)
Run the machine for the given time.
Definition: Machine.h:27
temu_CpuExitReason
Definition: Cpu.h:31
TEMU_IFACE_REFERENCE_TYPE(temu_Machine)
unsigned(* getCurrentCpuId)(void *Obj)
Return the current CPU number.
Definition: Machine.h:39
temu_CpuIfaceRef(* getCurrentCpu)(void *Obj)
Get current processor.
Definition: Machine.h:32