Added resource, fixed memaccess
This commit is contained in:
parent
43d22052e5
commit
c404defb42
@ -13,6 +13,9 @@ RISC-V Specifications:
|
|||||||
- https://five-embeddev.com/riscv-isa-manual/latest/instr-table.html (instruction table)
|
- https://five-embeddev.com/riscv-isa-manual/latest/instr-table.html (instruction table)
|
||||||
- https://five-embeddev.com/riscv-isa-manual/latest/priv-instr-table.html (privileged instructions)
|
- https://five-embeddev.com/riscv-isa-manual/latest/priv-instr-table.html (privileged instructions)
|
||||||
|
|
||||||
|
Device Tree Source :
|
||||||
|
- https://elinux.org/Device_Tree_Usage
|
||||||
|
|
||||||
Juraj's Blog, mostly:
|
Juraj's Blog, mostly:
|
||||||
- https://jborza.com/post/2021-04-04-riscv-supervisor-mode/
|
- https://jborza.com/post/2021-04-04-riscv-supervisor-mode/
|
||||||
- https://jborza.com/emulation/2021/04/22/ecalls-and-syscalls.html
|
- https://jborza.com/emulation/2021/04/22/ecalls-and-syscalls.html
|
||||||
|
@ -698,7 +698,7 @@ void cpu_loop(rv32_cpu_t* cpu)
|
|||||||
fprintf(stderr, "Error: instruction fetch: pc is out of addressable memory\n");
|
fprintf(stderr, "Error: instruction fetch: pc is out of addressable memory\n");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
raw_instruction.data = *((uint32_t*) (&memory[cpu->pc]));
|
raw_instruction.data = mem_read32(cpu->pc);
|
||||||
|
|
||||||
// Decode
|
// Decode
|
||||||
instruction_t instruction;
|
instruction_t instruction;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user