diff options
author | Chris Laplante <chris@laplante.io> | 2023-08-22 17:31:01 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2023-08-22 17:31:01 +0100 |
commit | fe692f7c8c477dd794a45b18148e248c3c327931 (patch) | |
tree | abd705e6f44a5cee486a331972d408ed86b36c10 /softmmu | |
parent | a8610f8bd7465a9c30c206074d47dd3f387b5b9a (diff) | |
download | qemu-fe692f7c8c477dd794a45b18148e248c3c327931.zip qemu-fe692f7c8c477dd794a45b18148e248c3c327931.tar.gz qemu-fe692f7c8c477dd794a45b18148e248c3c327931.tar.bz2 |
qtest: bail from irq_intercept_in if name is specified
Named interception of in-GPIOs is not supported yet.
Signed-off-by: Chris Laplante <chris@laplante.io>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20230728160324.1159090-5-chris@laplante.io
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'softmmu')
-rw-r--r-- | softmmu/qtest.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/softmmu/qtest.c b/softmmu/qtest.c index 0f1d478..66757ba 100644 --- a/softmmu/qtest.c +++ b/softmmu/qtest.c @@ -397,9 +397,11 @@ static void qtest_process_command(CharBackend *chr, gchar **words) || strcmp(words[0], "irq_intercept_in") == 0) { DeviceState *dev; NamedGPIOList *ngl; + bool is_named; bool is_outbound; g_assert(words[1]); + is_named = words[2] != NULL; is_outbound = words[0][14] == 'o'; dev = DEVICE(object_resolve_path(words[1], NULL)); if (!dev) { @@ -408,6 +410,12 @@ static void qtest_process_command(CharBackend *chr, gchar **words) return; } + if (is_named && !is_outbound) { + qtest_send_prefix(chr); + qtest_send(chr, "FAIL Interception of named in-GPIOs not yet supported\n"); + return; + } + if (irq_intercept_dev) { qtest_send_prefix(chr); if (irq_intercept_dev != dev) { |