[DynInst_API:] [dyninst/dyninst] 6d104c: Add RISC-V Codegen


Date: Mon, 30 Mar 2026 18:45:25 -0700
From: wxrdnx <noreply@xxxxxxxxxx>
Subject: [DynInst_API:] [dyninst/dyninst] 6d104c: Add RISC-V Codegen
  Branch: refs/heads/thaines/riscv_codegen
  Home:   https://github.com/dyninst/dyninst
  Commit: 6d104c4edda3f85fcc48e486d1f73235085a78cf
      https://github.com/dyninst/dyninst/commit/6d104c4edda3f85fcc48e486d1f73235085a78cf
  Author: wxrdnx <wxrdnx@xxxxxxxxxxxxxx>
  Date:   2026-03-30 (Mon, 30 Mar 2026)

  Changed paths:
    A common/src/]
    A common/src/arch-riscv64.C
    M common/src/arch-riscv64.h
    M dyninstAPI/CMakeLists.txt
    M dyninstAPI/src/BPatch_memoryAccessAdapter.C
    M dyninstAPI/src/BPatch_object.C
    M dyninstAPI/src/BPatch_snippet.C
    M dyninstAPI/src/Parsing-arch.C
    M dyninstAPI/src/Parsing.h
    A dyninstAPI/src/RegisterConversion-riscv64.C
    M dyninstAPI/src/Relocation/Springboard.C
    A dyninstAPI/src/Relocation/Widgets/CFWidget-riscv64.C
    M dyninstAPI/src/Relocation/Widgets/CFWidget.h
    A dyninstAPI/src/Relocation/Widgets/PCWidget-riscv64.C
    M dyninstAPI/src/binaryEdit.C
    M dyninstAPI/src/binaryEdit.h
    A dyninstAPI/src/codegen-riscv64.C
    M dyninstAPI/src/codegen.C
    M dyninstAPI/src/codegen.h
    A dyninstAPI/src/dynProcess-riscv64.C
    A dyninstAPI/src/emit-riscv64.C
    A dyninstAPI/src/emit-riscv64.h
    M dyninstAPI/src/function.h
    A dyninstAPI/src/inst-riscv64.C
    A dyninstAPI/src/linux-riscv64.C
    M dyninstAPI/src/linux.C
    M dyninstAPI/src/linux.h
    A dyninstAPI/src/parse-riscv64.C
    M dyninstAPI/src/registerSpace/registerSpace.C
    M dyninstAPI/src/registerSpace/registerSpace.h
    A dyninstAPI/src/stackwalk-riscv64.C
    M dyninstAPI/src/unix.C
    M dyninstAPI_RT/CMakeLists.txt
    M dyninstAPI_RT/h/dyninstAPI_RT.h
    M dyninstAPI_RT/src/RTfreebsd.c
    M dyninstAPI_RT/src/RTlinux.c
    A dyninstAPI_RT/src/RTstatic_ctors_dtors-riscv64.c
    M instructionAPI/src/decoder/riscv/decoder.C
    M parseAPI/h/CodeSource.h
    M parseAPI/src/SymtabCodeSource.C
    M symtabAPI/h/Region.h
    M symtabAPI/h/Symtab.h
    M symtabAPI/src/Object-elf.C
    M symtabAPI/src/Region.C
    M symtabAPI/src/Symtab.C
    M symtabAPI/src/emitElf.C
    M symtabAPI/src/emitElf.h

  Log Message:
  -----------
  Add RISC-V Codegen


  Commit: bd7264f0978d130d2e2a1b79856b91001c7a93d7
      https://github.com/dyninst/dyninst/commit/bd7264f0978d130d2e2a1b79856b91001c7a93d7
  Author: wxrdnx <wxrdnx@xxxxxxxxxxxxxx>
  Date:   2026-03-30 (Mon, 30 Mar 2026)

  Changed paths:
    M dyninstAPI/src/codegen.h
    M dyninstAPI/src/emit-riscv64.h

  Log Message:
  -----------
  Add missing headers


  Commit: 09da014a1b1fe49ea4f098ea591acc4178fcc96b
      https://github.com/dyninst/dyninst/commit/09da014a1b1fe49ea4f098ea591acc4178fcc96b
  Author: wxrdnx <wxrdnx@xxxxxxxxxxxxxx>
  Date:   2026-03-30 (Mon, 30 Mar 2026)

  Changed paths:
    M common/src/arch-riscv64.C
    M common/src/arch-riscv64.h

  Log Message:
  -----------
  Reformat arch-riscv64


  Commit: c96b45a28995d81f967d5bb1d95aec8564282084
      https://github.com/dyninst/dyninst/commit/c96b45a28995d81f967d5bb1d95aec8564282084
  Author: wxrdnx <wxrdnx@xxxxxxxxxxxxxx>
  Date:   2026-03-30 (Mon, 30 Mar 2026)

  Changed paths:
    M dyninstAPI/src/inst-riscv64.C

  Log Message:
  -----------
  Refactor inst-riscv64.C


  Commit: 6c1ce43035903f63587d47efa2be417148d07457
      https://github.com/dyninst/dyninst/commit/6c1ce43035903f63587d47efa2be417148d07457
  Author: wxrdnx <wxrdnx@xxxxxxxxxxxxxx>
  Date:   2026-03-30 (Mon, 30 Mar 2026)

  Changed paths:
    M dyninstAPI/src/RegisterConversion-riscv64.C

  Log Message:
  -----------
  Reformat RegisterConversion-riscv64.C


  Commit: b152989d2b592aa8a60362c8f699033973824355
      https://github.com/dyninst/dyninst/commit/b152989d2b592aa8a60362c8f699033973824355
  Author: wxrdnx <wxrdnx@xxxxxxxxxxxxxx>
  Date:   2026-03-30 (Mon, 30 Mar 2026)

  Changed paths:
    M dyninstAPI/src/codegen.C

  Log Message:
  -----------
  change to useCompressed()


  Commit: 514e0df776beb805c8cadb492a178e1db3362649
      https://github.com/dyninst/dyninst/commit/514e0df776beb805c8cadb492a178e1db3362649
  Author: wxrdnx <wxrdnx@xxxxxxxxxxxxxx>
  Date:   2026-03-30 (Mon, 30 Mar 2026)

  Changed paths:
    M dyninstAPI/src/emit-riscv64.C
    M dyninstAPI/src/emit-riscv64.h

  Log Message:
  -----------
  Move public methods all to emit-riscv64.C


  Commit: 0bef42a98a20132fff43248d94f25f3ddcc5a10e
      https://github.com/dyninst/dyninst/commit/0bef42a98a20132fff43248d94f25f3ddcc5a10e
  Author: wxrdnx <wxrdnx@xxxxxxxxxxxxxx>
  Date:   2026-03-30 (Mon, 30 Mar 2026)

  Changed paths:
    M dyninstAPI/src/emit-riscv64.C
    M dyninstAPI/src/emit-riscv64.h

  Log Message:
  -----------
  Reformat emit-riscv64.C


  Commit: 46ec21fd1e9de7b3e9ccd3e287b0a484a388f999
      https://github.com/dyninst/dyninst/commit/46ec21fd1e9de7b3e9ccd3e287b0a484a388f999
  Author: wxrdnx <wxrdnx@xxxxxxxxxxxxxx>
  Date:   2026-03-30 (Mon, 30 Mar 2026)

  Changed paths:
    M dyninstAPI/src/codegen-riscv64.C
    A dyninstAPI/src/codegen-riscv64.h

  Log Message:
  -----------
  Return number of bytes generated


  Commit: 2522226170902478f4f23fb1a67ef349f13a2f96
      https://github.com/dyninst/dyninst/commit/2522226170902478f4f23fb1a67ef349f13a2f96
  Author: wxrdnx <wxrdnx@xxxxxxxxxxxxxx>
  Date:   2026-03-30 (Mon, 30 Mar 2026)

  Changed paths:
    M dyninstAPI/src/emit-riscv64.C
    M dyninstAPI/src/inst-riscv64.C

  Log Message:
  -----------
  Also update inst-riscv64 and emit-riscv64


  Commit: af9f42c9f2149d2f6cb3bcf9e33a4b97ffc38118
      https://github.com/dyninst/dyninst/commit/af9f42c9f2149d2f6cb3bcf9e33a4b97ffc38118
  Author: wxrdnx <wxrdnx@xxxxxxxxxxxxxx>
  Date:   2026-03-30 (Mon, 30 Mar 2026)

  Changed paths:
    R common/src/]

  Log Message:
  -----------
  Remove junk file


  Commit: f6896d04029b7e4847e3cf99482da9d536d943c3
      https://github.com/dyninst/dyninst/commit/f6896d04029b7e4847e3cf99482da9d536d943c3
  Author: wxrdnx <wxrdnx@xxxxxxxxxxxxxx>
  Date:   2026-03-30 (Mon, 30 Mar 2026)

  Changed paths:
    M dyninstAPI/src/Relocation/Springboard.C

  Log Message:
  -----------
  Remove junk space


  Commit: 2691709088c7b165c202c85d7ed507ae37384017
      https://github.com/dyninst/dyninst/commit/2691709088c7b165c202c85d7ed507ae37384017
  Author: wxrdnx <wxrdnx@xxxxxxxxxxxxxx>
  Date:   2026-03-30 (Mon, 30 Mar 2026)

  Changed paths:
    M dyninstAPI/src/Relocation/Widgets/CFWidget-riscv64.C

  Log Message:
  -----------
  Fix copy pasta


  Commit: 51327ecebe90c2b60815b5968626794269714af6
      https://github.com/dyninst/dyninst/commit/51327ecebe90c2b60815b5968626794269714af6
  Author: wxrdnx <wxrdnx@xxxxxxxxxxxxxx>
  Date:   2026-03-30 (Mon, 30 Mar 2026)

  Changed paths:
    M common/src/arch-riscv64.C

  Log Message:
  -----------
  Change assert to if, remove unused variables


  Commit: 4bbd46a20e0cf5b40ed54fff98ed1392dab56dd8
      https://github.com/dyninst/dyninst/commit/4bbd46a20e0cf5b40ed54fff98ed1392dab56dd8
  Author: wxrdnx <wxrdnx@xxxxxxxxxxxxxx>
  Date:   2026-03-30 (Mon, 30 Mar 2026)

  Changed paths:
    M dyninstAPI/src/Relocation/Widgets/PCWidget-riscv64.C
    M dyninstAPI/src/inst-riscv64.C
    A dyninstAPI/src/inst-riscv64.h
    A dyninstAPI/src/linux-riscv64.h

  Log Message:
  -----------
  Finish Dyninst API migraiton


  Commit: ab3a116ebcb2b6683ad8d92488f2908531e80220
      https://github.com/dyninst/dyninst/commit/ab3a116ebcb2b6683ad8d92488f2908531e80220
  Author: wxrdnx <wxrdnx@xxxxxxxxxxxxxx>
  Date:   2026-03-30 (Mon, 30 Mar 2026)

  Changed paths:
    M common/src/arch-riscv64.h

  Log Message:
  -----------
  Rename variable names, add divu


  Commit: 7b8079aa61600ddbc9561121ff29409b36ba2370
      https://github.com/dyninst/dyninst/commit/7b8079aa61600ddbc9561121ff29409b36ba2370
  Author: wxrdnx <wxrdnx@xxxxxxxxxxxxxx>
  Date:   2026-03-30 (Mon, 30 Mar 2026)

  Changed paths:
    A dyninstAPI_RT/src/RTthread-riscv64.c

  Log Message:
  -----------
  Add missing RISC-V RTthread


  Commit: e1d001aa21e47a65efb23623ec02a14af8b0f5ad
      https://github.com/dyninst/dyninst/commit/e1d001aa21e47a65efb23623ec02a14af8b0f5ad
  Author: wxrdnx <wxrdnx@xxxxxxxxxxxxxx>
  Date:   2026-03-30 (Mon, 30 Mar 2026)

  Changed paths:
    M cmake/DyninstCapArchDef.cmake

  Log Message:
  -----------
  Add missing host arch in DyninstCapArchDef.cmake


  Commit: 1a319673a2c568b433c3b8509d6e4081b94120a7
      https://github.com/dyninst/dyninst/commit/1a319673a2c568b433c3b8509d6e4081b94120a7
  Author: wxrdnx <wxrdnx@xxxxxxxxxxxxxx>
  Date:   2026-03-30 (Mon, 30 Mar 2026)

  Changed paths:
    M proccontrol/src/linux.C

  Log Message:
  -----------
  Add missing RISC-V defines


  Commit: 42d154d83046c36def5b082f6bb31dfffa96346e
      https://github.com/dyninst/dyninst/commit/42d154d83046c36def5b082f6bb31dfffa96346e
  Author: wxrdnx <wxrdnx@xxxxxxxxxxxxxx>
  Date:   2026-03-30 (Mon, 30 Mar 2026)

  Changed paths:
    M common/CMakeLists.txt
    M dyninstAPI/src/Relocation/Widgets/PCWidget-riscv64.C
    M dyninstAPI/src/inst-riscv64.C

  Log Message:
  -----------
  Add missing files and remove duplicated implementation


  Commit: a8aa9d824cdecedd87d245f30ee5ac0969392d0d
      https://github.com/dyninst/dyninst/commit/a8aa9d824cdecedd87d245f30ee5ac0969392d0d
  Author: wxrdnx <wxrdnx@xxxxxxxxxxxxxx>
  Date:   2026-03-30 (Mon, 30 Mar 2026)

  Changed paths:
    M common/CMakeLists.txt

  Log Message:
  -----------
  Remove git merge conflict markers


  Commit: 0fde7e164b89c7c21e70087f25410adffb8af0ab
      https://github.com/dyninst/dyninst/commit/0fde7e164b89c7c21e70087f25410adffb8af0ab
  Author: wxrdnx <wxrdnx@xxxxxxxxxxxxxx>
  Date:   2026-03-30 (Mon, 30 Mar 2026)

  Changed paths:
    M dyninstAPI/src/registerSpace/registerSpace.C

  Log Message:
  -----------
  Fix rebase error


  Commit: d2115789eff68659f848ab1412a67499fb6e0e47
      https://github.com/dyninst/dyninst/commit/d2115789eff68659f848ab1412a67499fb6e0e47
  Author: wxrdnx <wxrdnx@xxxxxxxxxxxxxx>
  Date:   2026-03-30 (Mon, 30 Mar 2026)

  Changed paths:
    M common/src/arch-riscv64.C

  Log Message:
  -----------
  Fix missing !s


Compare: https://github.com/dyninst/dyninst/compare/6d2cdc969978...d2115789eff6

To unsubscribe from these emails, change your notification settings at https://github.com/dyninst/dyninst/settings/notifications
[← Prev in Thread] Current Thread [Next in Thread→]
  • [DynInst_API:] [dyninst/dyninst] 6d104c: Add RISC-V Codegen, wxrdnx <=