Added resource, fixed memaccess
This commit is contained in:
@@ -698,7 +698,7 @@ void cpu_loop(rv32_cpu_t* cpu)
|
||||
fprintf(stderr, "Error: instruction fetch: pc is out of addressable memory\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
raw_instruction.data = *((uint32_t*) (&memory[cpu->pc]));
|
||||
raw_instruction.data = mem_read32(cpu->pc);
|
||||
|
||||
// Decode
|
||||
instruction_t instruction;
|
||||
|
Reference in New Issue
Block a user