Commit Graph

143 Commits

Author SHA1 Message Date
Màrius Montón d6f799e412
Minor changes 2022-07-22 13:29:09 +02:00
Màrius Montón 2615ccc8f8
Some specializations, removed lot of useless casts. 2022-07-22 13:28:36 +02:00
Màrius Montón fc85c603d4
Two instances of CPU (RV32, RV64). Need to implement RV64 specific instructions. 2022-07-21 15:33:23 +02:00
Màrius Montón 10ed1fa653
Changed to template classe to prepare for 64bits version 2022-02-20 11:23:58 +01:00
Màrius Montón d1fa3c752e
Register class changed to templated to prepare for rv64 code 2022-02-06 11:41:37 +01:00
Màrius Montón a82938bb61
code cleanup 2022-02-06 11:39:45 +01:00
Màrius Montón 0d41fa7d10
uninitialized member variable 2021-12-08 16:55:17 +01:00
mariusmonton d430b23fc6 No nested namespaces 2021-11-29 22:21:20 +01:00
mariusmonton fb84f197bf Added namespace to project 2021-11-29 20:35:26 +01:00
mariusmonton e2981d8a50 remove unused files 2021-11-28 22:26:49 +01:00
Màrius Montón 8f0db75ee0
fixed type variable for PC 2021-11-26 01:30:29 +01:00
Màrius Montón a3e98ecc7c
reducing scope to vriable new_pc 2021-11-26 01:21:31 +01:00
Màrius Montón de2e14ff28
better log output 2021-11-25 23:31:49 +01:00
Màrius Montón 724cf258ce
merge with log branch. New log mechanism 2021-11-25 13:01:23 +01:00
Màrius Montón e6bf4e30a4
Use spdlog library as logger. 2021-11-25 12:11:18 +01:00
Màrius Montón 61be24e608 changed pointer by reference 2021-11-16 10:26:42 +01:00
Màrius Montón f7c9f47c3f changed pointer by reference 2021-11-16 10:25:47 +01:00
Màrius Montón 5caf1b77c8 Rework on DMI mechanism. Limited memory to 16MB 2021-11-16 10:20:59 +01:00
Màrius Montón e0684b6e40 change types from uintX_t to std::uintX_t 2021-11-11 17:10:43 +01:00
Màrius Montón a42877ab95 change types from uintX_t to std::uintX_t 2021-11-11 17:10:23 +01:00
Màrius Montón d0f1d2f3b2 Code clean-up 2021-11-11 14:53:26 +01:00
Màrius Montón d8a20db976 New function to increase PC by 2 (incPCby2) instead of a parameter to incPC function, could be faster code. 2021-11-11 14:52:50 +01:00
Màrius Montón de1aa4c7a6 changed C array to std::array 2021-11-09 11:15:36 +01:00
Màrius Montón 49e17203c2 Removed commented out code 2021-11-08 09:50:21 +01:00
Màrius Montón dfeb35ccea Removed double ';' 2021-11-08 09:49:36 +01:00
Màrius Montón 1890b62f07 Changed registers to uint32_t.
Removed unused initializers.
Add cast from uint to int when necessary.
2021-11-08 09:49:08 +01:00
Màrius Montón 908b7e965d Better output, change registers to unsigned int as base. Should be uint32_t? 2021-11-08 09:25:36 +01:00
Màrius Montón e22f321caf Better output 2021-11-08 09:24:57 +01:00
Màrius Montón e9e4543f72 Exception doesn't stop simulation 2021-11-08 09:24:43 +01:00
Màrius Montón 08d699d34e If write to HOST, stop simulation 2021-11-08 09:21:59 +01:00
Màrius Montón a4db8c1929 Merge branch 'master' of https://github.com/mariusmm/RISC-V-TLM 2021-09-01 09:12:16 +02:00
Màrius Montón bc1e49dc41 flush out stream when C.EBREAK 2021-09-01 09:12:13 +02:00
Màrius Montón f029d365be Unaligned jalr raise exception, ecall raise exception 2021-09-01 09:11:45 +02:00
hsufit 293b7926f6
Add missing colon for C_extension instruction log
Better for analysis the RISC-V code stream
2021-08-20 16:23:19 +08:00
hsufit cc5a14e1cd
Add missing colon for BASIC instruction log
Better for analysis the RISC-V code stream
2021-08-20 16:19:26 +08:00
Màrius Montón 06748d99bc New options to use with riscv-arch-test suite 2021-07-04 22:48:10 +02:00
Màrius Montón 56c5203899 Use real addresses in memory, extend memory size fo 0xFFFFFFFF 2021-07-04 22:47:47 +02:00
Màrius Montón 34a8f66035 Simplified extension check 2021-07-04 22:46:41 +02:00
Màrius Montón 5f47a8a906 Flush log file to save all data to disk before close simulator. 2021-06-30 17:28:10 +02:00
Màrius Montón c9bab2ae27 Remove SC_MODULE macros, other trivial code clean-up 2021-06-30 15:37:18 +02:00
Màrius Montón 40c9d678ef code clean-up (using clang-tidy) 2021-04-26 00:38:47 +02:00
Màrius Montón 08bb222df9 code clean-up (using clang-tidy) 2021-04-26 00:36:46 +02:00
Màrius Montón 1777a3bc9a code clean-up (using clang-tidy) 2021-04-26 00:20:29 +02:00
Màrius Montón 3b3813bd07 code clean-up (using clang-tidy) 2021-04-25 19:52:12 +02:00
mariusmonton 295e86a324 fixed (silly way) unused ret value 2021-02-21 20:54:15 +01:00
mariusmonton bfb537e0d5 deprecated constructor 2021-02-21 20:53:39 +01:00
Màrius Montón e340264670 fixed some bug, removed cout output 2021-02-21 19:32:52 +01:00
Màrius Montón 0e80259674 call to sc_module constructor 2021-02-21 16:17:57 +01:00
mariusmonton ea04c6ac37 fixe enum name 2021-02-21 14:04:24 +01:00
mariusmonton 512e701f22 removed unused constructor parameters 2021-02-21 14:04:11 +01:00