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
mariusmonton
49103e5591
Prepare for debug
2021-02-21 13:49:05 +01:00
mariusmonton
4c60d6ae75
Prepare for debug
2021-02-21 13:48:41 +01:00
mariusmonton
5927dade4d
check memory boundaries
2021-02-21 13:47:06 +01:00
mariusmonton
9b7b5635d2
removed CPU64 files (unused)
2021-02-02 19:56:14 +01:00
mariusmonton
db682f6055
removed typedef, use default_time instead of fixed time
2021-02-02 19:53:18 +01:00
Màrius Montón
b3b00ac7f3
more performance metrics output
2021-02-01 11:24:53 +01:00
mariusmonton
1d1b6de616
reduce scope variables
2021-01-31 12:09:15 +01:00
mariusmonton
622da9872a
added performace information for data memory accesses
2021-01-31 12:00:25 +01:00
mariusmonton
337e267218
remove unused trace output from destructor
2021-01-31 11:59:56 +01:00
mariusmonton
86b98209ce
exit cleanup, now closes xterm window, etc.
2021-01-31 11:38:57 +01:00
mariusmonton
a48e552926
some methods now are const, reference class parameters, other minor changes
2021-01-23 11:44:10 +01:00
mariusmonton
cb63c65d7f
Implemented C_EBREAK instruction
2021-01-18 09:14:54 +01:00
mariusmonton
286dbf07a6
added const keyword to const methods
2021-01-17 15:40:47 +01:00
Màrius Montón
a019de5eb3
reduce variable scope
2021-01-15 15:51:03 +01:00
mariusmonton
f7dbf106cc
trivial changes to increase performance
2021-01-15 09:09:52 +01:00
mariusmonton
a3ad14b670
Replaced std::endl by \n for Log performance
2020-12-10 18:02:42 +01:00
mariusmonton
1d271cbb0a
explicit sc_core::wait, typos and newline
2020-07-19 11:18:58 +02:00
mariusmonton
abf47625a1
change fixed array for CSR to unordered map
2020-06-21 00:29:45 +02:00
mariusmonton
5b91897244
added likely, unlikely attributes to switch case, could boost perfomance
2020-06-21 00:22:51 +02:00
Màrius Montón
c33524e726
fixed log condition
2020-06-11 09:23:59 +02:00
Màrius Montón
5ee634e4b4
Major refactoring!
...
* A_Instruction, C_Instruction and M_Instruction renamed to *_extension
* These files decode and executes extensions
* These classes use a new base clase extension_base
* Execute & Instruction classes heavyly modified:
* Execute now is BASE_ISA and decodes and executes base ISA, Zicsr & Zifencei
* Instruction keeps the instruction being executed, nothing else
* Add memory interface to ISS to clear the code and the structure
* Removed "using namespace " directives, all classes are called using their namespace
* Added proper header to each file
* Added license to all files
2020-06-02 13:08:38 +02:00
Màrius Montón
9a46e9d0a5
add missing break for case
2020-05-29 16:03:45 +02:00
Màrius Montón
95b9685ad9
removed creation of class every CPU loop. It should get better performance
2020-05-28 17:18:50 +02:00
mariusmonton
ede34d7768
Merge branch 'master' of https://github.com/mariusmm/RISC-V-TLM
2020-04-10 16:43:35 +02:00
mariusmonton
5d30416955
Fixed some warnings from coverity
2020-04-10 16:43:22 +02:00
Màrius Montón
d575410a06
if condition clarified
2019-09-24 11:12:47 +02:00
Màrius Montón
5f0da6b208
fixed potential bug on memcpy
2019-09-24 11:02:15 +02:00
mariusmonton
e75a4bfdfd
add missing CSR register MCYcLE and similars
2019-09-13 00:00:59 +02:00
Màrius Montón
916ab46907
print out test result at the end of simulation
2019-09-10 12:36:45 +02:00
Màrius Montón
d63d95f634
fixed bug related DMI access when memory offset != 0
2019-09-10 12:24:46 +02:00
Màrius Montón
1bb3200eb6
add destructor for clean exit
2019-09-08 11:42:05 +02:00
Màrius Montón
1babf6cb88
added sc_stop at the end of the simulation to call destructors
2019-09-08 11:41:30 +02:00
Màrius Montón
0415ba3c66
added xterm window for trace output
2019-09-08 11:41:06 +02:00
mariusmonton
d42d67b991
DMI access added (if available)
2019-03-28 22:52:36 +01:00
mariusmonton
5ad8ced434
better log for CSRRW instruction
2019-02-18 13:57:24 +01:00
mariusmonton
a275e0fa24
better support to IRQs
2019-02-18 13:56:47 +01:00
mariusmonton
e31eae3f9e
added command line arguments
2019-02-12 14:08:40 +01:00
mariusmonton
1d4c3ec553
removed unused code
2019-02-12 11:40:25 +01:00
mariusmonton
d62892e3dc
minor changes, better code
2019-02-11 20:26:23 +01:00
mariusmonton
a87743b92d
minor changes
2019-02-11 15:54:13 +01:00
mariusmonton
2c93492ab1
enhanced IRQ support
2019-02-11 15:54:02 +01:00
mariusmonton
4c89c48fb0
removed SP init, moved to CPU module
2019-01-22 18:30:09 +01:00
mariusmonton
d83a15eec5
change log level
2019-01-22 12:47:54 +01:00