Bug 1526653 - Include struct definitions for user_vfp and user_vfp_exc.
authorMike Hommey <mh@glandium.org>
Sat, 1 Jun 2019 00:06:01 +0000 (09:06 +0900)
committerCarsten Schoenert <c.schoenert@t-online.de>
Sun, 12 Apr 2020 08:21:40 +0000 (09:21 +0100)
Gbp-Pq: Topic porting-armhf
Gbp-Pq: Name Bug-1526653-Include-struct-definitions-for-user_vfp-and-u.patch

js/src/wasm/WasmSignalHandlers.cpp

index cfb297020f64865131ff813662f99eca2b2946bf..b56e0f6ed22139a59103a7df00f137da0e25f664 100644 (file)
@@ -248,7 +248,16 @@ using mozilla::DebugOnly;
 #endif
 
 #ifdef WASM_EMULATE_ARM_UNALIGNED_FP_ACCESS
-#  include <sys/user.h>
+struct user_vfp {
+  unsigned long long fpregs[32];
+  unsigned long fpscr;
+};
+
+struct user_vfp_exc {
+  unsigned long fpexc;
+  unsigned long fpinst;
+  unsigned long fpinst2;
+};
 #endif
 
 #if defined(ANDROID)