Commit Graph

79 Commits

Author SHA1 Message Date
9dd57071ce Updated README 2023-11-07 13:16:00 +01:00
c8fbd9f4da Added LICENSE 2023-11-07 12:29:46 +01:00
3e110a82f4 Added MULH test 2023-11-03 17:19:00 +01:00
de202e25b9 Updated README 2023-11-03 16:36:21 +01:00
e9cc295470 Fixed tests using sbi shutdown 2023-11-03 16:35:08 +01:00
b5cf188c0a Makefile: Changed clean rule, fixed dep 2023-11-03 16:14:03 +01:00
923e9d39a0 Better exception/interrupt handle 2023-11-03 11:25:58 +01:00
0983be511c Comments on makefile 2023-11-03 11:22:28 +01:00
c423e6a2aa Makefile can now build linux/bbl 2023-11-02 18:54:57 +01:00
d6af840ed1 CSR: sie=mie, sip=mip 2023-10-24 00:36:39 +02:00
6330104873 CSR: SSTATUS=MSTATUS 2023-10-24 00:22:33 +02:00
2d33e50074 Define CSR STATUS bits, std functions on exception 2023-10-24 00:19:10 +02:00
cf8a1de199 gdbstub on bp, unreachable, previous privilege S 2023-10-23 17:54:49 +02:00
b57739fe38 Hardened MMU permission checks 2023-10-23 17:52:21 +02:00
07f683dc41 Hardened memory bounds check 2023-10-23 17:52:09 +02:00
71f3fbc8b5 Refactor CPU mutex code 2023-10-22 19:30:42 +02:00
02114ea7d8 Multiple cleanups and improvements
- Cleanup exception trigger code
- Cleanup division to divide by 0
- Cleanup SRET code
- Cleanup CSR code
- Added interrupts
- Added TIMER interrupt
2023-10-22 19:20:52 +02:00
a0935f0aad ELF: added support for SHT_RISCV_ATTRIBUTES seg 2023-10-20 16:14:01 +02:00
326b52ef86 Added CSR_TIME support 2023-10-20 16:04:57 +02:00
256a56f70e Added CSRRSI 2023-10-20 12:17:41 +02:00
608dbba6a0 ebreak now generates BREAKPOINT 2023-10-20 12:16:17 +02:00
b3f915dcb5 CPU privilege modes 2023-10-20 12:02:50 +02:00
082d2dcd4f Added mock SBI_EXTENSION_TIMER 2023-10-20 11:28:12 +02:00
bdc091aab2 Fixed SBI base extension implementation 2023-10-20 11:14:38 +02:00
dcdebcd8e4 Added memory access type for mmu 2023-10-20 09:58:10 +02:00
5bb973e8da Added MMU 2023-10-19 21:00:12 +02:00
9da9b5045f Added SBI functions support 2023-10-19 20:56:18 +02:00
3f6657fe00 Removed logs 2023-10-19 20:55:36 +02:00
ce89df1ed4 Added noreturn, removed logs 2023-10-19 20:55:27 +02:00
5727356559 Added SBI functions 2023-10-19 16:18:05 +02:00
b1a327cccf Added FIXME messages for mulh 2023-10-19 13:29:10 +02:00
a76c9e5e5c Added supervisor level ids 2023-10-17 15:50:12 +02:00
6c5e3fcc32 Added CSRRC/CSRRCI 2023-10-17 13:28:49 +02:00
c404defb42 Added resource, fixed memaccess 2023-10-17 13:25:31 +02:00
43d22052e5 Fix GDB bug (ooops) 2023-10-13 21:57:55 +02:00
c286beb1e1 Changed SW/LW test 2023-10-12 18:16:28 +02:00
9742c89270 Added CSRRWI support 2023-10-11 21:58:44 +02:00
7fbfae1081 UART as MMIO device 2023-10-11 21:30:57 +02:00
58b4bdb1e6 Memory interface is now MMIO-capable 2023-10-11 21:30:46 +02:00
d7e684ad91 Added basic SBI support 2023-10-11 19:48:01 +02:00
31941c0813 MRET jump support 2023-10-11 19:25:06 +02:00
c421595a95 Added MRET/SRET mock support 2023-10-11 18:37:52 +02:00
9e895e9032 Change WFI behavior : halt simulation 2023-10-11 17:35:32 +02:00
13f7f21b49 Added CSRRW/CSRRS basic support
For now we allow all write/read in all CSR (just an array)
2023-10-10 11:06:53 +02:00
948ff6493b Added messages for privileged instructions 2023-10-09 21:49:10 +02:00
12c05b4879 Added resource in README 2023-10-09 19:48:12 +02:00
66c89d8630 Bugfix JAL, print enhance 2023-10-09 15:18:54 +02:00
a62148255e Added negative offset case for JALR 2023-10-09 14:51:42 +02:00
1c1b6a7ac0 Added JAL negative case 2023-10-09 14:38:19 +02:00
7f3efb092c Changed jalr test 2023-10-09 00:20:27 +02:00