aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2024-02-15 11:30:46 +0000
committerPeter Maydell <peter.maydell@linaro.org>2024-02-15 11:30:46 +0000
commitdfae6d5eec0666648d7e4664ae6e40ebf5b80c7b (patch)
tree12720267d071f19840c5e4c3a8518c0cefe9d0a2 /hw
parentf94d58f2608d2cae4a59f07c89e811ca8b6753e1 (diff)
hw/block/tc58128: Don't emit deprecation warning under qtest
Suppress the deprecation warning when we're running under qtest, to avoid "make check" including warning messages in its output. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-id: 20240206154151.155620-1-peter.maydell@linaro.org
Diffstat (limited to 'hw')
-rw-r--r--hw/block/tc58128.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/block/tc58128.c b/hw/block/tc58128.c
index 6944cf58fa..0984e37417 100644
--- a/hw/block/tc58128.c
+++ b/hw/block/tc58128.c
@@ -202,7 +202,9 @@ static sh7750_io_device tc58128 = {
int tc58128_init(struct SH7750State *s, const char *zone1, const char *zone2)
{
- warn_report_once("The TC58128 flash device is deprecated");
+ if (!qtest_enabled()) {
+ warn_report_once("The TC58128 flash device is deprecated");
+ }
init_dev(&tc58128_devs[0], zone1);
init_dev(&tc58128_devs[1], zone2);
return sh7750_register_io_device(s, &tc58128);