1526653.patch 814 B

1234567891011121314151617181920212223242526272829303132
  1. From: Mike Hommey <mh@glandium.org>
  2. Date: Sat, 1 Jun 2019 09:06:01 +0900
  3. Subject: Bug 1526653 - Include struct definitions for user_vfp and
  4. user_vfp_exc.
  5. ---
  6. js/src/wasm/WasmSignalHandlers.cpp | 11 ++++++++++-
  7. 1 file changed, 10 insertions(+), 1 deletion(-)
  8. diff --git a/js/src/wasm/WasmSignalHandlers.cpp b/js/src/wasm/WasmSignalHandlers.cpp
  9. index f8977a6b074a..9a9794854084 100644
  10. --- a/js/src/wasm/WasmSignalHandlers.cpp
  11. +++ b/js/src/wasm/WasmSignalHandlers.cpp
  12. @@ -248,7 +248,16 @@ using mozilla::DebugOnly;
  13. #endif
  14. #ifdef WASM_EMULATE_ARM_UNALIGNED_FP_ACCESS
  15. -# include <sys/user.h>
  16. +struct user_vfp {
  17. + unsigned long long fpregs[32];
  18. + unsigned long fpscr;
  19. +};
  20. +
  21. +struct user_vfp_exc {
  22. + unsigned long fpexc;
  23. + unsigned long fpinst;
  24. + unsigned long fpinst2;
  25. +};
  26. #endif
  27. #if defined(ANDROID)