summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-03-21 03:37:42 +0100
committerbunnei <bunneidev@gmail.com>2020-04-17 06:11:50 +0200
commit0f4f90cd04932d2f554ce97dd468a71fdc5b34fb (patch)
treea02284bd0b0b2115162262ce9c6fd1a6bc7c527e /src/core
parentMerge pull request #3671 from lioncash/switch (diff)
downloadyuzu-0f4f90cd04932d2f554ce97dd468a71fdc5b34fb.tar
yuzu-0f4f90cd04932d2f554ce97dd468a71fdc5b34fb.tar.gz
yuzu-0f4f90cd04932d2f554ce97dd468a71fdc5b34fb.tar.bz2
yuzu-0f4f90cd04932d2f554ce97dd468a71fdc5b34fb.tar.lz
yuzu-0f4f90cd04932d2f554ce97dd468a71fdc5b34fb.tar.xz
yuzu-0f4f90cd04932d2f554ce97dd468a71fdc5b34fb.tar.zst
yuzu-0f4f90cd04932d2f554ce97dd468a71fdc5b34fb.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/arm/arm_interface.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/core/arm/arm_interface.h b/src/core/arm/arm_interface.h
index 57eae839e..cb2e640e2 100644
--- a/src/core/arm/arm_interface.h
+++ b/src/core/arm/arm_interface.h
@@ -26,28 +26,28 @@ public:
virtual ~ARM_Interface() = default;
struct ThreadContext32 {
- std::array<u32, 16> cpu_registers;
- u32 cpsr;
- std::array<u8, 4> padding;
- std::array<u64, 32> fprs;
- u32 fpscr;
- u32 fpexc;
- u32 tpidr;
+ std::array<u32, 16> cpu_registers{};
+ u32 cpsr{};
+ std::array<u8, 4> padding{};
+ std::array<u64, 32> fprs{};
+ u32 fpscr{};
+ u32 fpexc{};
+ u32 tpidr{};
};
// Internally within the kernel, it expects the AArch32 version of the
// thread context to be 344 bytes in size.
static_assert(sizeof(ThreadContext32) == 0x158);
struct ThreadContext64 {
- std::array<u64, 31> cpu_registers;
- u64 sp;
- u64 pc;
- u32 pstate;
- std::array<u8, 4> padding;
- std::array<u128, 32> vector_registers;
- u32 fpcr;
- u32 fpsr;
- u64 tpidr;
+ std::array<u64, 31> cpu_registers{};
+ u64 sp{};
+ u64 pc{};
+ u32 pstate{};
+ std::array<u8, 4> padding{};
+ std::array<u128, 32> vector_registers{};
+ u32 fpcr{};
+ u32 fpsr{};
+ u64 tpidr{};
};
// Internally within the kernel, it expects the AArch64 version of the
// thread context to be 800 bytes in size.