hw/misc/mips: Reduce itc_reconfigure() scope
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 9 Feb 2024 07:46:16 +0000 (08:46 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 15 Feb 2024 14:53:12 +0000 (15:53 +0100)
Previous commit removed the MT*C0(SAAR) helpers which
were the only calls to itc_reconfigure() out of hw/,
we can reduce its scope and declare it statically.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20240209090513.9401-3-philmd@linaro.org>

hw/misc/mips_itu.c
include/hw/misc/mips_itu.h

index 37aea0e7376840944969b8b9e3316ac8d98eb303..db1220f8e04dd7a969373dec529ea3f466cd2a54 100644 (file)
@@ -86,7 +86,7 @@ static uint64_t itc_tag_read(void *opaque, hwaddr addr, unsigned size)
     return tag->ITCAddressMap[index];
 }
 
-void itc_reconfigure(MIPSITUState *tag)
+static void itc_reconfigure(MIPSITUState *tag)
 {
     uint64_t *am = &tag->ITCAddressMap[0];
     MemoryRegion *mr = &tag->storage_io;
index 5caed6cc360dc9afe7ff6b8b3e88770d979326d3..3a7330ac07967fab28c66bc285bd1cd24af3d28d 100644 (file)
@@ -79,6 +79,4 @@ struct MIPSITUState {
 /* Get ITC Configuration Tag memory region. */
 MemoryRegion *mips_itu_get_tag_region(MIPSITUState *itu);
 
-void itc_reconfigure(struct MIPSITUState *tag);
-
 #endif /* MIPS_ITU_H */