Commit Graph

1099 Commits (4cd21b43c1e28933898c4a2e829555efe22ff12e)

Author SHA1 Message Date
bunnei fdb4ef5210 Merge pull request #289 from lioncash/smops
Join SMUAD, SMUSD, and SMLAD ops. Also fix them as well.
11 years ago
bunnei ec9ac2f51a Merge pull request #290 from lioncash/vsub
armemu: Backport some VFP fixes from 3dmoo.
11 years ago
Normmatt 9c127f4a01 armemu: Fix FTOUI NaN sign. 11 years ago
Normmatt 2ed03c10e0 armemu: Fix FSUBS bug where NaN shouldn't be negated 11 years ago
Lioncash d5bcddb77c armemu: Fix SMUAD, SMUSD, and SMLAD
Wrong values were being multiplied together.
11 years ago
Lioncash 0f9e3baf39 armemu: Join SMUAD, SMUSD, and SMLAD 11 years ago
Lioncash 4c53799229 armemu: Fix lower-bound signed saturation clamping for QADD16/QSUB16. 11 years ago
Lioncash 49817e89d9 armemu: Join QADD16 and QSUB16 together.
The only difference between these ops is one adds and one subtracts. Everything is literally the same.
11 years ago
bunnei cdfa7157eb Merge pull request #286 from yuriks/msvc-fix
Comment out empty arrays causing compile errors in MSVC
11 years ago
Yuri Kunde Schlesner 082bf803ab Comment out empty arrays causing compile errors in MSVC 11 years ago
bunnei a8098187aa Merge pull request #285 from lioncash/uxtab16
armemu: Implement UXTAB16
11 years ago
bunnei cd2a31eaf4 Merge pull request #283 from yuriks/archive-refactor
Archive refactor
11 years ago
Yuri Kunde Schlesner 666f6deb47 Work around libstdc++'s lack of support for std::hash on enums 11 years ago
Yuri Kunde Schlesner 83e6e4ffec FS.Archive: Clean up treatment of archives and their handles
- Refactor FS::Archive internals to make Archive creation and lifetime
  management clearer.
- Remove the "Archive as a File" hack.
- Implement 64-bit Archive handles.
11 years ago
Yuri Kunde Schlesner 0931a42af0 Service.FS: Rename FileSys::File to FileBackend 11 years ago
Yuri Kunde Schlesner d51afab0bc Service.FS: Rename FileSys::Directory to DirectoryBackend 11 years ago
Yuri Kunde Schlesner 82fe821e87 Service.FS: Rename FileSys::Archive to ArchiveBackend 11 years ago
Yuri Kunde Schlesner f6153679b0 Service.FS: Do archive registration using IdCode instead of name 11 years ago
Yuri Kunde Schlesner ca67bb7945 HLE: Rename namespaces to match move & fix initialization order 11 years ago
Yuri Kunde Schlesner c72ccfa6db HLE: Move kernel/archive.* to service/fs/ 11 years ago
Lioncash 1c7f77334c armemu: Implement UXTAB16 11 years ago
bunnei 5df176425b Merge pull request #282 from archshift/services
Added stubs for ldr:ro, cecd:u, nim:aoc, and am:app services
11 years ago
bunnei 0fd731ee63 Merge pull request #281 from lioncash/uxtb16
armemu: Fix UXTB16
11 years ago
archshift 89eef9eb6d Added stub for nim:aoc service... 11 years ago
archshift 1356a6b313 Added stub for cecd:u service...
I couldn't find any information about this service...
11 years ago
archshift 6117fad036 Added stub for ldr:ro service... 11 years ago
archshift 6b51683bb1 Added am:app service stub.
Apparently nothing at all is known about this service...
11 years ago
Yuri Kunde Schlesner e321decf98 Remove SyncRequest from K::Object and create a new K::Session type
This is a first step at fixing the conceptual insanity that is our
handling of service and IPC calls. For now, interfaces still directly
derived from Session because we don't have the infrastructure to do it
properly. (That is, Processes and scheduling them.)
11 years ago
Lioncash 2b0acd36e1 armemu: Fix UXTB16
Rotation bits are 10 and 11, not 9 and 10.
11 years ago
bunnei 1ee740898a Merge pull request #276 from lioncash/decrappify
Clean up armdefs.h a little.
11 years ago
bunnei 17b4d6747a Merge pull request #246 from Subv/cbranch_1
SVC: Implemented Semaphores
11 years ago
bunnei 2cac148ff3 Merge pull request #273 from bunnei/more-skyeye-fixes
ARM: Pull some SkyEye fixes from 3dmoo.
11 years ago
bunnei d26b7146ce ARM: Pull some SkyEye fixes from 3dmoo. 11 years ago
Lioncash f6cb8c1927 Clean up armdefs.h 11 years ago
Yuri Kunde Schlesner ac87c3b0d0 Restore the original console color after logging a message.
Fixes #277
11 years ago
Subv 1051795c32 Kernel/Semaphores: Fixed build 11 years ago
Subv ea95876431 Kernel/Semaphore: Small style change 11 years ago
Subv effb181888 Kernel/Semaphores: Invert the available count checking.
Same semantics, idea by @yuriks
11 years ago
Subv 5e25986235 Kernel/Semaphores: Addressed some issues. 11 years ago
Subv cc81a510e3 Semaphore: Removed an unneeded function 11 years ago
Subv 61434651d8 Semaphores: Addressed some style issues 11 years ago
Subv abff4a7ee2 Semaphore: Implemented the initial_count parameter. 11 years ago
Subv 49b31badba SVC: Implemented ReleaseSemaphore.
This behavior was tested on hardware, however i'm still not sure what use the "initial_count" parameter has
11 years ago
Subv 82c84883a5 SVC: Implemented svcCreateSemaphore
ToDo: Implement svcReleaseSemaphore
* Some testing against hardware needed
11 years ago
Lioncash cfc0ee9c60 kernel: Remove unused log arguments 11 years ago
Yuri Kunde Schlesner 4d2a6f8b9b Remove old logging system 11 years ago
Yuri Kunde Schlesner 0e0a007a25 Add configurable per-class log filtering 11 years ago
Yuri Kunde Schlesner 0600e2d8b5 Convert old logging calls to new logging macros 11 years ago
Yuri Kunde Schlesner 6390c66e95 Implement text path trimming for shorter paths. 11 years ago
Yuri Kunde Schlesner 6b0fb62c47 Re-add coloring to the console logging output. 11 years ago
Yuri Kunde Schlesner 616d874443 New logging system 11 years ago
Yuri Kunde Schlesner 04b1f2936c Add SCOPE_EXIT macro to conveniently execute cleanup actions 11 years ago
Yuri Kunde Schlesner eda30c36ee Added missing include in common_funcs.h 11 years ago
Yuri Kunde Schlesner 8a681cdf3d Remove redundant include from common_funcs.h 11 years ago
bunnei a6791e4fc7 Merge pull request #267 from bunnei/apt-shared-font
APT shared font loading
11 years ago
bunnei 6fe61d3deb APT_U: Added GetSharedFont service function. 11 years ago
Tony Wasserka 33e61ef514 Merge pull request #261 from neobrain/boost
Add Boost as a submodule and add some minor cleanups using Boost.Range
11 years ago
bunnei 988998cca5 DSP: Added stub for ReadPipeIfPossible. 11 years ago
bunnei 5bac72282a Common: Add "sysdata" to GetUserPath and cleanup. 11 years ago
bunnei 4cb7a44d4e MemMap: Renamed "GSP" heap to "linear", as this is not specific to GSP.
- Linear simply indicates that the mapped physical address is always MappedVAddr+0x0C000000, thus this memory can be used for hardware devices' DMA (such as the GPU).
11 years ago
bunnei 3a75c8069e Merge pull request #256 from Subv/mutex
Kernel/Mutex: Properly lock the mutex when a thread enters it
11 years ago
Emmanuel Gil Peyrot 5a3b1b5f44 CFG:U: Store country codes as u16 instead of char pointers, and return the correct error in GetCountryCodeID. 11 years ago
bunnei ae3c6e82f7 Merge pull request #243 from bunnei/fix-gsp-synch
Fix gsp synch
11 years ago
archshift 4763fca9f8 Explicitly specify LE strings to iconv, fixes paths in Steel Diver 11 years ago
bunnei f94d8f9603 GSP: Trigger GPU interrupts at more accurate locations. 11 years ago
bunnei e90b37b935 GSP: Updated TriggerCmdReqQueue to return success code. 11 years ago
bunnei 3e1654eaa8 GSP: Updated RegisterInterruptRelayQueue to return expected magic number. 11 years ago
bunnei 170123982d GPU: Fixed bug in command list size decoding. 11 years ago
Yuri Kunde Schlesner 521e1cb7e0 Remove unused NDMA module 11 years ago
Tony Wasserka 8b8131baec More cleanups. 11 years ago
Tony Wasserka 0305435edd Pica: Re-enable command names on MSVC.
The affected code is no longer limited by compiler support on that platform.
11 years ago
Tony Wasserka ac4d7462cb citra-qt: Rename "Stop Tracing" to "Finish Tracing".
This better reflects that no commands are supposed to show up until you hit the button a second time.
11 years ago
Tony Wasserka 79bb403089 More coding style fixes. 11 years ago
Tony Wasserka 0cd27a511e Some code cleanup. 11 years ago
Tony Wasserka 55ce9aca71 citra-qt: Add pica framebuffer widget. 11 years ago
Tony Wasserka 2793619dce citra_qt: Add enhanced texture debugging widgets.
Double-clicking a texture parameter command in the pica command lists will spawn these as a new tab in the pica command list dock area.
11 years ago
Tony Wasserka fd194d95b0 citra-qt: Add texture viewer to Pica command list.
The texture viewer is enabled when selecting a write command to one of the texture config registers.
11 years ago
Tony Wasserka c63a495de6 Add GUI widget for controlling pica breakpoints. 11 years ago
Tony Wasserka 2c71ec7052 Pica/DebugUtils: Add breakpoint functionality. 11 years ago
Tony Wasserka 706f9c5574 citra-qt: Polish the pica tracing widget.
Changed start/stop button to reflect current tracing status.
Properly labeled column headers.
11 years ago
Tony Wasserka bf6b23f4a0 citra-qt: Add a utility spinbox class called CSpinBox.
This class has a few advantages over the regular QSpinBox:
- QSpinBox stores its as signed 32 bit integers, which for instance is unsuitable for representing memory addresses. CSpinBox uses 64 bit integers instead.
- QSpinBox does not provide an easy way to handle number input from bases different than 10.
- QSpinBox is quite inflexible in general and almost any sort of customization requires reimplementing it anyway.
11 years ago
Tony Wasserka 8db65723d2 Build fix for something which shouldn't have compiled successfully to begin with. 11 years ago
Tony Wasserka 27280f178b Fix some headers to include their dependencies properly. 11 years ago
bunnei b7327f807c Merge pull request #217 from archshift/cmd_buff
Log the cmd_buff arguments when citra comes across an unimplemented function
11 years ago
bunnei dd203f7068 Thread: Fixed to wait on address when in arbitration. 11 years ago
bunnei a6bf3fd613 Merge pull request #244 from bunnei/cleanup-memmap
MemMap: Updated memory map to subtract base address instead of mask.
11 years ago
bunnei f1ec1a0d2c Merge pull request #263 from lioncash/sasx
Fix emulation of SASX and SSAX instructions.
11 years ago
bunnei ff560a9428 Merge pull request #259 from ichfly/master
Loader: Add 3DSX support
11 years ago
bunnei 1f4953e1bb Merge pull request #264 from Subv/files
Kernel/File: Fixed file read/write hwtests
11 years ago
bunnei 72ad73519c Merge pull request #260 from archshift/opendir
Make OpenDirectory fail if the directory doesn't exist
11 years ago
Subv 1d1078fd8b Kernel/File: Fixed file read/write hwtests
The 3DS allows the user to read from files opened with the Write access modifier, even if he did not specify the Read access modifier.

Open the files in binary mode so that we can prevent CR/LF problems in Windows, where a line-end is replaced by these two bytes instead of just 0xA, this was causing problems with the GetSize test
11 years ago
Lioncash 905e3b616a armemu: Fix SSAX 11 years ago
ichfly 1aa969741d Loader: Add 3DSX support 11 years ago
Lioncash 62fd564854 armemu: Fix SASX 11 years ago
Lioncash b4256431aa armemu: Fix parenthesis warnings regarding bitwise ops 11 years ago
Tony Wasserka 3d8c6e61be StringUtil: Perform some minimal cleanup. 11 years ago
Tony Wasserka 4d4572c697 Integrate Boost into build system and perform a trivial cleanup in vertex_shader.cpp. 11 years ago
archshift 20d2ed0950 Make OpenDirectory fail if the directory doesn't exist
This is in line with what the hardware itself does.

It does this by splitting the initial directory opening into Directory.Open(), which will return false if a stat fails.
Then, Archive::OpenDirectory will return nullptr, and archive.cpp will return an error code .
11 years ago
Subv bc318c464b Mutex: Remove some forward declarations
Moved Mutex::WaitSynchronization to the end of the file.
11 years ago
Subv 64128aa61a Mutex: Release all held mutexes when a thread exits. 11 years ago
bunnei 2aa2d341d0 Merge pull request #245 from rohit-n/null-nullptr
Change NULLs to nullptrs.
11 years ago
Subv e3c8e4901c Mutex: Properly lock the mutex when a thread enters it
Also resume only the next immediate thread waiting for the mutex when it is released, instead of resuming them all.
11 years ago
bunnei 17fae11fc7 Merge pull request #250 from Subv/cbranch_2
SVC: Implemented GetThreadId.
11 years ago
bunnei 5056329a80 Merge pull request #222 from archshift/renamexyz
Implemented RenameFile and RenameDirectory in FS:USER
11 years ago
bunnei 21d183e1e6 Merge pull request #248 from lioncash/kernel
Misc minor kernel-related changes.
11 years ago
Subv 6fac2bf0ab Threads: Remove a redundant function.
Use the next_thread_id variable directly.
11 years ago
Subv ef1d5cda06 Threads: Implemented a sequential thread id 11 years ago
archshift 139a4d91d9 Updated archive.cpp functions for proper error handling 11 years ago
Subv 029ff9f1fd SVC: Implemented GetThreadId.
For now threads are using their Handle value as their Id, it should not really cause any problems because Handle values are unique in Citra, but it should be changed. I left a ToDo there because this is not correct behavior as per hardware.
11 years ago
bunnei 846dc72a37 Merge pull request #249 from lioncash/enum
mem_map: Make enum for addresses use u32 as the underlying type
11 years ago
bunnei 306b5392ca Merge pull request #247 from lioncash/const
hid_user: Pass by reference with PadButtonPress/PadButtonRelease
11 years ago
Lioncash 3ba32d2b53 mem_map: Make enum for addresses use u32 as the underlying type 11 years ago
bunnei abbc340957 Merge pull request #238 from archshift/dsp
Add stub for ConvertProcessFromDspDram
11 years ago
archshift a404ad5272 Add stub for ConvertProcessFromDspDram
Should theoretically push retail stuff further along
11 years ago
Lioncash 208598dbe2 kernel: Shorten GetCount 11 years ago
Lioncash 9b68d5e074 kernel: Make some functions const 11 years ago
Lioncash 7ff8f0d916 hid_user: Pass by reference with PadButtonPress/PadButtonRelease 11 years ago
purpasmart96 16fc98af64 PTM_U: Added a stub for GetBatteryLevel & GetBatteryChargeState & GetAdapterState 11 years ago
Rohit Nirmal 8a62423970 Change NULLs to nullptrs. 11 years ago
bunnei 63b1453dd8 Merge pull request #236 from rohit-n/sign-compare
Silence a few -Wsign-compare warnings.
11 years ago
bunnei e5b2733801 Merge pull request #231 from purpasmart96/serv_ac_wifi_status
AC_U: Added a stub for GetWifiStatus
11 years ago
bunnei e2e56c7bac Merge pull request #219 from Subv/ptm
PTM_U: Implemented the GetShellState function.
11 years ago
bunnei e3886adc22 MemMap: Updated memory map to subtract base address instead of mask.
- More readable, a little less error prone.

Conflicts:
	src/core/mem_map.h
	src/core/mem_map_funcs.cpp
11 years ago
purpasmart96 32d420330d AC_U: Added a stub for GetWifiStatus 11 years ago
Rohit Nirmal f9b53c3e94 Silence a few -Wsign-compare warnings. 11 years ago
bunnei d5be332d21 Merge pull request #237 from vaguilar/fix-viewport
Fixed viewport error caused by rounding
11 years ago
bunnei 884ecd58ea Merge pull request #224 from bunnei/dsp-service-improvements
Dsp service improvements
11 years ago
bunnei b0a5b3d986 Merge pull request #214 from Subv/master
CFG:U: Implemented the GetCountryCodeID and GetCountryCodeString
11 years ago
bunnei 1827bb1fcc Merge pull request #196 from archshift/settings
Merge Config::ReadXYZs
11 years ago
bunnei 3e286fff7c DSP: Added stubs for several commonly used DSP service functions. 11 years ago
bunnei 45fd3fe5c4 DSP: Fixed typo in port name. 11 years ago
Subv 4cdaac44d3 PTM_U: Implemented the GetShellState function. 11 years ago
vaguilar 95b33ee0a7 Fixed viewport error caused by rounding 11 years ago
bunnei e3d1ffff4b Merge pull request #225 from bunnei/fix-release-mutex
Mutex: Changed behavior to always release mutex for all threads.
11 years ago
bunnei a5afad0937 Merge pull request #226 from bunnei/svc-and-thread-fixes
Svc and thread fixes
11 years ago
bunnei 2ad9ad9297 Merge pull request #228 from linkmauve/glfw-error
GLFW: Add an error callback before calling glfwInit()
11 years ago
bunnei 13005d54aa Merge pull request #235 from yuriks/dyncom-map
dyncom: Use unordered_map rather than the terrible 2-level bb_map
11 years ago
Subv 5753da89e4 CFG:U: Implemented the GetCountryCodeID and GetCountryCodeString. 11 years ago
Emmanuel Gil Peyrot 648743cf66 GLFW: Add an error callback before calling glfwInit()
It will print a message to know what happened in case something went wrong in a GLFW call.

Also replace every printf() in the glfw emu-window by ERROR_LOG().
11 years ago
Yuri Kunde Schlesner 4a68e91a62 dyncom: Use unordered_map rather than the terrible 2-level bb_map
Seems (probably just placebo/wishful thinking) to make it slightly
faster. Also reduces memory usage and makes shutdown when debugging from
MSVC fast.
11 years ago
Lioncash 4f28861008 arm_dyncom_interpreter: Get rid of unused var warnings 11 years ago
vaguilar 223e76d51d Fixed formatting and switch statement warnings 11 years ago
bunnei de851ba1a1 Thread: Check that thread is actually in "wait state" when verifying wait. 11 years ago
bunnei f985469901 SVC: Add debug log to ArbitrateAddress. 11 years ago
bunnei e0e7443517 SVC: SleepThread should yield to the next ready thread. 11 years ago
bunnei a449e0e11a Mutex: Changed behavior to always release mutex for all threads. 11 years ago
Emmanuel Gil Peyrot f8c05e53c4 Remove unused includes to common/thread.h 11 years ago
archshift 43a682a106 Log the cmd_buff arguments when citra comes across an unimplemented function 11 years ago
archshift e5ff01c2cd Implemented RenameDirectory in FS:USER 11 years ago
archshift 45afc15aa6 Implemented RenameFile in FS:USER 11 years ago