diff options
| author | 2015-01-05 09:10:59 -0500 | |
|---|---|---|
| committer | 2015-01-05 09:13:41 -0500 | |
| commit | d00c22c706e76edd1be009faeab69a94cd0d5ef1 (patch) | |
| tree | c7dff0a7f0e7daf0a9d2973d3ab2df128fe06522 /src/core/arm/skyeye_common | |
| parent | Merge pull request #403 from yuriks/shutdown-system (diff) | |
| download | yuzu-d00c22c706e76edd1be009faeab69a94cd0d5ef1.tar.gz yuzu-d00c22c706e76edd1be009faeab69a94cd0d5ef1.tar.xz yuzu-d00c22c706e76edd1be009faeab69a94cd0d5ef1.zip | |
dyncom: Implement QADD/QSUB/QDADD/QDSUB
Diffstat (limited to 'src/core/arm/skyeye_common')
| -rw-r--r-- | src/core/arm/skyeye_common/armdefs.h | 5 | ||||
| -rw-r--r-- | src/core/arm/skyeye_common/armemu.h | 6 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/core/arm/skyeye_common/armdefs.h b/src/core/arm/skyeye_common/armdefs.h index c2c78cd5a..3100d7adc 100644 --- a/src/core/arm/skyeye_common/armdefs.h +++ b/src/core/arm/skyeye_common/armdefs.h | |||
| @@ -70,6 +70,9 @@ | |||
| 70 | #define DATACACHE 1 | 70 | #define DATACACHE 1 |
| 71 | #define INSTCACHE 2 | 71 | #define INSTCACHE 2 |
| 72 | 72 | ||
| 73 | #define POS(i) ( (~(i)) >> 31 ) | ||
| 74 | #define NEG(i) ( (i) >> 31 ) | ||
| 75 | |||
| 73 | #ifndef __STDC__ | 76 | #ifndef __STDC__ |
| 74 | typedef char *VoidStar; | 77 | typedef char *VoidStar; |
| 75 | #endif | 78 | #endif |
| @@ -783,6 +786,8 @@ RUn %x,%x,%x,%x,%x,%x,%x,%x,%x,%x,%x,%x,%x,%x,%x,%x\n",\ | |||
| 783 | //#define PXA250 0x69052903 | 786 | //#define PXA250 0x69052903 |
| 784 | // 0x69052903; //PXA250 B1 from intel 278522-001.pdf | 787 | // 0x69052903; //PXA250 B1 from intel 278522-001.pdf |
| 785 | 788 | ||
| 789 | extern bool AddOverflow(ARMword, ARMword, ARMword); | ||
| 790 | extern bool SubOverflow(ARMword, ARMword, ARMword); | ||
| 786 | 791 | ||
| 787 | extern void ARMul_UndefInstr(ARMul_State*, ARMword); | 792 | extern void ARMul_UndefInstr(ARMul_State*, ARMword); |
| 788 | extern void ARMul_FixCPSR(ARMul_State*, ARMword, ARMword); | 793 | extern void ARMul_FixCPSR(ARMul_State*, ARMword, ARMword); |
diff --git a/src/core/arm/skyeye_common/armemu.h b/src/core/arm/skyeye_common/armemu.h index e1b286f0f..1dfcc635a 100644 --- a/src/core/arm/skyeye_common/armemu.h +++ b/src/core/arm/skyeye_common/armemu.h | |||
| @@ -42,9 +42,6 @@ | |||
| 42 | #define R15FBIT (1L << 26) | 42 | #define R15FBIT (1L << 26) |
| 43 | #define R15IFBITS (3L << 26) | 43 | #define R15IFBITS (3L << 26) |
| 44 | 44 | ||
| 45 | #define POS(i) ( (~(i)) >> 31 ) | ||
| 46 | #define NEG(i) ( (i) >> 31 ) | ||
| 47 | |||
| 48 | #ifdef MODET /* Thumb support. */ | 45 | #ifdef MODET /* Thumb support. */ |
| 49 | /* ??? This bit is actually in the low order bit of the PC in the hardware. | 46 | /* ??? This bit is actually in the low order bit of the PC in the hardware. |
| 50 | It isn't clear if the simulator needs to model that or not. */ | 47 | It isn't clear if the simulator needs to model that or not. */ |
| @@ -561,8 +558,7 @@ tdstate; | |||
| 561 | 558 | ||
| 562 | /* Prototypes for exported functions. */ | 559 | /* Prototypes for exported functions. */ |
| 563 | extern unsigned ARMul_NthReg (ARMword, unsigned); | 560 | extern unsigned ARMul_NthReg (ARMword, unsigned); |
| 564 | extern int AddOverflow (ARMword, ARMword, ARMword); | 561 | |
| 565 | extern int SubOverflow (ARMword, ARMword, ARMword); | ||
| 566 | /* Prototypes for exported functions. */ | 562 | /* Prototypes for exported functions. */ |
| 567 | #ifdef __cplusplus | 563 | #ifdef __cplusplus |
| 568 | extern "C" { | 564 | extern "C" { |