summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorRyan Houdek <Sonicadvance1@gmail.com>2015-01-07 14:31:07 -0600
committerRyan Houdek <Sonicadvance1@gmail.com>2015-01-08 19:56:47 -0600
commitb3201be95f5a5dc7ee3c76e8fd1d7333ea7f9785 (patch)
treeaca800a7b45f534fa632e94e6b7ddc6237fdf30b /Source/Core
parent74de345b51d1022045b8339e3141b510d629b5e2 (diff)
[AArch64] Add some static_asserts.
Makes sure we have a few PPCState values within range of STRB's range.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/PowerPC/JitArm64/Jit.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/Core/PowerPC/JitArm64/Jit.h b/Source/Core/Core/PowerPC/JitArm64/Jit.h
index f4c0adae74..ebef27173e 100644
--- a/Source/Core/Core/PowerPC/JitArm64/Jit.h
+++ b/Source/Core/Core/PowerPC/JitArm64/Jit.h
@@ -21,6 +21,8 @@
// Some asserts to make sure we will be able to load everything
static_assert(PPCSTATE_OFF(spr[1023]) <= 16380, "LDR(32bit) can't reach the last SPR");
static_assert((PPCSTATE_OFF(ps[0][0]) % 8) == 0, "LDR(64bit VFP) requires FPRs to be 8 byte aligned");
+static_assert(PPCSTATE_OFF(xer_ca) < 4096, "STRB can't store xer_ca!");
+static_assert(PPCSTATE_OFF(xer_so_ov) < 4096, "STRB can't store xer_so_ov!");
class JitArm64 : public JitBase, public Arm64Gen::ARM64CodeBlock
{