diff options
author | bunnei <bunneidev@gmail.com> | 2014-11-30 14:32:39 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2014-11-30 14:32:39 +0100 |
commit | 7328bfcc7915ae778101fe2fd153862b61cd9825 (patch) | |
tree | 07279c4fee07d0ba693fc88b0f57441cb7a5ad56 /src/core/arm/dyncom/arm_dyncom_interpreter.cpp | |
parent | Merge pull request #227 from vaguilar/fix-warnings (diff) | |
parent | arm_dyncom_interpreter: Get rid of unused var warnings (diff) | |
download | yuzu-7328bfcc7915ae778101fe2fd153862b61cd9825.tar yuzu-7328bfcc7915ae778101fe2fd153862b61cd9825.tar.gz yuzu-7328bfcc7915ae778101fe2fd153862b61cd9825.tar.bz2 yuzu-7328bfcc7915ae778101fe2fd153862b61cd9825.tar.lz yuzu-7328bfcc7915ae778101fe2fd153862b61cd9825.tar.xz yuzu-7328bfcc7915ae778101fe2fd153862b61cd9825.tar.zst yuzu-7328bfcc7915ae778101fe2fd153862b61cd9825.zip |
Diffstat (limited to 'src/core/arm/dyncom/arm_dyncom_interpreter.cpp')
-rw-r--r-- | src/core/arm/dyncom/arm_dyncom_interpreter.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/arm/dyncom/arm_dyncom_interpreter.cpp b/src/core/arm/dyncom/arm_dyncom_interpreter.cpp index f899e2e8a..aa2b271e7 100644 --- a/src/core/arm/dyncom/arm_dyncom_interpreter.cpp +++ b/src/core/arm/dyncom/arm_dyncom_interpreter.cpp @@ -94,9 +94,8 @@ typedef unsigned int (*shtop_fp_t)(arm_processor *cpu, unsigned int sht_oper); /* exclusive memory access */ static int exclusive_detect(ARMul_State* state, ARMword addr){ - int i; #if 0 - for(i = 0; i < 128; i++){ + for(int i = 0; i < 128; i++){ if(state->exclusive_tag_array[i] == addr) return 0; } @@ -108,9 +107,8 @@ static int exclusive_detect(ARMul_State* state, ARMword addr){ } static void add_exclusive_addr(ARMul_State* state, ARMword addr){ - int i; #if 0 - for(i = 0; i < 128; i++){ + for(int i = 0; i < 128; i++){ if(state->exclusive_tag_array[i] == 0xffffffff){ state->exclusive_tag_array[i] = addr; //DEBUG_LOG(ARM11, "In %s, add addr 0x%x\n", __func__, addr); |