Commit Graph

34 Commits

Author SHA1 Message Date
9cc57e7f03 Add launch argument parser, add debug parameter to machine
burritos now launch binary
2023-04-06 13:27:03 +02:00
24be35547e Add Exit Exception 2023-04-05 12:01:31 +02:00
François Autin
ba8e36ea90
:rotating_lights: Small lint fixes 2023-03-27 11:35:04 +02:00
1b44949842 remove machine from system 2023-03-22 15:48:29 +01:00
François Autin
1906ec836c
Moved to reference passing system 2023-03-15 15:20:20 +01:00
7de7f2e007 Fix scheduler switch_to by making a lot of change(use smart pointers in place of lifetime reference) 2023-03-13 21:47:06 +01:00
5a6a70f1b7 Force the compiler and clippy to return a warning when a function isn't documented 2023-03-13 14:51:32 +01:00
François Autin
177abfe846
Renamed Machine::init_machine and fixed stack overflow by allocating main_memory to the heap 2023-03-11 23:49:20 +01:00
1f54ed35db Implement thread#t_yield() 2023-03-11 14:48:56 +01:00
6820086579
Added thread manager 2023-03-10 19:04:23 +01:00
François Autin
b59fb83e60
Main now initializes System object 2023-03-10 19:04:21 +01:00
407480bcd4
Add double linked list 2023-03-10 19:01:21 +01:00
a38251c111
Add kernel mod 2023-03-10 19:01:20 +01:00
Baptiste
075d6cb737 add tests run programs 2023-03-08 17:58:38 +01:00
François Autin
58890d85d1
Fixed naming conventions not followed 2023-03-08 13:05:59 +01:00
Baptiste
1e2e537ec9 compare mem_checker and machine 2023-03-07 17:32:59 +01:00
Baptiste
d352f5dcd2 fix jal, branch instr & LD. + better print for machine status 2023-03-06 13:50:45 +01:00
amaury
cef082bfd5 ajout des mémoires nachos de tous les tests 2023-03-06 11:19:00 +01:00
Baptiste
6f6191ea3c memory.txt can be execute 2023-03-05 23:49:28 +01:00
Baptiste
5a90419ebb change memory to a vector, it can now be fill 2023-03-01 16:12:46 +01:00
Baptiste
73c49414ff print_memory dans Machine 2023-03-01 15:11:35 +01:00
Baptiste
39b7db864a calling mem_checker in main 2023-02-15 18:01:50 +01:00
3762547402 Added OPIW OPs and made some fix (see description)
Fix some warning which appear on clippy
Fix print with 2 OPIW operations
Fix doc in mod.rs
2023-02-04 18:16:52 +01:00
b1909e3280 Moving files to simulator module 2023-01-11 14:58:12 +01:00
Baptiste
4fa691a568 LOAD and BRANCH instructions 2022-11-23 18:04:35 +01:00
Moysan Gabriel
98f4c0b67e base 2022-11-16 16:52:52 +01:00
9a233f3c12 Remove ~60 warnings 2022-11-16 15:48:46 +01:00
Baptiste
240f029881 simulate some instructions 2022-11-09 17:35:16 +01:00
Baptiste
a341493526 first instruction in oneInstruction() 2022-11-09 16:47:26 +01:00
Rémi Rativel
c377929ce1 Creating machine.rs file 2022-11-09 15:59:05 +01:00
Baptiste
7f9fb76513 import Instruction and use print in main 2022-10-26 15:06:37 +02:00
Baptiste
cfb0a8e176 decode (recquire tests) 2022-10-19 17:23:41 +02:00
Baptiste
9748b0f2dc decode & struct Instruction 2022-10-19 16:39:38 +02:00
François Autin
8a59a9341c
Initialized cargo project 2022-10-05 16:30:21 +02:00