criscv/include/cpu.h

13 lines
247 B
C
Raw Normal View History

2024-10-14 19:48:56 +02:00
#include "address_space.h"
#include <stdint.h>
struct CPU_s {
uint32_t registers[32];
uint32_t programCounter;
AddressSpace *addressSpace;
};
typedef struct CPU_s CPU;
2024-10-15 13:30:45 +02:00
CPU create_cpu(AddressSpace *addressSpace);
int cycle(CPU *cpu);