[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH 02/11] hw/misc/mips: Reduce itc_reconfigure() scope
From: |
Philippe Mathieu-Daudé |
Subject: |
[RFC PATCH 02/11] hw/misc/mips: Reduce itc_reconfigure() scope |
Date: |
Fri, 9 Feb 2024 10:05:03 +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>
---
include/hw/misc/mips_itu.h | 2 --
hw/misc/mips_itu.c | 2 +-
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/include/hw/misc/mips_itu.h b/include/hw/misc/mips_itu.h
index 5caed6cc36..3a7330ac07 100644
--- a/include/hw/misc/mips_itu.h
+++ b/include/hw/misc/mips_itu.h
@@ -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 */
diff --git a/hw/misc/mips_itu.c b/hw/misc/mips_itu.c
index 37aea0e737..db1220f8e0 100644
--- a/hw/misc/mips_itu.c
+++ b/hw/misc/mips_itu.c
@@ -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;
--
2.41.0
- [RFC PATCH 00/11] target/mips: Remove I6500 CPU definition, Philippe Mathieu-Daudé, 2024/02/09
- [RFC PATCH 01/11] target/mips: Remove helpers accessing SAAR registers, Philippe Mathieu-Daudé, 2024/02/09
- [RFC PATCH 02/11] hw/misc/mips: Reduce itc_reconfigure() scope,
Philippe Mathieu-Daudé <=
- [RFC PATCH 03/11] target/mips: Remove MIPSITUState::itu field, Philippe Mathieu-Daudé, 2024/02/09
- [RFC PATCH 04/11] target/mips: Remove CPUMIPSState::saarp field, Philippe Mathieu-Daudé, 2024/02/09
- [RFC PATCH 05/11] hw/misc/mips_itu: Remove MIPSITUState::cpu0 field, Philippe Mathieu-Daudé, 2024/02/09
- [RFC PATCH 06/11] hw/misc/mips_itu: Remove MIPSITUState::saar field, Philippe Mathieu-Daudé, 2024/02/09
- [RFC PATCH 07/11] target/mips: Remove CPUMIPSState::CP0_SAAR[2] field, Philippe Mathieu-Daudé, 2024/02/09
- [RFC PATCH 08/11] target/mips: Remove helpers accessing SAARI register, Philippe Mathieu-Daudé, 2024/02/09
- [RFC PATCH 09/11] target/mips: Remove CPUMIPSState::CP0_SAARI field, Philippe Mathieu-Daudé, 2024/02/09
- [RFC PATCH 10/11] target/mips: Remove the unused DisasContext::saar field, Philippe Mathieu-Daudé, 2024/02/09
- [RFC PATCH 11/11] target/mips: Remove I6500 CPU definition, Philippe Mathieu-Daudé, 2024/02/09
- Re: [RFC PATCH 00/11] target/mips: Remove I6500 CPU definition, Jiaxun Yang, 2024/02/09