Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • arch
  • powerpc
  • lib
  • code-patching.c
Find file BlameHistoryPermalink
  • Christophe Leroy's avatar
    powerpc: Don't use 'struct ppc_inst' to reference instruction location · 69d4d6e5
    Christophe Leroy authored May 20, 2021
    
    
    'struct ppc_inst' is an internal representation of an instruction, but
    in-memory instructions are and will remain a table of 'u32' forever.
    
    Replace all 'struct ppc_inst *' used for locating an instruction in
    memory by 'u32 *'. This removes a lot of undue casts to 'struct
    ppc_inst *'.
    
    It also helps locating ab-use of 'struct ppc_inst' dereference.
    
    Signed-off-by: default avatarChristophe Leroy <christophe.leroy@csgroup.eu>
    [mpe: Fix ppc_inst_next(), use u32 instead of unsigned int]
    Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
    Link: https://lore.kernel.org/r/7062722b087228e42cbd896e39bfdf526d6a340a.1621516826.git.christophe.leroy@csgroup.eu
    69d4d6e5
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7