CPU skeleton.
This commit is contained in:
@@ -13,6 +13,32 @@
|
||||
#include <xenia/common.h>
|
||||
#include <xenia/core.h>
|
||||
|
||||
void do_cpu_stuff();
|
||||
#include <xenia/kernel/module.h>
|
||||
|
||||
|
||||
typedef struct {
|
||||
int reserved;
|
||||
} xe_cpu_options_t;
|
||||
|
||||
|
||||
struct xe_cpu;
|
||||
typedef struct xe_cpu* xe_cpu_ref;
|
||||
|
||||
|
||||
xe_cpu_ref xe_cpu_create(xe_pal_ref pal, xe_memory_ref memory,
|
||||
xe_cpu_options_t options);
|
||||
xe_cpu_ref xe_cpu_retain(xe_cpu_ref cpu);
|
||||
void xe_cpu_release(xe_cpu_ref cpu);
|
||||
|
||||
xe_pal_ref xe_cpu_get_pal(xe_cpu_ref cpu);
|
||||
xe_memory_ref xe_cpu_get_memory(xe_cpu_ref cpu);
|
||||
|
||||
int xe_cpu_prepare_module(xe_cpu_ref cpu, xe_module_ref module);
|
||||
|
||||
int xe_cpu_execute(xe_cpu_ref cpu, uint32_t address);
|
||||
|
||||
uint32_t xe_cpu_create_callback(xe_cpu_ref cpu,
|
||||
void (*callback)(void*), void *data);
|
||||
|
||||
|
||||
#endif // XENIA_CPU_H_
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
|
||||
#include <xenia/common.h>
|
||||
#include <xenia/core.h>
|
||||
#include <xenia/cpu.h>
|
||||
|
||||
#include <xenia/kernel/export.h>
|
||||
#include <xenia/kernel/module.h>
|
||||
@@ -27,13 +28,14 @@ struct xe_kernel;
|
||||
typedef struct xe_kernel* xe_kernel_ref;
|
||||
|
||||
|
||||
xe_kernel_ref xe_kernel_create(xe_pal_ref pal, xe_memory_ref memory,
|
||||
xe_kernel_ref xe_kernel_create(xe_pal_ref pal, xe_cpu_ref cpu,
|
||||
xe_kernel_options_t options);
|
||||
xe_kernel_ref xe_kernel_retain(xe_kernel_ref kernel);
|
||||
void xe_kernel_release(xe_kernel_ref kernel);
|
||||
|
||||
xe_pal_ref xe_kernel_get_pal(xe_kernel_ref kernel);
|
||||
xe_memory_ref xe_kernel_get_memory(xe_kernel_ref kernel);
|
||||
xe_cpu_ref xe_kernel_get_cpu(xe_kernel_ref kernel);
|
||||
|
||||
const xechar_t *xe_kernel_get_command_line(xe_kernel_ref kernel);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user