« Previous | Next » 

Revision 852bef0e

ID852bef0e0c03e2de9d6441471219cd3bc1bf45b5

Added by Aurelien Jarno over 11 years ago

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 <>
Cc: Markus Armbruster <>
Cc: Blue Swirl <>
Signed-off-by: Aurelien Jarno <>
Signed-off-by: Luiz Capitulino <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences