[PATCH] D136264: [libunwind][RISCV] Support reading of VLENB CSR register

Kito Cheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 20 21:32:30 PDT 2022


kito-cheng accepted this revision.
kito-cheng added a comment.

LGTM, just one nit :)



================
Comment at: libunwind/src/Registers.hpp:4105
+    reg_t vlenb;
+    asm("csrr %0, 0xC22" : "=r"(vlenb) :);
+    return vlenb;
----------------
nit: `__asm__("csrr %0, 0xC22" : "=r"(vlenb));`


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D136264/new/

https://reviews.llvm.org/D136264



More information about the llvm-commits mailing list