Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • D dynamorio
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,467
    • Issues 1,467
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 44
    • Merge requests 44
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • DynamoRIO
  • dynamorio
  • Merge requests
  • !5670

i#3544 riscv64, part 5: enable basic instruction decoding

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge i3544-riscv64-p5-enable-decoder into master Sep 30, 2022
  • Overview 7
  • Commits 4
  • Pipelines 0
  • Changes 2

Created by: semihalf-kardach-stanislaw

Add codec.c to the build system and implement basic decode and disassemble functions to enable drdisasm to produce proper output:

$ objdump -d /usr/bin/ls 2>/dev/null | grep -v '...'
| cut -s -f 2 | ./clients/bin64/drdisas | head 00017397 auipc $0x17 -> %t2 41c30333 sub %t1 %t3 -> %t1 8e83be03 ld -0x0718(%t2)[8byte] -> %t3 fd430313 addi %t1 $-0x2c -> %t1 8e838293 addi %t2 $-0x718 -> %t0 00135313 srli %t1 $0x1 -> %t1 0082b283 ld +0x08(%t0)[8byte] -> %t0 000e0067 jalr %t3 $0x0 -> %zero 00017e17 auipc $0x17 -> %t3 8d8e3e03 ld -0x0728(%t3)[8byte] -> %t3

Issue #3544

Signed-off-by: Stanislaw Kardach [email protected]

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: i3544-riscv64-p5-enable-decoder