Commit graph

170 commits

Author SHA1 Message Date
Jean-Philip Desjardins
340a3525cd Remove boost::filesystem namespace rename. 2019-10-23 20:48:46 -04:00
Jean-Philip Desjardins
7131a28fd4 Remove usage of boost::filesystem. 2019-10-23 20:48:46 -04:00
Jean-Philip Desjardins
2076edf3c0 Fix Linux build. 2019-08-17 13:51:31 -04:00
Jean-Philip Desjardins
7fa83af37b Implement iSetAlarm. 2019-08-16 07:49:13 -04:00
Jean-Philip Desjardins
b5252b704a Properly handle the option field in a semaphore. 2019-05-25 09:12:40 -04:00
Jean-Philip Desjardins
e924176920 Add check to make sure we have enough space for semaphores. 2019-05-25 09:12:40 -04:00
Jean-Philip Desjardins
e2706430aa Add define for SYSCALL table base address. 2019-05-25 09:12:40 -04:00
Jean-Philip Desjardins
3fe943de94 Code style fixes. 2019-02-22 12:43:00 -05:00
Jean-Philip Desjardins
7960620b30 Add basic implementation for SetVTLBRefillHandler. 2019-02-21 18:51:00 -05:00
Jean-Philip Desjardins
0a3c290673 Fix assert condition. 2019-02-21 09:14:03 -05:00
Jean-Philip Desjardins
c7cb9b12c7 Only save/restore thread context when servicing interrupts. 2019-02-12 18:19:09 -05:00
Jean-Philip Desjardins
461d436ef7 Add some constants. 2019-02-12 18:19:09 -05:00
Jean-Philip Desjardins
940dfd378d Set stack size in SetupThread 2019-01-23 20:58:35 -05:00
Jean-Philip Desjardins
1c13863d27 Change the way SifDmaStat operates.
Keep a list of 32 last SifSetDma operations so that every single of them can have their own delay.
This is needed by Super Bust-a-Move 2.
2019-01-23 20:58:35 -05:00
Jean-Philip Desjardins
af7affbdf5 Set initial TIMER3 mode in BIOS. 2019-01-02 21:34:29 -05:00
Jean-Philip Desjardins
503c9fa804 Make sure writes to IMR are 64-bits. 2018-10-29 13:16:11 -04:00
Jean-Philip Desjardins
e134feca03 Fix parameters not being passed properly in ExecPS2. 2018-10-11 12:41:37 -04:00
Jean-Philip Desjardins
64c403d5a1 Code style fixes. 2018-10-04 17:07:48 -04:00
Jean-Philip Desjardins
4f7f899443 Handle case when SetupThread is called on an already setup thread. 2018-10-04 16:05:33 -04:00
Jean-Philip Desjardins
271726cf64 Cleanup. 2018-09-26 12:34:43 -04:00
Jean-Philip Desjardins
622b5e3845 Make sure all interrupts are masked when calling ExecPS2.
Invoking the interrupt handler before SetupThread is called can cause issues.
2018-09-26 12:34:42 -04:00
Jean-Philip Desjardins
4841dd702a Add stubs for TLB handler setters. 2018-09-26 12:34:42 -04:00
Jean-Philip Desjardins
868b2e64f1 Fix trace display bug. 2018-09-26 12:34:42 -04:00
Jean-Philip Desjardins
7b7f724790 Fix SetupThread to set the proper stack top address. 2018-09-02 13:08:23 -04:00
Jean-Philip Desjardins
9003e644b8 Fix formatting. 2018-06-24 22:47:39 -04:00
Jean-Philip Desjardins
8a74095b3f Cleanup. 2018-06-24 22:47:32 -04:00
Jean-Philip Desjardins
2d45f9a268 Implement ReleaseWaitThread in EE kernel. 2018-06-24 22:47:26 -04:00
Jean-Philip Desjardins
73b2239192 Add more warnings. 2018-06-02 15:42:55 -04:00
Jean-Philip Desjardins
e851fe2297 Add warning. 2018-05-25 12:38:59 -04:00
Jean-Philip Desjardins
e6dfdcc513 Add implementation for GetOsdConfigParam.
Just making sure calling that function will return always the same thing.
2018-05-24 13:02:48 -04:00
Clang-Format
acf75535ec Clang format 2018-04-30 21:01:23 +01:00
Jean-Philip Desjardins
6122f674e6 Add guards to prevent unwanted formatting. 2018-04-30 11:19:06 -04:00
Jean-Philip Desjardins
3bcf06e618 CPU is not idle if interrupts are disabled. 2018-04-11 09:53:52 -04:00
Jean-Philip Desjardins
30dabba668 Remove context save/load restore parts in interrupt handler.
Not required anymore because idle thread should always be current thread.
2018-04-06 12:55:34 -04:00
Jean-Philip Desjardins
34a1aff123 Switch out current thread before servicing an interrupt.
This fixes issues with some system calls (ie.: iSignalSema) writing values directly in the thread's context
but not being picked up because the thread's context was not saved.
2018-04-06 12:55:25 -04:00
Jean-Philip Desjardins
ca6cf3fa98 Remove useless speed hack. 2018-03-20 11:01:05 -04:00
Jean-Philip Desjardins
8767f70045 Improve ThreadSwitchContext.
Don't save context if switching out of idle thread.
2018-03-20 11:01:05 -04:00
Jean-Philip Desjardins
1c5ad825c9 Prepend "host:" to executable path when booting ELF. 2018-03-20 10:59:25 -04:00
Jean-Philip Desjardins
b4addb46d5 Remove handler calls return number of remaining handlers. 2018-03-20 10:57:58 -04:00
Jean-Philip Desjardins
7ea18fbc63 Cleanup. 2018-03-20 10:57:58 -04:00
Jean-Philip Desjardins
e46d068c6b Add some assertions. 2018-03-20 10:57:58 -04:00
Jean-Philip Desjardins
32357dd017 Use filesystem::path for BootFromFile parameter. 2017-12-02 12:56:02 -05:00
Jean-Philip Desjardins
a22784d290 Don't switch threads if SetupThread has not been called. 2017-09-04 18:40:46 -04:00
Jean-Philip Desjardins
776b293d77 Set EIE flag on reset. 2017-09-04 18:40:46 -04:00
Jean-Philip Desjardins
6aedcff8a0 Fix build. 2017-09-04 18:40:18 -04:00
Jean-Philip Desjardins
235f323e6e Report proper executable path in command line arguments. 2017-09-04 18:40:18 -04:00
Mahmood(Thunder07)
97c229ec98 Cleanup
Silence:"warning: '0' flag ignored with precision and ‘%X’ gnu_printf format"
2017-05-29 06:01:32 +01:00
Jean-Philip Desjardins
ba2b870949 Remove extraneous space. 2017-04-16 20:03:04 -04:00
Mahmood(Thunder07)
83401bb604 Remove boost lexical_cast usage.
fix build
2017-04-13 18:16:35 +01:00
Jean-Philip Desjardins
827da47a2c Use GetStructPtr to obtain pointer to string address. 2017-02-24 00:39:54 -05:00