Johnny Hughes 0515cb
From fd6847c9416f9eebde636e21d794d25d1be8791d Mon Sep 17 00:00:00 2001
Johnny Hughes 0515cb
From: Mike Hommey <mh@glandium.org>
Johnny Hughes 0515cb
Date: Sat, 1 Jun 2019 09:06:01 +0900
Johnny Hughes 0515cb
Subject: [PATCH] Bug 1526653 - Include struct definitions for user_vfp and
Johnny Hughes 0515cb
 user_vfp_exc.
Johnny Hughes 0515cb
Johnny Hughes 0515cb
---
Johnny Hughes 0515cb
 js/src/wasm/WasmSignalHandlers.cpp | 11 ++++++++++-
Johnny Hughes 0515cb
 1 file changed, 10 insertions(+), 1 deletion(-)
Johnny Hughes 0515cb
Johnny Hughes 0515cb
diff --git a/js/src/wasm/WasmSignalHandlers.cpp b/js/src/wasm/WasmSignalHandlers.cpp
Johnny Hughes 0515cb
index 636537f8478..383c380f04c 100644
Johnny Hughes 0515cb
--- a/js/src/wasm/WasmSignalHandlers.cpp
Johnny Hughes 0515cb
+++ b/js/src/wasm/WasmSignalHandlers.cpp
Johnny Hughes 0515cb
@@ -248,7 +248,16 @@ using mozilla::DebugOnly;
Johnny Hughes 0515cb
 #endif
Johnny Hughes 0515cb
 
Johnny Hughes 0515cb
 #ifdef WASM_EMULATE_ARM_UNALIGNED_FP_ACCESS
Johnny Hughes 0515cb
-#  include <sys/user.h>
Johnny Hughes 0515cb
+struct user_vfp {
Johnny Hughes 0515cb
+  unsigned long long fpregs[32];
Johnny Hughes 0515cb
+  unsigned long fpscr;
Johnny Hughes 0515cb
+};
Johnny Hughes 0515cb
+
Johnny Hughes 0515cb
+struct user_vfp_exc {
Johnny Hughes 0515cb
+  unsigned long fpexc;
Johnny Hughes 0515cb
+  unsigned long fpinst;
Johnny Hughes 0515cb
+  unsigned long fpinst2;
Johnny Hughes 0515cb
+};
Johnny Hughes 0515cb
 #endif
Johnny Hughes 0515cb
 
Johnny Hughes 0515cb
 #if defined(ANDROID)
Johnny Hughes 0515cb
-- 
Johnny Hughes 0515cb
2.20.1
Johnny Hughes 0515cb