summaryrefslogtreecommitdiff
path: root/src/core/arm/arm_interface.h
diff options
context:
space:
mode:
authorGravatar bunnei2018-09-30 15:32:27 -0400
committerGravatar GitHub2018-09-30 15:32:27 -0400
commit5e2f23e2b185475c3ce7ae1750ec14daefcd3e08 (patch)
treeac2c341c94976552acd507359e8853105193d288 /src/core/arm/arm_interface.h
parentMerge pull request #1418 from FearlessTobi/port-4269 (diff)
parentkernel/svc: Implement svcGetThreadContext() (diff)
downloadyuzu-5e2f23e2b185475c3ce7ae1750ec14daefcd3e08.tar.gz
yuzu-5e2f23e2b185475c3ce7ae1750ec14daefcd3e08.tar.xz
yuzu-5e2f23e2b185475c3ce7ae1750ec14daefcd3e08.zip
Merge pull request #1417 from lioncash/context
svc: Implement svcGetThreadContext
Diffstat (limited to 'src/core/arm/arm_interface.h')
-rw-r--r--src/core/arm/arm_interface.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/core/arm/arm_interface.h b/src/core/arm/arm_interface.h
index 16d528994..59da33f30 100644
--- a/src/core/arm/arm_interface.h
+++ b/src/core/arm/arm_interface.h
@@ -22,10 +22,16 @@ public:
22 std::array<u64, 31> cpu_registers; 22 std::array<u64, 31> cpu_registers;
23 u64 sp; 23 u64 sp;
24 u64 pc; 24 u64 pc;
25 u64 pstate; 25 u32 pstate;
26 std::array<u8, 4> padding;
26 std::array<u128, 32> vector_registers; 27 std::array<u128, 32> vector_registers;
27 u64 fpcr; 28 u32 fpcr;
29 u32 fpsr;
30 u64 tpidr;
28 }; 31 };
32 // Internally within the kernel, it expects the AArch64 version of the
33 // thread context to be 800 bytes in size.
34 static_assert(sizeof(ThreadContext) == 0x320);
29 35
30 /// Runs the CPU until an event happens 36 /// Runs the CPU until an event happens
31 virtual void Run() = 0; 37 virtual void Run() = 0;