criscv/include/cpu.h
2024-10-15 17:07:18 +02:00

18 lines
No EOL
288 B
C

#ifndef CPU_H
#define CPU_H
#include "address_space.h"
#include <stdint.h>
struct CPU_s {
uint32_t registers[32];
uint32_t programCounter;
AddressSpace *addressSpace;
};
typedef struct CPU_s CPU;
CPU create_cpu(AddressSpace *addressSpace);
int cpu_cycle(CPU *cpu);
#endif