criscv/include/cpu.h

18 lines
288 B
C
Raw Normal View History

#ifndef CPU_H
#define CPU_H
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 cpu_cycle(CPU *cpu);
#endif