diff options
| author | 2015-02-10 12:37:28 -0500 | |
|---|---|---|
| committer | 2015-02-10 13:09:41 -0500 | |
| commit | 088fab743fcff848b342efd52bfccaf6ee62a72f (patch) | |
| tree | 0360a62cfffaee5da99568e28cdd35f13c91aec1 /src/core/arm/skyeye_common | |
| parent | Merge pull request #553 from lioncash/denorm (diff) | |
| download | yuzu-088fab743fcff848b342efd52bfccaf6ee62a72f.tar.gz yuzu-088fab743fcff848b342efd52bfccaf6ee62a72f.tar.xz yuzu-088fab743fcff848b342efd52bfccaf6ee62a72f.zip | |
arm: Remove TRUE/FALSE defines
- Removed the Debug parameter from ARMul_State since it isn't used.
- Changed ARMul_CoProInit to a void function. It always returned true.
Diffstat (limited to 'src/core/arm/skyeye_common')
| -rw-r--r-- | src/core/arm/skyeye_common/armdefs.h | 12 | ||||
| -rw-r--r-- | src/core/arm/skyeye_common/armemu.h | 14 |
2 files changed, 10 insertions, 16 deletions
diff --git a/src/core/arm/skyeye_common/armdefs.h b/src/core/arm/skyeye_common/armdefs.h index 778868783..ff9296e0f 100644 --- a/src/core/arm/skyeye_common/armdefs.h +++ b/src/core/arm/skyeye_common/armdefs.h | |||
| @@ -35,11 +35,6 @@ | |||
| 35 | #define BITS(s, a, b) ((s << ((sizeof(s) * 8 - 1) - b)) >> (sizeof(s) * 8 - b + a - 1)) | 35 | #define BITS(s, a, b) ((s << ((sizeof(s) * 8 - 1) - b)) >> (sizeof(s) * 8 - b + a - 1)) |
| 36 | #define BIT(s, n) ((s >> (n)) & 1) | 36 | #define BIT(s, n) ((s >> (n)) & 1) |
| 37 | 37 | ||
| 38 | #ifndef FALSE | ||
| 39 | #define FALSE 0 | ||
| 40 | #define TRUE 1 | ||
| 41 | #endif | ||
| 42 | |||
| 43 | #define LOW 0 | 38 | #define LOW 0 |
| 44 | #define HIGH 1 | 39 | #define HIGH 1 |
| 45 | #define LOWHIGH 1 | 40 | #define LOWHIGH 1 |
| @@ -135,7 +130,6 @@ struct ARMul_State | |||
| 135 | unsigned char* CPData[16]; // Coprocessor data | 130 | unsigned char* CPData[16]; // Coprocessor data |
| 136 | unsigned char const* CPRegWords[16]; // Map of coprocessor register sizes | 131 | unsigned char const* CPRegWords[16]; // Map of coprocessor register sizes |
| 137 | 132 | ||
| 138 | unsigned Debug; // Show instructions as they are executed | ||
| 139 | unsigned NresetSig; // Reset the processor | 133 | unsigned NresetSig; // Reset the processor |
| 140 | unsigned NfiqSig; | 134 | unsigned NfiqSig; |
| 141 | unsigned NirqSig; | 135 | unsigned NirqSig; |
| @@ -180,12 +174,12 @@ So, if lateabtSig=1, then it means Late Abort Model(Base Updated Abort Model) | |||
| 180 | */ | 174 | */ |
| 181 | unsigned lateabtSig; | 175 | unsigned lateabtSig; |
| 182 | 176 | ||
| 183 | ARMword Vector; // Synthesize aborts in cycle modes | 177 | bool Aborted; // Sticky flag for aborts |
| 184 | ARMword Aborted; // Sticky flag for aborts | 178 | bool Reseted; // Sticky flag for Reset |
| 185 | ARMword Reseted; // Sticky flag for Reset | ||
| 186 | ARMword Inted, LastInted; // Sticky flags for interrupts | 179 | ARMword Inted, LastInted; // Sticky flags for interrupts |
| 187 | ARMword Base; // Extra hand for base writeback | 180 | ARMword Base; // Extra hand for base writeback |
| 188 | ARMword AbortAddr; // To keep track of Prefetch aborts | 181 | ARMword AbortAddr; // To keep track of Prefetch aborts |
| 182 | ARMword Vector; // Synthesize aborts in cycle modes | ||
| 189 | 183 | ||
| 190 | // For differentiating ARM core emulaiton. | 184 | // For differentiating ARM core emulaiton. |
| 191 | bool is_v4; // Are we emulating a v4 architecture (or higher)? | 185 | bool is_v4; // Are we emulating a v4 architecture (or higher)? |
diff --git a/src/core/arm/skyeye_common/armemu.h b/src/core/arm/skyeye_common/armemu.h index 6071d447b..beee54c9a 100644 --- a/src/core/arm/skyeye_common/armemu.h +++ b/src/core/arm/skyeye_common/armemu.h | |||
| @@ -100,10 +100,10 @@ extern ARMword ARMul_ImmedTable[]; // Immediate DP LHS values. | |||
| 100 | extern char ARMul_BitList[]; // Number of bits in a byte table. | 100 | extern char ARMul_BitList[]; // Number of bits in a byte table. |
| 101 | 101 | ||
| 102 | // Coprocessor support functions. | 102 | // Coprocessor support functions. |
| 103 | extern unsigned ARMul_CoProInit (ARMul_State *); | 103 | extern void ARMul_CoProInit(ARMul_State*); |
| 104 | extern void ARMul_CoProExit (ARMul_State *); | 104 | extern void ARMul_CoProExit(ARMul_State*); |
| 105 | extern void ARMul_CoProAttach (ARMul_State *, unsigned, ARMul_CPInits *, | 105 | extern void ARMul_CoProAttach(ARMul_State*, unsigned, ARMul_CPInits*, |
| 106 | ARMul_CPExits *, ARMul_LDCs *, ARMul_STCs *, | 106 | ARMul_CPExits*, ARMul_LDCs*, ARMul_STCs*, |
| 107 | ARMul_MRCs *, ARMul_MCRs *, ARMul_MRRCs *, ARMul_MCRRs *, | 107 | ARMul_MRCs*, ARMul_MCRs*, ARMul_MRRCs*, ARMul_MCRRs*, |
| 108 | ARMul_CDPs *, ARMul_CPReads *, ARMul_CPWrites *); | 108 | ARMul_CDPs*, ARMul_CPReads*, ARMul_CPWrites*); |
| 109 | extern void ARMul_CoProDetach (ARMul_State *, unsigned); | 109 | extern void ARMul_CoProDetach(ARMul_State*, unsigned); |