Skip to content

Commit 9ac200a

Browse files
philmdvivier
authored andcommitted
target/sparc: Make sparc_cpu_dump_state() static
The sparc_cpu_dump_state() function is only called within the same file. Make it static. Signed-off-by: Philippe Mathieu-Daudé <[email protected]> Reviewed-by: Laurent Vivier <[email protected]> Reviewed-by: Mark Cave-Ayland <[email protected]> Message-Id: <[email protected]> Signed-off-by: Laurent Vivier <[email protected]>
1 parent eba6814 commit 9ac200a

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

target/sparc/cpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ static void cpu_print_cc(FILE *f, uint32_t cc)
610610
#define REGS_PER_LINE 8
611611
#endif
612612

613-
void sparc_cpu_dump_state(CPUState *cs, FILE *f, int flags)
613+
static void sparc_cpu_dump_state(CPUState *cs, FILE *f, int flags)
614614
{
615615
SPARCCPU *cpu = SPARC_CPU(cs);
616616
CPUSPARCState *env = &cpu->env;

target/sparc/cpu.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,6 @@ extern const VMStateDescription vmstate_sparc_cpu;
571571
#endif
572572

573573
void sparc_cpu_do_interrupt(CPUState *cpu);
574-
void sparc_cpu_dump_state(CPUState *cpu, FILE *f, int flags);
575574
hwaddr sparc_cpu_get_phys_page_debug(CPUState *cpu, vaddr addr);
576575
int sparc_cpu_gdb_read_register(CPUState *cpu, GByteArray *buf, int reg);
577576
int sparc_cpu_gdb_write_register(CPUState *cpu, uint8_t *buf, int reg);

0 commit comments

Comments
 (0)