diff options
Diffstat (limited to 'src/core/arm/dynarmic/arm_dynarmic_cp15.cpp')
-rw-r--r-- | src/core/arm/dynarmic/arm_dynarmic_cp15.cpp | 88 |
1 files changed, 0 insertions, 88 deletions
diff --git a/src/core/arm/dynarmic/arm_dynarmic_cp15.cpp b/src/core/arm/dynarmic/arm_dynarmic_cp15.cpp deleted file mode 100644 index b1fdce096..000000000 --- a/src/core/arm/dynarmic/arm_dynarmic_cp15.cpp +++ /dev/null @@ -1,88 +0,0 @@ -// Copyright 2017 Citra Emulator Project -// Licensed under GPLv2 or any later version -// Refer to the license.txt file included. - -#include "core/arm/dynarmic/arm_dynarmic_cp15.h" -#include "core/arm/skyeye_common/arm_regformat.h" -#include "core/arm/skyeye_common/armstate.h" - -using Callback = Dynarmic::Coprocessor::Callback; -using CallbackOrAccessOneWord = Dynarmic::Coprocessor::CallbackOrAccessOneWord; -using CallbackOrAccessTwoWords = Dynarmic::Coprocessor::CallbackOrAccessTwoWords; - -DynarmicCP15::DynarmicCP15(const std::shared_ptr<ARMul_State>& state) : interpreter_state(state) {} - -DynarmicCP15::~DynarmicCP15() = default; - -boost::optional<Callback> DynarmicCP15::CompileInternalOperation(bool two, unsigned opc1, - CoprocReg CRd, CoprocReg CRn, - CoprocReg CRm, unsigned opc2) { - return boost::none; -} - -CallbackOrAccessOneWord DynarmicCP15::CompileSendOneWord(bool two, unsigned opc1, CoprocReg CRn, - CoprocReg CRm, unsigned opc2) { - // TODO(merry): Privileged CP15 registers - - if (!two && CRn == CoprocReg::C7 && opc1 == 0 && CRm == CoprocReg::C5 && opc2 == 4) { - // This is a dummy write, we ignore the value written here. - return &interpreter_state->CP15[CP15_FLUSH_PREFETCH_BUFFER]; - } - - if (!two && CRn == CoprocReg::C7 && opc1 == 0 && CRm == CoprocReg::C10) { - switch (opc2) { - case 4: - // This is a dummy write, we ignore the value written here. - return &interpreter_state->CP15[CP15_DATA_SYNC_BARRIER]; - case 5: - // This is a dummy write, we ignore the value written here. - return &interpreter_state->CP15[CP15_DATA_MEMORY_BARRIER]; - default: - return boost::blank{}; - } - } - - if (!two && CRn == CoprocReg::C13 && opc1 == 0 && CRm == CoprocReg::C0 && opc2 == 2) { - return &interpreter_state->CP15[CP15_THREAD_UPRW]; - } - - return boost::blank{}; -} - -CallbackOrAccessTwoWords DynarmicCP15::CompileSendTwoWords(bool two, unsigned opc, CoprocReg CRm) { - return boost::blank{}; -} - -CallbackOrAccessOneWord DynarmicCP15::CompileGetOneWord(bool two, unsigned opc1, CoprocReg CRn, - CoprocReg CRm, unsigned opc2) { - // TODO(merry): Privileged CP15 registers - - if (!two && CRn == CoprocReg::C13 && opc1 == 0 && CRm == CoprocReg::C0) { - switch (opc2) { - case 2: - return &interpreter_state->CP15[CP15_THREAD_UPRW]; - case 3: - return &interpreter_state->CP15[CP15_THREAD_URO]; - default: - return boost::blank{}; - } - } - - return boost::blank{}; -} - -CallbackOrAccessTwoWords DynarmicCP15::CompileGetTwoWords(bool two, unsigned opc, CoprocReg CRm) { - return boost::blank{}; -} - -boost::optional<Callback> DynarmicCP15::CompileLoadWords(bool two, bool long_transfer, - CoprocReg CRd, - boost::optional<u8> option) { - return boost::none; -} - -boost::optional<Callback> DynarmicCP15::CompileStoreWords(bool two, bool long_transfer, - CoprocReg CRd, - boost::optional<u8> option) { - return boost::none; -} |