summaryrefslogtreecommitdiffstats
path: root/src/core/arm/dynarmic/dynarmic_cp15.h
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-06-13 03:34:25 +0200
committerLiam <byteslice@airmail.cc>2023-06-13 04:11:51 +0200
commit8506915208dc2d518c821f00e4286824d778642c (patch)
treeea4c10c78188ca6481896e698f23f4ad9675548f /src/core/arm/dynarmic/dynarmic_cp15.h
parentMerge pull request #10743 from FearlessTobi/translations (diff)
downloadyuzu-8506915208dc2d518c821f00e4286824d778642c.tar
yuzu-8506915208dc2d518c821f00e4286824d778642c.tar.gz
yuzu-8506915208dc2d518c821f00e4286824d778642c.tar.bz2
yuzu-8506915208dc2d518c821f00e4286824d778642c.tar.lz
yuzu-8506915208dc2d518c821f00e4286824d778642c.tar.xz
yuzu-8506915208dc2d518c821f00e4286824d778642c.tar.zst
yuzu-8506915208dc2d518c821f00e4286824d778642c.zip
Diffstat (limited to 'src/core/arm/dynarmic/dynarmic_cp15.h')
-rw-r--r--src/core/arm/dynarmic/dynarmic_cp15.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/core/arm/dynarmic/dynarmic_cp15.h b/src/core/arm/dynarmic/dynarmic_cp15.h
new file mode 100644
index 000000000..d90b3e568
--- /dev/null
+++ b/src/core/arm/dynarmic/dynarmic_cp15.h
@@ -0,0 +1,42 @@
+// SPDX-FileCopyrightText: 2017 Citra Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include <optional>
+
+#include <dynarmic/interface/A32/coprocessor.h>
+#include "common/common_types.h"
+
+namespace Core {
+
+class ARM_Dynarmic_32;
+
+class DynarmicCP15 final : public Dynarmic::A32::Coprocessor {
+public:
+ using CoprocReg = Dynarmic::A32::CoprocReg;
+
+ explicit DynarmicCP15(ARM_Dynarmic_32& parent_) : parent{parent_} {}
+
+ std::optional<Callback> CompileInternalOperation(bool two, unsigned opc1, CoprocReg CRd,
+ CoprocReg CRn, CoprocReg CRm,
+ unsigned opc2) override;
+ CallbackOrAccessOneWord CompileSendOneWord(bool two, unsigned opc1, CoprocReg CRn,
+ CoprocReg CRm, unsigned opc2) override;
+ CallbackOrAccessTwoWords CompileSendTwoWords(bool two, unsigned opc, CoprocReg CRm) override;
+ CallbackOrAccessOneWord CompileGetOneWord(bool two, unsigned opc1, CoprocReg CRn, CoprocReg CRm,
+ unsigned opc2) override;
+ CallbackOrAccessTwoWords CompileGetTwoWords(bool two, unsigned opc, CoprocReg CRm) override;
+ std::optional<Callback> CompileLoadWords(bool two, bool long_transfer, CoprocReg CRd,
+ std::optional<u8> option) override;
+ std::optional<Callback> CompileStoreWords(bool two, bool long_transfer, CoprocReg CRd,
+ std::optional<u8> option) override;
+
+ ARM_Dynarmic_32& parent;
+ u32 uprw = 0;
+ u32 uro = 0;
+
+ friend class ARM_Dynarmic_32;
+};
+
+} // namespace Core