summaryrefslogtreecommitdiffstats
path: root/src/core/arm/arm_interface.h
diff options
context:
space:
mode:
authorMerryMage <MerryMage@users.noreply.github.com>2018-01-09 22:33:46 +0100
committerbunnei <bunneidev@gmail.com>2018-01-12 23:48:29 +0100
commitd2fbc7832080955598c9fb6f083414eca47f0f19 (patch)
tree4f4b63aa2d37b86c39fdd17b12731bceda8bc90c /src/core/arm/arm_interface.h
parentcore: Include <algorithm> where used. (diff)
downloadyuzu-d2fbc7832080955598c9fb6f083414eca47f0f19.tar
yuzu-d2fbc7832080955598c9fb6f083414eca47f0f19.tar.gz
yuzu-d2fbc7832080955598c9fb6f083414eca47f0f19.tar.bz2
yuzu-d2fbc7832080955598c9fb6f083414eca47f0f19.tar.lz
yuzu-d2fbc7832080955598c9fb6f083414eca47f0f19.tar.xz
yuzu-d2fbc7832080955598c9fb6f083414eca47f0f19.tar.zst
yuzu-d2fbc7832080955598c9fb6f083414eca47f0f19.zip
Diffstat (limited to 'src/core/arm/arm_interface.h')
-rw-r--r--src/core/arm/arm_interface.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/core/arm/arm_interface.h b/src/core/arm/arm_interface.h
index c0d6e2604..531875006 100644
--- a/src/core/arm/arm_interface.h
+++ b/src/core/arm/arm_interface.h
@@ -4,6 +4,7 @@
#pragma once
+#include <array>
#include "common/common_types.h"
#include "core/hle/kernel/vm_manager.h"
@@ -13,15 +14,12 @@ public:
virtual ~ARM_Interface() {}
struct ThreadContext {
- u64 cpu_registers[30];
- u64 lr;
+ std::array<u64, 31> cpu_registers;
u64 sp;
u64 pc;
u64 cpsr;
- u128 fpu_registers[32];
+ std::array<u128, 32> fpu_registers;
u64 fpscr;
- u64 fpexc;
-
// TODO(bunnei): Fix once we have proper support for tpidrro_el0, etc. in the JIT
VAddr tls_address;
@@ -75,9 +73,9 @@ public:
*/
virtual void SetReg(int index, u64 value) = 0;
- virtual const u128& GetExtReg(int index) const = 0;
+ virtual u128 GetExtReg(int index) const = 0;
- virtual void SetExtReg(int index, u128& value) = 0;
+ virtual void SetExtReg(int index, u128 value) = 0;
/**
* Gets the value of a VFP register