Commit graph mini-rv32ima/mini-rv32ima/mini-rv32ima.h
Author SHA1 Message Date
2634265166 ch81: add cache support 2025-10-11 15:59:02 +02:00
4f25ecf40d ch81: add an approximate clang-format 2025-10-11 15:56:36 +02:00
cnlohr
6fdcdea9bf
Merge pull request #48 from cleverca22/fix-post-exec
fix MINIRV32_POSTEXEC during trap
2024-12-09 02:48:56 -08:00
Michael Bishop
2a6ca5da21 fix MINIRV32_POSTEXEC during trap 2024-12-09 00:42:21 -04:00
Michael Bishop
f311641f2a move WFI to a case block 2024-12-08 20:05:39 -04:00
Nick Brassel
d64e184e97
Use conditional define instead, allowing for disjoint ranges. 2024-07-10 22:36:06 +10:00
Nick Brassel
c9b04ccd09
Parameterisation of MMIO, move handlers to .c file. 2024-06-04 22:18:54 +10:00
cnlohr
7b783ed6de Fix incorrect translation to HLSL. 2023-04-25 15:07:33 -04:00
cnlohr
f4bedf74ca * Make cache test work in HLSL.
* Get started on a cache test.
2023-04-13 04:00:32 -04:00
cnlohr
80d36841ca Reword break. 2023-03-25 20:56:39 -04:00
cnlohr
4d25f34144 Significant perf improvement - don't rewrite CSRs, and restructure trap capture. 2023-03-25 20:54:38 -04:00
cnlohr
c01ed7d391 Fix rare bug when interrupting from userspace. 2023-03-25 19:35:42 -04:00
cnlohr
ad36240707 Fix spaces/tabs 2023-03-25 10:03:05 -04:00
Vlad Tomoiaga
cd9d13eb41 fix bitshift on arm32 2023-02-27 21:29:05 +02:00
Hirosh Dabui
3fd160bb22 fixed signed overflow for div/rem referred to
https://five-embeddev.com/riscv-isa-manual/latest/m.html
https://five-embeddev.com/riscv-isa-manual/latest/m.html#tab:divby0
2023-02-19 09:16:48 +01:00
Jan Wiśniewski
206b9b3ccf fix control memory address calculations
Note that this was working correctly only with default RAM offset.
In uint32 field (x - 2^31 - 2^31) is equal x.
2023-01-24 03:05:55 +01:00
cnlohr
75002ee142 Break RV32A reservations on interrupt. 2022-12-12 17:34:43 -08:00
gagachang
3cfb2a79c9 Fix minor comment
The bit 7 of CSR mip should be MTIP not MSIP.
2022-12-05 13:31:11 +08:00
cnlohr
6f34daa0e7 Fix issue with mulh and negative numbers that caused DOOM to crash. 2022-12-02 08:02:01 -05:00
cnlohr
c6a2f570e5 * Fix timing bug from incorrect uint64_t casting
* Fix profiling.
2022-12-01 05:07:09 -05:00
cnlohr
00cc6efc2d Cleanup + add ability to get image from internet. 2022-11-27 07:36:06 -05:00
cnlohr
5c9d23ace0 * Update readme.
* Make actual bare metal test.
 * Protect code from bad pc.
2022-11-27 04:41:58 -05:00
cnlohr
b93f34a4e3 Some formatting changes. 2022-11-27 03:02:09 -05:00
cnlohr
5200a25aa9 Update readme + emulator 2022-11-27 03:00:18 -05:00
cnlohr
17b04684c7 Change style to be mostly ready to quick-convert to HLSL. 2022-11-27 02:25:05 -05:00
cnlohr
769b8f4717 Make minirv32ima much more verstaile 2022-11-27 01:28:37 -05:00
cnlohr
eebb5ec5c0 Much further along - able to build projects 2022-11-27 00:08:22 -05:00
cnlohr
b5194f7dda Running demo binaries 2022-11-26 19:16:46 -05:00
cnlohr
201fde38e2 Middle of debugging custom packages 2022-11-26 19:00:52 -05:00
cnlohr
f5a9949a34 A couple things getting bumped. Middle of debugging userspace apps crashing 2022-11-26 07:42:52 -05:00
cnlohr
8f5d64429f Progress 2022-11-26 05:35:15 -05:00