Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
S
swiftshader
  • Project
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Chen Yisong
  • swiftshader
  • Repository

Switch branch/tag
  • swiftshader
  • src
  • Reactor
  • ExecutableMemory.hpp
Find file
BlameHistoryPermalink
  • Nicolas Capens's avatar
    Fix unaligned access undefined behavior. · 8d2cf752
    Nicolas Capens authored Nov 22, 2018
    Unaligned accesses are undefined behavior, but they're common in our
    ELF binary patching code for variable length instruction sets (namely
    x86).
    
    We can use memcpy() and rely on target-specific compiler optimizations
    to make it efficient. Utility functions and classes were added to aid
    readability.
    
    Bug b/119823623
    
    Change-Id: I8a82672a0d18d1e1783f580eb629f8cc09a009cd
    Reviewed-on: https://swiftshader-review.googlesource.com/c/22828Tested-by: 's avatarNicolas Capens <nicolascapens@google.com>
    Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com>
    8d2cf752
ExecutableMemory.hpp 1.88 KB
EditWeb IDE
×

Replace ExecutableMemory.hpp

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.