Reorganize all this shit
This commit is contained in:
16
emulator/hart.h
Normal file
16
emulator/hart.h
Normal file
@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
struct Hart
|
||||
{
|
||||
uint32_t pc;
|
||||
uint32_t regs[32];
|
||||
char* mem;
|
||||
uint32_t mem_size;
|
||||
};
|
||||
typedef struct Hart Hart;
|
||||
|
||||
void execute(Hart* hart, uint32_t instruction);
|
||||
void execute_from(Hart* hart, uint32_t start_address);
|
||||
|
Reference in New Issue
Block a user