Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SSE] 0xC0000005: Access violation reading location 0xFFFFFFFF. #147

Closed
halx99 opened this issue Aug 6, 2020 · 1 comment
Closed

[SSE] 0xC0000005: Access violation reading location 0xFFFFFFFF. #147

halx99 opened this issue Aug 6, 2020 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@halx99
Copy link
Collaborator

halx99 commented Aug 6, 2020

  • cocos2d-x version:
  • devices test on:
  • developing environments
    • NDK version:
    • Xcode version:
    • VS version:
    • browser type and version:

Steps to Reproduce:

  1. add SSE check at cocos/CMakeLists.txt
check_cxx_compiler_flag("/arch:SSE2" HAVE_ARCH_SSE2)
if(HAVE_ARCH_SSE2)
    target_compile_definitions(cocos2d PUBLIC __SSE__=1)
    message(STATUS "Building with SSE2")
endif()
  1. run cpp-empty-test
@halx99
Copy link
Collaborator Author

halx99 commented Aug 6, 2020

Root Cause: caused by address alignment issue, everything must be 16byte boundary when pass to sse instructions functions _mm_xxx

@halx99 halx99 added the documentation Improvements or additions to documentation label Aug 6, 2020
@halx99 halx99 changed the title 0xC0000005: Access violation reading location 0xFFFFFFFF. [SSE] 0xC0000005: Access violation reading location 0xFFFFFFFF. Aug 6, 2020
@halx99 halx99 closed this as completed Aug 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant