Commit Graph

13 Commits

Author SHA1 Message Date
5a383956c9 Improve exception dumps and general debug info, make the emulator capable of running the riscv ISA tests, and perform some general fixes i found while making it pass the tests for RV64I 2025-12-30 20:18:23 +01:00
9a9bef7dd7 Remove consts.rs and just use plain types 2025-12-28 12:01:39 +01:00
8024af6b13 Implement ECALL and EBREAK, the final RV64I instructions! 2025-12-27 21:47:22 +01:00
6a3920895b Relicense to BSD 2-Clause to align better with the RISC-V community 2025-12-27 12:44:55 +01:00
9f8e9ec380 Implement a GDB stub and fix another huge issue in S-type immediate decoding 2025-12-27 11:48:36 +01:00
34034dd5db Make macros for R/I-type operations and use them to implement basically every single one i think 2025-12-26 18:14:32 +01:00
643a39c24a Fix s-type immediate decoding 2025-12-23 09:51:32 +01:00
d03863f5a2 Implement SLLI and fix sign extension of immediates for I-type and S-type instructions 2025-12-21 14:00:47 +01:00
c74b4a21d2 Add decode functions for immediate shifts (funct6 and imm_shamt), make decode functions not use references, add inline hints to decode functions 2025-12-21 12:47:56 +01:00
e2d521bbe7 Add license/copyright notices to top of each source file (where applicable) 2025-12-01 22:06:13 +01:00
361b36fbd1 Make sure unsupported/illegal instructions are caught 2025-10-07 20:16:27 +02:00
52952840aa I guess its a working execution loop? 2025-10-04 14:07:42 +02:00
3163b43fa4 base core state & instruction decoder 2025-09-27 21:43:10 +02:00