mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-30 13:31:52 -06:00
hw/misc/mips: Reduce itc_reconfigure() scope
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>
This commit is contained in:
parent
e1152f8166
commit
77599a696d
2 changed files with 1 additions and 3 deletions
|
@ -86,7 +86,7 @@ static uint64_t itc_tag_read(void *opaque, hwaddr addr, unsigned size)
|
||||||
return tag->ITCAddressMap[index];
|
return tag->ITCAddressMap[index];
|
||||||
}
|
}
|
||||||
|
|
||||||
void itc_reconfigure(MIPSITUState *tag)
|
static void itc_reconfigure(MIPSITUState *tag)
|
||||||
{
|
{
|
||||||
uint64_t *am = &tag->ITCAddressMap[0];
|
uint64_t *am = &tag->ITCAddressMap[0];
|
||||||
MemoryRegion *mr = &tag->storage_io;
|
MemoryRegion *mr = &tag->storage_io;
|
||||||
|
|
|
@ -79,6 +79,4 @@ struct MIPSITUState {
|
||||||
/* Get ITC Configuration Tag memory region. */
|
/* Get ITC Configuration Tag memory region. */
|
||||||
MemoryRegion *mips_itu_get_tag_region(MIPSITUState *itu);
|
MemoryRegion *mips_itu_get_tag_region(MIPSITUState *itu);
|
||||||
|
|
||||||
void itc_reconfigure(struct MIPSITUState *tag);
|
|
||||||
|
|
||||||
#endif /* MIPS_ITU_H */
|
#endif /* MIPS_ITU_H */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue