]> Git Repo - qemu.git/commit - hmp.c
hmp: fix info cpus for sparc targets
authorAurelien Jarno <[email protected]>
Fri, 19 Oct 2012 21:19:19 +0000 (23:19 +0200)
committerLuiz Capitulino <[email protected]>
Wed, 24 Oct 2012 13:27:33 +0000 (11:27 -0200)
commit852bef0e0c03e2de9d6441471219cd3bc1bf45b5
tree552e70e8598a868622b2d89eb3512cca023992cf
parenta8170e5e97ad17ca169c64ba87ae2f53850dab4c
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 <[email protected]>
Cc: Markus Armbruster <[email protected]>
Cc: Blue Swirl <[email protected]>
Signed-off-by: Aurelien Jarno <[email protected]>
Signed-off-by: Luiz Capitulino <[email protected]>
hmp.c
This page took 0.0222 seconds and 4 git commands to generate.