Skip to content

Commit

Permalink
Pretty:ing
Browse files Browse the repository at this point in the history
  • Loading branch information
robehn committed Dec 19, 2024
1 parent f99163b commit 0f39cf3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hotspot/os_cpu/linux_riscv/os_linux_riscv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,8 @@

// put OS-includes here
# include <dlfcn.h>
# include <errno.h>
# include <fpu_control.h>
# include <fpu_control.h>
# include <errno.h>
# include <pthread.h>
# include <signal.h>
# include <stdio.h>
Expand Down Expand Up @@ -401,10 +400,11 @@ void os::print_context(outputStream *st, const void *context) {
st->print_cr("vcsr=" INTPTR_FORMAT, v_ext_state->vcsr);
st->print_cr("vlenb=" INTPTR_FORMAT, v_ext_state->vlenb);
st->print_cr("Vector registers:");
// datap format is undocumented, but is generated by kernel function riscv_v_vstate_save().
uint8_t *regp = (uint8_t *)v_ext_state->datap;
uint64_t vr_size = v_ext_state->vlenb;
for (int r = 0; r < 32; r++) {
st->print("%p v%d=0x", regp, r);
st->print("v%d=0x", r);
for (int i = vr_size; i > 0; i--) {
st->print("%02" PRIx8, regp[i-1]);
}
Expand Down

0 comments on commit 0f39cf3

Please sign in to comment.