diff options
| author | 2017-10-23 00:13:12 -0400 | |
|---|---|---|
| committer | 2017-10-23 00:13:12 -0400 | |
| commit | 45db4bb3ea9e5a46db598eb99957bfd7d7a135f7 (patch) | |
| tree | 638b55751be07e580ed4bc505c65ba27384e5927 /src/core/arm/dyncom | |
| parent | nso: Load more common submodules. (diff) | |
| download | yuzu-45db4bb3ea9e5a46db598eb99957bfd7d7a135f7.tar.gz yuzu-45db4bb3ea9e5a46db598eb99957bfd7d7a135f7.tar.xz yuzu-45db4bb3ea9e5a46db598eb99957bfd7d7a135f7.zip | |
logging: Rename category "Core_ARM11" to "Core_ARM".
Diffstat (limited to 'src/core/arm/dyncom')
| -rw-r--r-- | src/core/arm/dyncom/arm_dyncom_interpreter.cpp | 28 | ||||
| -rw-r--r-- | src/core/arm/dyncom/arm_dyncom_trans.cpp | 2 |
2 files changed, 15 insertions, 15 deletions
diff --git a/src/core/arm/dyncom/arm_dyncom_interpreter.cpp b/src/core/arm/dyncom/arm_dyncom_interpreter.cpp index 3522d1e82..fc2d6aabc 100644 --- a/src/core/arm/dyncom/arm_dyncom_interpreter.cpp +++ b/src/core/arm/dyncom/arm_dyncom_interpreter.cpp | |||
| @@ -230,7 +230,7 @@ static unsigned int DPO(RotateRightByRegister)(ARMul_State* cpu, unsigned int sh | |||
| 230 | } | 230 | } |
| 231 | 231 | ||
| 232 | #define DEBUG_MSG \ | 232 | #define DEBUG_MSG \ |
| 233 | LOG_DEBUG(Core_ARM11, "inst is %x", inst); \ | 233 | LOG_DEBUG(Core_ARM, "inst is %x", inst); \ |
| 234 | CITRA_IGNORE_EXIT(0) | 234 | CITRA_IGNORE_EXIT(0) |
| 235 | 235 | ||
| 236 | #define LnSWoUB(s) glue(LnSWoUB, s) | 236 | #define LnSWoUB(s) glue(LnSWoUB, s) |
| @@ -769,7 +769,7 @@ static ThumbDecodeStatus DecodeThumbInstruction(u32 inst, u32 addr, u32* arm_ins | |||
| 769 | inst_index = table_length - 4; | 769 | inst_index = table_length - 4; |
| 770 | *ptr_inst_base = arm_instruction_trans[inst_index](tinstr, inst_index); | 770 | *ptr_inst_base = arm_instruction_trans[inst_index](tinstr, inst_index); |
| 771 | } else { | 771 | } else { |
| 772 | LOG_ERROR(Core_ARM11, "thumb decoder error"); | 772 | LOG_ERROR(Core_ARM, "thumb decoder error"); |
| 773 | } | 773 | } |
| 774 | break; | 774 | break; |
| 775 | case 28: | 775 | case 28: |
| @@ -827,9 +827,9 @@ static unsigned int InterpreterTranslateInstruction(const ARMul_State* cpu, cons | |||
| 827 | 827 | ||
| 828 | int idx; | 828 | int idx; |
| 829 | if (DecodeARMInstruction(inst, &idx) == ARMDecodeStatus::FAILURE) { | 829 | if (DecodeARMInstruction(inst, &idx) == ARMDecodeStatus::FAILURE) { |
| 830 | LOG_ERROR(Core_ARM11, "Decode failure.\tPC: [0x%08" PRIX32 "]\tInstruction: %08" PRIX32, | 830 | LOG_ERROR(Core_ARM, "Decode failure.\tPC: [0x%08" PRIX32 "]\tInstruction: %08" PRIX32, |
| 831 | phys_addr, inst); | 831 | phys_addr, inst); |
| 832 | LOG_ERROR(Core_ARM11, "cpsr=0x%" PRIX32 ", cpu->TFlag=%d, r15=0x%08" PRIX32, cpu->Cpsr, | 832 | LOG_ERROR(Core_ARM, "cpsr=0x%" PRIX32 ", cpu->TFlag=%d, r15=0x%08" PRIX32, cpu->Cpsr, |
| 833 | cpu->TFlag, cpu->Reg[15]); | 833 | cpu->TFlag, cpu->Reg[15]); |
| 834 | CITRA_IGNORE_EXIT(-1); | 834 | CITRA_IGNORE_EXIT(-1); |
| 835 | } | 835 | } |
| @@ -1802,7 +1802,7 @@ BIC_INST : { | |||
| 1802 | BKPT_INST : { | 1802 | BKPT_INST : { |
| 1803 | if (inst_base->cond == ConditionCode::AL || CondPassed(cpu, inst_base->cond)) { | 1803 | if (inst_base->cond == ConditionCode::AL || CondPassed(cpu, inst_base->cond)) { |
| 1804 | bkpt_inst* const inst_cream = (bkpt_inst*)inst_base->component; | 1804 | bkpt_inst* const inst_cream = (bkpt_inst*)inst_base->component; |
| 1805 | LOG_DEBUG(Core_ARM11, "Breakpoint instruction hit. Immediate: 0x%08X", inst_cream->imm); | 1805 | LOG_DEBUG(Core_ARM, "Breakpoint instruction hit. Immediate: 0x%08X", inst_cream->imm); |
| 1806 | } | 1806 | } |
| 1807 | cpu->Reg[15] += cpu->GetInstructionSize(); | 1807 | cpu->Reg[15] += cpu->GetInstructionSize(); |
| 1808 | INC_PC(sizeof(bkpt_inst)); | 1808 | INC_PC(sizeof(bkpt_inst)); |
| @@ -2017,7 +2017,7 @@ EOR_INST : { | |||
| 2017 | } | 2017 | } |
| 2018 | LDC_INST : { | 2018 | LDC_INST : { |
| 2019 | // Instruction not implemented | 2019 | // Instruction not implemented |
| 2020 | // LOG_CRITICAL(Core_ARM11, "unimplemented instruction"); | 2020 | // LOG_CRITICAL(Core_ARM, "unimplemented instruction"); |
| 2021 | cpu->Reg[15] += cpu->GetInstructionSize(); | 2021 | cpu->Reg[15] += cpu->GetInstructionSize(); |
| 2022 | INC_PC(sizeof(ldc_inst)); | 2022 | INC_PC(sizeof(ldc_inst)); |
| 2023 | FETCH_INST; | 2023 | FETCH_INST; |
| @@ -2368,7 +2368,7 @@ MCRR_INST : { | |||
| 2368 | if (inst_base->cond == ConditionCode::AL || CondPassed(cpu, inst_base->cond)) { | 2368 | if (inst_base->cond == ConditionCode::AL || CondPassed(cpu, inst_base->cond)) { |
| 2369 | mcrr_inst* const inst_cream = (mcrr_inst*)inst_base->component; | 2369 | mcrr_inst* const inst_cream = (mcrr_inst*)inst_base->component; |
| 2370 | 2370 | ||
| 2371 | LOG_ERROR(Core_ARM11, "MCRR executed | Coprocessor: %u, CRm %u, opc1: %u, Rt: %u, Rt2: %u", | 2371 | LOG_ERROR(Core_ARM, "MCRR executed | Coprocessor: %u, CRm %u, opc1: %u, Rt: %u, Rt2: %u", |
| 2372 | inst_cream->cp_num, inst_cream->crm, inst_cream->opcode_1, inst_cream->rt, | 2372 | inst_cream->cp_num, inst_cream->crm, inst_cream->opcode_1, inst_cream->rt, |
| 2373 | inst_cream->rt2); | 2373 | inst_cream->rt2); |
| 2374 | } | 2374 | } |
| @@ -2451,7 +2451,7 @@ MRRC_INST : { | |||
| 2451 | if (inst_base->cond == ConditionCode::AL || CondPassed(cpu, inst_base->cond)) { | 2451 | if (inst_base->cond == ConditionCode::AL || CondPassed(cpu, inst_base->cond)) { |
| 2452 | mcrr_inst* const inst_cream = (mcrr_inst*)inst_base->component; | 2452 | mcrr_inst* const inst_cream = (mcrr_inst*)inst_base->component; |
| 2453 | 2453 | ||
| 2454 | LOG_ERROR(Core_ARM11, "MRRC executed | Coprocessor: %u, CRm %u, opc1: %u, Rt: %u, Rt2: %u", | 2454 | LOG_ERROR(Core_ARM, "MRRC executed | Coprocessor: %u, CRm %u, opc1: %u, Rt: %u, Rt2: %u", |
| 2455 | inst_cream->cp_num, inst_cream->crm, inst_cream->opcode_1, inst_cream->rt, | 2455 | inst_cream->cp_num, inst_cream->crm, inst_cream->opcode_1, inst_cream->rt, |
| 2456 | inst_cream->rt2); | 2456 | inst_cream->rt2); |
| 2457 | } | 2457 | } |
| @@ -3078,7 +3078,7 @@ SETEND_INST : { | |||
| 3078 | else | 3078 | else |
| 3079 | cpu->Cpsr &= ~(1 << 9); | 3079 | cpu->Cpsr &= ~(1 << 9); |
| 3080 | 3080 | ||
| 3081 | LOG_WARNING(Core_ARM11, "SETEND %s executed", big_endian ? "BE" : "LE"); | 3081 | LOG_WARNING(Core_ARM, "SETEND %s executed", big_endian ? "BE" : "LE"); |
| 3082 | 3082 | ||
| 3083 | cpu->Reg[15] += cpu->GetInstructionSize(); | 3083 | cpu->Reg[15] += cpu->GetInstructionSize(); |
| 3084 | INC_PC(sizeof(setend_inst)); | 3084 | INC_PC(sizeof(setend_inst)); |
| @@ -3089,7 +3089,7 @@ SETEND_INST : { | |||
| 3089 | SEV_INST : { | 3089 | SEV_INST : { |
| 3090 | // Stubbed, as SEV is a hint instruction. | 3090 | // Stubbed, as SEV is a hint instruction. |
| 3091 | if (inst_base->cond == ConditionCode::AL || CondPassed(cpu, inst_base->cond)) { | 3091 | if (inst_base->cond == ConditionCode::AL || CondPassed(cpu, inst_base->cond)) { |
| 3092 | LOG_TRACE(Core_ARM11, "SEV executed."); | 3092 | LOG_TRACE(Core_ARM, "SEV executed."); |
| 3093 | } | 3093 | } |
| 3094 | 3094 | ||
| 3095 | cpu->Reg[15] += cpu->GetInstructionSize(); | 3095 | cpu->Reg[15] += cpu->GetInstructionSize(); |
| @@ -3539,7 +3539,7 @@ SSAT16_INST : { | |||
| 3539 | 3539 | ||
| 3540 | STC_INST : { | 3540 | STC_INST : { |
| 3541 | // Instruction not implemented | 3541 | // Instruction not implemented |
| 3542 | // LOG_CRITICAL(Core_ARM11, "unimplemented instruction"); | 3542 | // LOG_CRITICAL(Core_ARM, "unimplemented instruction"); |
| 3543 | cpu->Reg[15] += cpu->GetInstructionSize(); | 3543 | cpu->Reg[15] += cpu->GetInstructionSize(); |
| 3544 | INC_PC(sizeof(stc_inst)); | 3544 | INC_PC(sizeof(stc_inst)); |
| 3545 | FETCH_INST; | 3545 | FETCH_INST; |
| @@ -4529,7 +4529,7 @@ UXTB16_INST : { | |||
| 4529 | WFE_INST : { | 4529 | WFE_INST : { |
| 4530 | // Stubbed, as WFE is a hint instruction. | 4530 | // Stubbed, as WFE is a hint instruction. |
| 4531 | if (inst_base->cond == ConditionCode::AL || CondPassed(cpu, inst_base->cond)) { | 4531 | if (inst_base->cond == ConditionCode::AL || CondPassed(cpu, inst_base->cond)) { |
| 4532 | LOG_TRACE(Core_ARM11, "WFE executed."); | 4532 | LOG_TRACE(Core_ARM, "WFE executed."); |
| 4533 | } | 4533 | } |
| 4534 | 4534 | ||
| 4535 | cpu->Reg[15] += cpu->GetInstructionSize(); | 4535 | cpu->Reg[15] += cpu->GetInstructionSize(); |
| @@ -4541,7 +4541,7 @@ WFE_INST : { | |||
| 4541 | WFI_INST : { | 4541 | WFI_INST : { |
| 4542 | // Stubbed, as WFI is a hint instruction. | 4542 | // Stubbed, as WFI is a hint instruction. |
| 4543 | if (inst_base->cond == ConditionCode::AL || CondPassed(cpu, inst_base->cond)) { | 4543 | if (inst_base->cond == ConditionCode::AL || CondPassed(cpu, inst_base->cond)) { |
| 4544 | LOG_TRACE(Core_ARM11, "WFI executed."); | 4544 | LOG_TRACE(Core_ARM, "WFI executed."); |
| 4545 | } | 4545 | } |
| 4546 | 4546 | ||
| 4547 | cpu->Reg[15] += cpu->GetInstructionSize(); | 4547 | cpu->Reg[15] += cpu->GetInstructionSize(); |
| @@ -4553,7 +4553,7 @@ WFI_INST : { | |||
| 4553 | YIELD_INST : { | 4553 | YIELD_INST : { |
| 4554 | // Stubbed, as YIELD is a hint instruction. | 4554 | // Stubbed, as YIELD is a hint instruction. |
| 4555 | if (inst_base->cond == ConditionCode::AL || CondPassed(cpu, inst_base->cond)) { | 4555 | if (inst_base->cond == ConditionCode::AL || CondPassed(cpu, inst_base->cond)) { |
| 4556 | LOG_TRACE(Core_ARM11, "YIELD executed."); | 4556 | LOG_TRACE(Core_ARM, "YIELD executed."); |
| 4557 | } | 4557 | } |
| 4558 | 4558 | ||
| 4559 | cpu->Reg[15] += cpu->GetInstructionSize(); | 4559 | cpu->Reg[15] += cpu->GetInstructionSize(); |
diff --git a/src/core/arm/dyncom/arm_dyncom_trans.cpp b/src/core/arm/dyncom/arm_dyncom_trans.cpp index 780638638..9cd6c0dea 100644 --- a/src/core/arm/dyncom/arm_dyncom_trans.cpp +++ b/src/core/arm/dyncom/arm_dyncom_trans.cpp | |||
| @@ -185,7 +185,7 @@ static ARM_INST_PTR INTERPRETER_TRANSLATE(cdp)(unsigned int inst, int index) { | |||
| 185 | inst_cream->opcode_1 = BITS(inst, 20, 23); | 185 | inst_cream->opcode_1 = BITS(inst, 20, 23); |
| 186 | inst_cream->inst = inst; | 186 | inst_cream->inst = inst; |
| 187 | 187 | ||
| 188 | LOG_TRACE(Core_ARM11, "inst %x index %x", inst, index); | 188 | LOG_TRACE(Core_ARM, "inst %x index %x", inst, index); |
| 189 | return inst_base; | 189 | return inst_base; |
| 190 | } | 190 | } |
| 191 | static ARM_INST_PTR INTERPRETER_TRANSLATE(clrex)(unsigned int inst, int index) { | 191 | static ARM_INST_PTR INTERPRETER_TRANSLATE(clrex)(unsigned int inst, int index) { |