Jean-Philip Desjardins
2f703fd869
Fix ReferThreadStatus return value.
...
Fixes MGS2's codec sequence.
2021-03-24 16:56:12 -04:00
Jean-Philip Desjardins
053c00e234
Tweak logging.
2021-03-09 13:07:02 -05:00
Jean-Philip Desjardins
ef3e3fb101
Limit to 50FPS on PAL.
2021-02-24 16:04:10 -05:00
Jean-Philip Desjardins
d53521bfcf
Add widescreen mode.
2020-12-31 16:55:25 -05:00
Jean-Philip Desjardins
3a1ed208ac
Add way to change the system's language.
2020-09-09 17:13:17 -04:00
Jean-Philip Desjardins
c1b6e39812
Remove some old style pointer handling.
2020-09-09 10:58:50 -04:00
Jean-Philip Desjardins
8f41fe42ca
Reset TLB handlers on initialization.
2020-08-06 16:57:13 -04:00
Jean-Philip Desjardins
23cce97db2
Add basic TLB support.
...
Only enabled if exception handlers are set.
2020-08-06 16:57:13 -04:00
Jean-Philip Desjardins
38052e1fae
Use GetStructPtr.
2020-04-27 12:45:54 -04:00
Jean-Philip Desjardins
58e42d5fac
Use GetStructPtr to obtain VsyncFlag locations.
...
Fixes Gundam Musou 2.
2020-04-22 14:53:08 -04:00
Jean-Philip Desjardins
06e78653ea
Hook Mc2 functions when specific IOP modules are loaded.
2020-04-20 11:14:36 -04:00
Jean-Philip Desjardins
9ee7e8fedf
Hook Mc2 functions somewhere else.
...
Will change again later.
2020-04-20 11:14:36 -04:00
Jean-Philip Desjardins
13923bd8a4
Initial version of libmc2 HLE.
2020-04-20 11:14:32 -04:00
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