Commit Graph

78 Commits

Author SHA1 Message Date
c3fa088a38 Added 'trace' option 2023-10-08 22:54:09 +02:00
e7b521c589 Added BLT unit test 2023-10-08 22:50:42 +02:00
72dda9aaeb Added unit testing 2023-10-08 21:50:06 +02:00
ce1729d5b1 better printing 2023-10-08 21:49:23 +02:00
cdf2ed883a Added non-debug ebreak intercept 2023-10-08 20:16:10 +02:00
21c85d0bec better printing 2023-10-08 19:09:12 +02:00
980070b204 correct ebreak implementation, gdbstub watcher
everything in gdb should work now :)
2023-10-08 19:04:25 +02:00
89da4e56bb fix mutex aquire order 2023-10-08 18:28:08 +02:00
f52699a8bf Multithread gdbstub and execution, with cont/halt 2023-10-08 17:42:44 +02:00
a10f56446a CPU simulation in another thread 2023-10-08 17:07:24 +02:00
f2c573bfc6 Make CPU and memory thread-safe 2023-10-08 16:50:57 +02:00
c878dee7e0 Make CPU code thread safe 2023-10-08 16:40:03 +02:00
afc68c1c96 gdbstub: implemented 'm' 'M' memory commands 2023-10-08 16:11:41 +02:00
629fa5fc56 gdbstub: ctrl-c command support 2023-10-08 15:15:34 +02:00
6b9e5c766b rv32cpu: allocated with calloc (for debug) 2023-10-08 14:09:20 +02:00
cb98752b67 gdbstub: implemented G command 2023-10-08 14:09:06 +02:00
43629abbd4 GDBstub base implementation (gdb is happy) 2023-10-08 13:02:50 +02:00
c466d7d175 Fix J decode wrong immediate
TODO recheck maybe
2023-10-06 12:13:08 +02:00
5b020b0444 Added mock gdbstub implementation 2023-10-05 23:04:59 +02:00
378d0fa463 Added M (Multiplication) extension 2023-10-05 22:34:08 +02:00
89744626a7 Better print :) 2023-10-05 21:48:59 +02:00
0adbd15225 Fix wrong OPCODEs for OR/AND 2023-10-05 21:02:15 +02:00
bb1427f77b Fix JALR implementation (rd=rs1 edge case) 2023-10-05 20:55:48 +02:00
57dfd9cb76 Fix branch signextend + offset 2023-10-05 20:50:11 +02:00
24ca9532d4 Added A (Atomic) extension 2023-10-05 20:39:50 +02:00
1b068529c8 ZICSR mock implementation 2023-10-05 19:52:59 +02:00
ad3ec2e504 Debugging instructions (system mostly) 2023-10-05 11:16:06 +02:00
981c35584c Initial commit
Added base code, can run ELF files and simulate RV32I instructions
2023-10-04 21:28:18 +02:00