Defines | |
#define | VM_VERSION 0x00000001 |
#define | VM_MEM_DEFAULT 4 |
#define | VM_MEM_MAX 64 |
#define | VM_MEM_T_SIZE (sizeof(vm_mem_t) - 1) |
Typedefs | |
typedef unsigned int | vm_addr_t |
typedef unsigned int | vm_size_t |
typedef _vm_mem_t | vm_mem_t |
virtual machine memory This structure describes the memory layout of the CKPMvm virtual machine | |
Functions | |
vm_mem_t * | load_file (int verbose, int argc, char **argv, char *file_name, vm_size_t mem_size) |
load a virtual machine executable | |
int | run_vm (int verbose, vm_mem_t *vm_memory) |
run the loaded executable | |
void | shutdown_vm (int verbose, vm_mem_t *vm_memory) |
shut down the virtual machine |
|
default size of virtual machine memory in MB |
|
maximum size of virtual machine memory in MB |
|
size of vm_mem_t without allocated memory for mem |
|
version of the virtual machine |
|
virtual machine addresses |
|
virtual machine size type |
|
load a virtual machine executable
|
|
run the loaded executable
|
|
shut down the virtual machine
|