diff options
author | Aurelien Jarno | 2012-10-19 23:19:19 +0200 |
---|---|---|
committer | Luiz Capitulino | 2012-10-24 15:27:33 +0200 |
commit | 852bef0e0c03e2de9d6441471219cd3bc1bf45b5 (patch) | |
tree | 552e70e8598a868622b2d89eb3512cca023992cf /tests/libqtest.c | |
parent | Rename target_phys_addr_t to hwaddr (diff) | |
download | qemu-852bef0e0c03e2de9d6441471219cd3bc1bf45b5.tar.gz qemu-852bef0e0c03e2de9d6441471219cd3bc1bf45b5.tar.xz qemu-852bef0e0c03e2de9d6441471219cd3bc1bf45b5.zip |
hmp: fix info cpus for sparc targets
On sparc targets, info cpus returns this kind of output:
| info cpus
| * CPU #0: pc=0x0000000000424d18pc=0x0000000000424d18npc=0x0000000000424d1c thread_id=19460
pc is printed twice, there is no space between pc, pc and npc.
With this patch, pc is not printed anymore when has_npc is set. In addition
the space is printed before pc/nip/npc/PC instead of after the colon so that
multiple prints are possible. This result on the following kind of input on
sparc targets:
| info cpus
| * CPU #0: pc=0x0000000000424d18 npc=0x0000000000424d1c thread_id=19460
Cc: Luiz Capitulino <lcapitulino@redhat.com>
Cc: Markus Armbruster <armbru@redhat.com>
Cc: Blue Swirl <blauwirbel@gmail.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'tests/libqtest.c')
0 files changed, 0 insertions, 0 deletions