Details
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
cddl/lib/libdtrace/regs_riscv.d | ||
---|---|---|
25–26 | S0 is also the Frame Pointer. Can you add another entry giving it the alias R_FP? | |
sys/cddl/dev/dtrace/riscv/dtrace_isa.c | ||
324 | I think specifying a range in this way is a GNU extension, not standard C syntax, and it should be avoided. Unfortunately that makes this code a lot uglier :( |
cddl/lib/libdtrace/regs_riscv.d | ||
---|---|---|
25–26 | Yeah. I had initially added R_FP as well but I rewrote the file and forgot to add it. | |
sys/cddl/dev/dtrace/riscv/dtrace_isa.c | ||
324 | There are other code pieces that use this as well, I don't think that's too much of an issue, |
cddl/lib/libdtrace/regs_riscv.d | ||
---|---|---|
9 | Technically this should be 1.13, not 1.0. It comes from DT_VERS_STRING in libdtrace. | |
sys/cddl/dev/dtrace/riscv/dtrace_isa.c | ||
324 | It is a GNU extension, but we do use it a fair bit already[*], especially in bhyve. I'd vote for keeping it since it makes the code easier to follow. [*]$ git grep 'case.*\.\.\..*:' |
sys/cddl/dev/dtrace/riscv/dtrace_isa.c | ||
---|---|---|
324 | I'll leave it as is. |
cddl/lib/libdtrace/regs_riscv.d | ||
---|---|---|
9 | Should the version in regs_x86.d be bumped as well? |
sys/cddl/dev/dtrace/riscv/dtrace_isa.c | ||
---|---|---|
336–341 | Won't a /* NOTREACHED */ comment suffice? |
cddl/lib/libdtrace/regs_riscv.d | ||
---|---|---|
9 | No, the binding reflects the current libdtrace version at the time that the definitions were introduced. The x86 register bindings have been there since the beginning. |