summaryrefslogtreecommitdiffstats
path: root/src/core/arm/skyeye_common (follow)
Commit message (Collapse)AuthorAgeFilesLines
* arm: Remove SkyEye/Dyncom code that is ARMv6-only.bunnei2018-01-0312-6168/+0
|
* logging: Rename category "Core_ARM11" to "Core_ARM".bunnei2017-10-235-71/+71
|
* Dyncom: Use size_t instead of int to store the instruction offsets in the instruction cache.Subv2017-08-211-1/+1
| | | | Fixes a few warnings.
* Merge pull request #2692 from Subv/vfp_ftzSebastian Valle2017-05-222-0/+26
|\ | | | | Dyncom/VFP: Convert denormal outputs into 0 when the FTZ flag is enabled.
| * fixup! Dyncom/VFP: Convert denormal outputs into 0 when the FTZ flag is enabled.Subv2017-05-222-4/+0
| |
| * Dyncom/VFP: Convert denormal outputs into 0 when the FTZ flag is enabled.Subv2017-05-082-0/+30
| | | | | | | | Inputs are still not flushed to 0 if they are denormals.
* | Merge pull request #2694 from Subv/vfp_vsub_ftzMerry2017-05-221-2/+12
|\ \ | | | | | | Dyncom/VFP: Perform flush-to-zero on the second operand of vsub before sending it to vadd.
| * | Dyncom/VFP: Perform flush-to-zero on the second operand of vsub before sending it to vadd.Subv2017-05-141-2/+12
| |/ | | | | | | | | | | | | | | | | Previously we were letting vadd flush the value to positive 0, but there are cases where this behavior is wrong, for example, vsub: -0 - +0 = -0 vadd: -0 + +0 = +0 Now we'll flush the value to +0 inside vsub, and then negate it.
* | Dyncom/VFP: Strip the VFP_NAN_FLAG sentinel value when setting vfp exceptions.Subv2017-05-092-2/+2
| |
* | Revert "Remove `exceptions` parameter from `normaliseround` VFP functions"Subv2017-05-093-57/+28
|/ | | | | | | | | This reverts commit edf30d84cc0e8299d61c98f5bb40a6428d1576bc. Conflicts: src/core/arm/skyeye_common/vfp/vfp_helper.h src/core/arm/skyeye_common/vfp/vfpdouble.cpp src/core/arm/skyeye_common/vfp/vfpsingle.cpp
* gdbstub: Remove global variable from public interfaceLioncash2016-12-151-1/+1
| | | | | | | | | Currently, this is only ever queried, so adding a function to check if the server is enabled is more sensible. If directly modifying this externally is ever desirable, it should be done by adding a function to the interface, rather than exposing implementation details directly.
* Use negative priorities to avoid special-casing the self-includeYuri Kunde Schlesner2016-09-215-5/+5
|
* Remove empty newlines in #include blocks.Emmanuel Gil Peyrot2016-09-215-9/+4
| | | | | | | This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
* Manually tweak source formatting and then re-run clang-formatYuri Kunde Schlesner2016-09-193-11/+11
|
* Sources: Run clang-format on everything.Emmanuel Gil Peyrot2016-09-1811-1216/+870
|
* arm_dyncom_interpreter: Rename anonymous enum to TransExtDataarchshift2016-06-111-32/+32
|
* Merge pull request #1568 from JayFoxRox/fix-printfMat M2016-05-272-26/+57
|\ | | | | Fix ftoi and disable VFPv3
| * Fix ftoi behaviourJannik Vogel2016-05-162-22/+53
| |
| * Respect fpscr in ftoizJannik Vogel2016-05-162-4/+4
| |
* | Remove `exceptions` parameter from `normaliseround` VFP functionsJannik Vogel2016-05-183-28/+57
| |
* | Fix exception propagation for VFP single precisionJannik Vogel2016-05-182-33/+38
| |
* | Fix exception propagation for VFP double precisionJannik Vogel2016-05-182-34/+39
|/
* armstate: Correct FIQ register bankingLioncash2016-03-211-4/+3
| | | | FIQ has seven banked registers (R8 to R14), not two.
* dyncom: Remove static keyword from header functionsLioncash2015-12-061-16/+16
|
* dyncom: const correctness changesLioncash2015-12-061-4/+4
|
* armstate: Zero out the registers on creationLioncash2015-11-291-11/+11
| | | | | std::array isn't always guaranteed to explicitly zero out it's contents without an initializer list.
* Merge pull request #1122 from polaris-/gdbstubbunnei2015-11-122-0/+37
|\ | | | | gdbstub implementation
| * Implement gdbstubpolaris-2015-10-042-0/+37
| |
* | CitraQt, SkyEye, Loader, VideoCore: Remove newlines in LOG_* calls.Emmanuel Gil Peyrot2015-10-093-45/+45
|/ | | | The LOG_* function itself already appends one.
* general: Silence some warnings when using clangLioncash2015-09-161-1/+0
|
* General: Replace NULL and '0' usages with nullptr where applicableLioncash2015-09-112-28/+28
|
* DynCom: Converted all 0xE condition code checks to ConditionCode::ALarchshift2015-09-061-32/+32
|
* Merge pull request #1025 from yuriks/heap-managementYuri Kunde Schlesner2015-08-222-2/+0
|\ | | | | Kernel: Correct(er) handling of Heap and Linear Heap allocations
| * Memory: Move address type conversion routines to memory.cpp/hYuri Kunde Schlesner2015-08-162-2/+0
| | | | | | | | | | These helpers aren't really part of the kernel, and mem_map.cpp/h is going to be moved there next.
* | vfp: use std::swap where applicableLioncash2015-08-162-12/+6
|/
* Merge pull request #1027 from lioncash/debuggerbunnei2015-08-141-1/+1
|\ | | | | debugger: Add the ability to view VFP register contents
| * arm_interface: Implement interface for retrieving VFP registersLioncash2015-08-071-1/+1
| |
* | ARM Core, Video Core, CitraQt, Citrace: Use CommonTypes types instead of the standard u?int*_t types.Emmanuel Gil Peyrot2015-08-111-8/+9
|/
* dyncom: Handle the case where PC is the source register for STR/VSTM/VLDMLioncash2015-07-291-20/+34
|
* dyncom: Migrate exclusive memory access control into armstateLioncash2015-07-281-3/+22
|
* dyncom: Use std::array for register arraysLioncash2015-07-261-24/+25
|
* dyncom: Use ARMul_State as an objectLioncash2015-07-267-801/+833
| | | | Gets rid of C-like parameter passing.
* dyncom: Remove unnecessary initialization code.Lioncash2015-07-263-52/+2
| | | | | | Targeting ARM version variants was only a thing on armemu. The reset routine also does basically the same thing as NewState.
* dyncom: Remove unnecessary abort-related cruftLioncash2015-07-261-45/+1
| | | | Both the MPCore and the ARM9 have the same data abort model (base restored), so differentiating isn't necessary.
* dyncom: Rename armdefs.h to armstate.hLioncash2015-07-266-24/+24
|
* dyncom: Get rid of skyeye typedefsLioncash2015-07-265-45/+40
|
* dyncom: Move helper functions to their own headerLioncash2015-07-264-38/+48
|
* dyncom: Move arminit.cpp and armsupp.cpp into skyeye_commonLioncash2015-07-262-0/+765
|
* armdefs: Remove unnecessary extern keywordsLioncash2015-07-261-25/+25
|
* Merge pull request #876 from linkmauve/include-cleanupsYuri Kunde Schlesner2015-07-112-4/+6
|\ | | | | Cleanup includes, mostly in common
| * Core, VideoCore: Replace or fix exit() calls.Emmanuel Gil Peyrot2015-06-282-4/+6
| |
* | vfp: Change return type of VFPInit from unsigned int to void.Lioncash2015-06-292-4/+2
| |
* | vfp: Handle accesses to FPINST/FPINST2 system registersLioncash2015-06-294-42/+53
|/ | | | Also has a side-benefit of correcting access to the FPEXC register.
* vfp: Handle accesses to the VFP media feature registersLioncash2015-06-133-4/+8
| | | | These are able to be accessed in any privilege mode.
* vfp: Implement VMOVBCR/VMOVBRCLioncash2015-06-122-5/+8
|
* Remove every trailing whitespace from the project (but externals).Emmanuel Gil Peyrot2015-05-292-5/+5
|
* dyncom: Get rid of armemu.hLioncash2015-05-242-47/+28
|
* dyncom: remove load_r15 from arm_instLioncash2015-05-231-128/+96
| | | | It's entirely unused. Also allows getting rid of more clunky macros.
* VFP: Log as trace to get rid of spamming.bunnei2015-05-231-23/+23
|
* dyncom: Eliminate clang warningsLioncash2015-05-212-5/+3
| | | | Gets rid of a whole load of missing brace initialization warnings.
* Merge pull request #772 from lioncash/warnbunnei2015-05-182-6/+6
|\ | | | | core/video_core: Fix a few warnings when compiling on MSVC.
| * vfp: Get rid of warningsLioncash2015-05-142-6/+6
| | | | | | | | | | - Unary minus operator applied to unsigned type. - Unsafe use of bool.
* | Merge pull request #770 from lioncash/dyncom_cleanbunnei2015-05-151-64/+64
|\ \ | | | | | | dyncom: Minor cleanup.
| * | dyncom: Remove unnecessary typedefsLioncash2015-05-141-64/+64
| |/
* / Memmap: Re-organize memory function in two filesYuri Kunde Schlesner2015-05-151-1/+1
|/ | | | | | | memory.cpp/h contains definitions related to acessing memory and configuring the address space mem_map.cpp/h contains higher-level definitions related to configuring the address space accoording to the kernel and allocating memory.
* vfp: Handle flush-to-zero mode.Lioncash2015-05-113-84/+98
|
* Remove unnecessary dyncom header filesLioncash2015-05-083-71/+0
|
* Common: Remove common.hYuri Kunde Schlesner2015-05-071-1/+0
|
* Clean-up includesYuri Kunde Schlesner2015-05-071-0/+2
|
* Dyncom: Move cream cache to ARMul_State.bunnei2015-05-021-0/+6
|
* dyncom: Remove more unused/unnecessary codeLioncash2015-04-202-64/+1
| | | | Gets rid of a sizeable amount of stuff in armdefs.
* dyncom: Remove unused/unnecessary VFP cruftLioncash2015-04-184-671/+7
|
* Core_ARM11: Replace debug prints with our own logging functions in vfpsingle.Emmanuel Gil Peyrot2015-04-142-39/+36
|
* dyncom: Remove unnecessary enum and typedefLioncash2015-04-071-25/+0
| | | | Also fixes descriptions in the process.
* vfp: Make the FPSID values match the MPCoreLioncash2015-04-061-7/+7
|
* vfp: Get rid of the VFP_OFFSET macroLioncash2015-04-065-64/+69
|
* Move CP15 enum definitions into their own enum.Lioncash2015-04-062-23/+19
| | | | Also gets rid of preprocessor mumbo-jumbo
* dyncom: Move CP15 register writing into its own function.Lioncash2015-04-022-0/+34
| | | | Also implements writing to the rest of the ARM11 MPCore CP15 register set.
* dyncom: Move CP15 register reading into its own function.Lioncash2015-04-022-5/+54
| | | | Keeps everything contained. Added all supported readable registers in an ARM11 MPCore.
* dyncom: Migrate InAPrivilegedMode to armsuppLioncash2015-03-261-0/+1
| | | | It's a generic helper function, so it should be here anyway.
* armmmu: Remove unnecessary enum valuesLioncash2015-03-211-30/+20
| | | | We don't need to care about XScale or Intel specific ARM stuff.
* dyncom: Make Load/Store instructions support big endianLioncash2015-03-173-30/+130
|
* vfp: Get rid of warningsLioncash2015-03-042-4/+4
|
* arm: Remove unnecessary booleansLioncash2015-02-251-18/+5
| | | | We don't care about any of these.
* vfpinstr: Fix trivial signed/unsigned mismatch warningsLioncash2015-02-181-4/+4
|
* vfpdouble: Use %p for printing pointer addresses.Lioncash2015-02-151-2/+2
|
* arm: Set the A bit on reset.Lioncash2015-02-151-1/+1
| | | | This enum value is ORed against in ARMul_Reset (and used to refer to all interrupt bits in the CPSR). So simply updating this is enough.
* core: Apply static to local functionsLioncash2015-02-131-32/+32
|
* arm: General cleanupLioncash2015-02-136-129/+57
| | | | | | | - Remove several typedefs for ARMul_State. - Remove unused functions - Remove unused/unnecessary headers - Removed unused enums, etc.
* dyncom: Switch the app and system cores into the correct mode at initializationLioncash2015-02-131-2/+2
|
* dyncom: Clean up the constructorLioncash2015-02-131-5/+0
| | | | Some function calls aren't necessary and would be handled by regular initialization routines.
* arm: Remove ARMul_EmulateInitLioncash2015-02-122-9/+0
| | | | This was only used for armemu, which has since been removed. Removed components related to this as well.
* armdefs: Remove unnecessary extern CLioncash2015-02-121-6/+0
|
* arm: Remove ARM26 support.Lioncash2015-02-111-20/+0
| | | | This will never be used. 32-bit is the norm.
* arm: Get rid of some magic constants. Specify proper ARM mode.Lioncash2015-02-111-0/+7
| | | | Initially, we were starting the emulator in USER26MODE, which is incorrect, this should be USER32MODE.
* arm: Change some more constants into enumsLioncash2015-02-112-21/+30
|
* arm: Remove TRUE/FALSE definesLioncash2015-02-102-16/+10
| | | | | - Removed the Debug parameter from ARMul_State since it isn't used. - Changed ARMul_CoProInit to a void function. It always returned true.
* Merge pull request #553 from lioncash/denormbunnei2015-02-102-0/+6
|\ | | | | vfp: Normalize accumulator for multiply accumulate instructions
| * vfp: Normalize accumulator for multiply accumulate instructionsLioncash2015-02-102-0/+6
| |
* | dyncom: Add more regs to MCR/MRCLioncash2015-02-101-1/+3
|/ | | | Adds the registers that were left out of some coprocessor ranges.
* vfpdouble: Fix the FTOUI NaN sign settingLioncash2015-02-091-1/+1
| | | | This was fixed for vfpsingle, but not vfpdouble
* Throw more unused/unnecessary VFP code outLioncash2015-02-093-215/+1
|
* vfp_helper: Convert some flags to enums. Throw out more duplicated FPSCR stuffLioncash2015-02-094-192/+153
|
* vfp_helper: Normalize tabs to spacesLioncash2015-02-091-172/+170
|
* vfp_helper: Remove unnecessary extern C blocksLioncash2015-02-061-17/+1
|
* vfp: Move FPSID, FPEXC, and FPSCR values over to enums.Lioncash2015-02-063-150/+104
| | | | Also got rid of duplicate definitions of some of these values.
* Merge pull request #537 from lioncash/vfpbunnei2015-02-041-6/+6
|\ | | | | vfp: Fix VCVT
| * vfp: Fix VCVTLioncash2015-02-041-6/+6
| | | | | | | | | | These variants exclusively read from the single precision regs and write to double-precision registers Fixes issues where converted values would be way off from what they should be due to the results being stored in the wrong registers.
* | vfp: Throw out unused codeLioncash2015-02-042-1765/+0
|/
* Merge pull request #525 from lioncash/armwarnbunnei2015-02-012-6/+3
|\ | | | | vfp: Get rid of some compile warnings
| * vfp: Get rid of some compile warningsLioncash2015-02-012-6/+3
| |
* | arm: Clean up ARMul_StateLioncash2015-02-011-110/+71
|/ | | | Remove unnecessary/unused struct variables.
* arm: Adios armemuLioncash2015-02-013-821/+108
|
* arm: Move headers over to pragma onceLioncash2015-01-305-23/+9
|
* arm: Get rid of armcpu.h and skyeye_types.hLioncash2015-01-302-109/+0
|
* arm: Clean out armos.h and armmmu.hLioncash2015-01-302-181/+23
|
* arm: Throw out a lot of unnecessary codeLioncash2015-01-303-279/+20
|
* armdefs: Move some defines over to enumsLioncash2015-01-301-131/+112
|
* Update vfp.cppbunnei2015-01-271-1/+1
| | | VFP: Changed a debug log to trace.
* Merge pull request #410 from chinhodado/cleanupbunnei2015-01-244-432/+151
|\ | | | | Cleanup: Logging in Core
| * Cleanup: Logging in CoreChin2015-01-194-432/+151
| |
* | vfp: Clean up vertical alignment for instructionsLioncash2015-01-231-131/+125
| |
* | dyncom: Clarify precedence for ternary statementsLioncash2015-01-202-2/+2
|/
* vfp: Remove dead codeLioncash2015-01-121-50/+14
|
* dyncom: Add a helper function for addition with a carryLioncash2015-01-121-0/+1
|
* Merge pull request #417 from kevinhartman/exclusive-tag-fixbunnei2015-01-061-11/+11
|\ | | | | Added exclusive reservation granule from ARMv7 spec to dyncom...
| * Added exclusive reservation granule from ARMv7 spec to dyncom to protect LDR/STREX.Kevin Hartman2015-01-061-11/+11
| |
* | Merge pull request #418 from lioncash/qdbunnei2015-01-052-5/+6
|\ \ | | | | | | dyncom: Implement QADD/QSUB/QDADD/QDSUB
| * | dyncom: Implement QADD/QSUB/QDADD/QDSUBLioncash2015-01-052-5/+6
| |/
* / skyeye: Remove duplicate typedefsLioncash2015-01-041-27/+3
|/ | | | citra already has its own typedefs like this.
* VFP: Minor cleanup, functionally the same.bunnei2015-01-031-2587/+2476
|
* dyncom: Implement SMLAD/SMUAD/SMLSD/SMUSDLioncash2015-01-032-1/+2
|
* dyncom: Massive refactorbunnei2014-12-311-140/+30
|
* vfp: Get rid of a few warningsLioncash2014-12-302-2/+2
|
* vfp: Implement VMOVBRRSSLioncash2014-12-303-12/+44
|
* dyncom: Implement USAT/SSATbunnei2014-12-301-0/+2
|
* dyncom: Various cleanups to match coding style, no functional changes.bunnei2014-12-301-32/+0
|
* armemu: Implement QADD8/QSUB8Lioncash2014-12-291-0/+5
|
* vfp: Actually make the code somewhat readableLioncash2014-12-293-1650/+944
|
* dyncom: Implement USAD8/USADA8Lioncash2014-12-282-1/+1
|
* Merge pull request #354 from lioncash/usaduflowbunnei2014-12-281-0/+1
|\ | | | | armemu: Fix underflows in USAD8/USADA8
| * armemu: Fix underflows in USAD8/USADA8Lioncash2014-12-281-0/+1
| | | | | | | | Initially reported by xdec.
* | dyncom: Implement UQADD8, UQADD16, UQSUB8, UQSUB16, UQASX, and UQSAX.Lioncash2014-12-272-4/+5
| |
* | armemu: Implement UQADD8, UQADD16, UQSUB16, UQASX, and UQSAXLioncash2014-12-271-0/+4
|/
* armemu: Set the Q flag properly for SMLAD/SMUADLioncash2014-12-231-0/+1
|
* armemu: Fix construction of the CPSRLioncash2014-12-232-4/+5
|
* armemu: Fix FTOUI NaN sign.Normmatt2014-12-161-1/+1
|
* armemu: Fix FSUBS bug where NaN shouldn't be negatedNormmatt2014-12-161-1/+4
|
* Merge pull request #276 from lioncash/decrappifybunnei2014-12-151-306/+169
|\ | | | | Clean up armdefs.h a little.
| * Clean up armdefs.hLioncash2014-12-141-306/+169
| |
* | ARM: Pull some SkyEye fixes from 3dmoo.bunnei2014-12-152-4/+4
|/
* Convert old logging calls to new logging macrosYuri Kunde Schlesner2014-12-131-3/+1
|
* Remove unused includes to common/thread.hEmmanuel Gil Peyrot2014-11-251-2/+0
|
* HLE: Revamp error handling throrough the HLE codeYuri Kunde Schlesner2014-11-241-16/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | All service calls in the CTR OS return result codes indicating the success or failure of the call. Previous to this commit, Citra's HLE emulation of services and the kernel universally either ignored errors or returned dummy -1 error codes. This commit makes an initial effort to provide an infrastructure for error reporting and propagation which can be use going forward to make HLE calls accurately return errors as the original system. A few parts of the code have been updated to use the new system where applicable. One part of this effort is the definition of the `ResultCode` type, which provides facilities for constructing and parsing error codes in the structured format used by the CTR. The `ResultVal` type builds on `ResultCode` by providing a container for values returned by function that can report errors. It enforces that correct error checking will be done on function returns by preventing the use of the return value if the function returned an error code. Currently this change is mostly internal since errors are still suppressed on the ARM<->HLE border, as a temporary compatibility hack. As functionality is implemented and tested this hack can be eventually removed.
* Change some SkyEye defines to const intsYuri Kunde Schlesner2014-11-242-34/+16
| | | | | This prevents them from interfering with other constants defined in different namespaces.
* Fix compilation errorsSean Maas2014-11-031-2/+2
|
* ARM: Merge latest VFP fixes from 3dmoo team.bunnei2014-11-024-2096/+2388
|
* Fix VFP compilation errors with gccYuri Kunde Schlesner2014-10-311-12/+12
|
* vfp_helper: Get rid of integer type redefinitionsLioncash2014-10-261-7/+1
|
* ARM: Removed unnecessary and unused SkyEye MMU code.bunnei2014-10-252-118/+0
| | | | Added license header back in. I originally removed this because I mostly rewrote the file, but meh
* ARM: Integrate SkyEye faster "dyncom" interpreter.bunnei2014-10-256-38/+87
| | | | | | | | | | Fixed typo (make protected member public) Added license header back in. I originally removed this because I mostly rewrote the file, but meh ARM: Fixed a type error in dyncom interpreter. ARM: Updated dyncom to use unique_ptr for internal ARM state.
* ARM: Reorganized file structure to move shared SkyEye code to a more common area.bunnei2014-10-2514-0/+11033
Removed s_ prefix