Skip to content

Commit

Permalink
s390x: Add vector registers to HMP output
Browse files Browse the repository at this point in the history
There are mechanisms to dump registers via the qemu HMP interface,
such as the "info registers" command.  Expand this output to dump
the new vector registers.

Signed-off-by: Eric Farman <[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Reviewed-by: Thomas Huth <[email protected]>
Signed-off-by: Cornelia Huck <[email protected]>
  • Loading branch information
Eric Farman authored and cohuck committed May 27, 2015
1 parent ca343c7 commit 56c4227
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions target-s390x/translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,12 @@ void s390_cpu_dump_state(CPUState *cs, FILE *f, fprintf_function cpu_fprintf,
}
}

for (i = 0; i < 32; i++) {
cpu_fprintf(f, "V%02d=%016" PRIx64 "%016" PRIx64, i,
env->vregs[i][0].ll, env->vregs[i][1].ll);
cpu_fprintf(f, (i % 2) ? " " : "\n");
}

#ifndef CONFIG_USER_ONLY
for (i = 0; i < 16; i++) {
cpu_fprintf(f, "C%02d=%016" PRIx64, i, env->cregs[i]);
Expand Down

0 comments on commit 56c4227

Please sign in to comment.