diff options
author | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2021-09-16 10:40:02 +0200 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2021-09-16 14:52:46 +0200 |
commit | 9ac200acce8c27ef44da31246f337a2454e54e0d (patch) | |
tree | b1e647ae3974d9a5cb739fe6963a1e1705096d13 /target/sparc | |
parent | eba6814a0a85a6e307221af64bf6ad28befaf1f9 (diff) | |
download | qemu-9ac200acce8c27ef44da31246f337a2454e54e0d.zip |
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é <f4bug@amsat.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Message-Id: <20210916084002.1918445-1-f4bug@amsat.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'target/sparc')
-rw-r--r-- | target/sparc/cpu.c | 2 | ||||
-rw-r--r-- | target/sparc/cpu.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/target/sparc/cpu.c b/target/sparc/cpu.c index da6b30ec74..2bf67fb99d 100644 --- a/target/sparc/cpu.c +++ b/target/sparc/cpu.c @@ -610,7 +610,7 @@ static void cpu_print_cc(FILE *f, uint32_t cc) #define REGS_PER_LINE 8 #endif -void sparc_cpu_dump_state(CPUState *cs, FILE *f, int flags) +static void sparc_cpu_dump_state(CPUState *cs, FILE *f, int flags) { SPARCCPU *cpu = SPARC_CPU(cs); CPUSPARCState *env = &cpu->env; diff --git a/target/sparc/cpu.h b/target/sparc/cpu.h index ff8ae73002..1f40d768d8 100644 --- a/target/sparc/cpu.h +++ b/target/sparc/cpu.h @@ -571,7 +571,6 @@ extern const VMStateDescription vmstate_sparc_cpu; #endif void sparc_cpu_do_interrupt(CPUState *cpu); -void sparc_cpu_dump_state(CPUState *cpu, FILE *f, int flags); hwaddr sparc_cpu_get_phys_page_debug(CPUState *cpu, vaddr addr); int sparc_cpu_gdb_read_register(CPUState *cpu, GByteArray *buf, int reg); int sparc_cpu_gdb_write_register(CPUState *cpu, uint8_t *buf, int reg); |