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>
Fri, 5 Feb 2021 19:12:59 +0000 (19:12 +0000)
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 a6610f3e655047f44fead2bc2b793a5d02565037..7862898e995bd38759183f3e3eb18d66d0693761 100644 (file)
@@ -249,7 +249,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)