Skip to content

Commit

Permalink
hw/misc/mips: Reduce itc_reconfigure() scope
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
philmd committed Feb 15, 2024
1 parent e1152f8 commit 77599a6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion hw/misc/mips_itu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions include/hw/misc/mips_itu.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit 77599a6

Please sign in to comment.