[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 3/6] qtest: bail from irq_intercept_in if name is specified
From: |
Chris Laplante |
Subject: |
[PATCH 3/6] qtest: bail from irq_intercept_in if name is specified |
Date: |
Fri, 14 Jul 2023 23:27:30 +0000 |
Named interception of in-GPIOs is not supported yet.
Signed-off-by: Chris Laplante <chris@laplante.io>
---
softmmu/qtest.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/softmmu/qtest.c b/softmmu/qtest.c
index 7c3dea5760..74482ce3cd 100644
--- a/softmmu/qtest.c
+++ b/softmmu/qtest.c
@@ -401,6 +401,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) {
@@ -412,7 +418,6 @@ static void qtest_process_command(CharBackend *chr, gchar
**words)
}
QLIST_FOREACH(ngl, &dev->gpios, node) {
- /* We don't support inbound interception of named GPIOs yet */
if (is_outbound) {
if (is_named) {
if (ngl->name && strcmp(ngl->name, words[2]) == 0) {
--
2.39.2
- [PATCH 0/6] Add nRF51 DETECT signal with test, Chris Laplante, 2023/07/14
- [PATCH 1/6] hw/gpio/nrf51: implement DETECT signal, Chris Laplante, 2023/07/14
- [PATCH 2/6] qtest: implement named interception of out-GPIO, Chris Laplante, 2023/07/14
- [PATCH 3/6] qtest: bail from irq_intercept_in if name is specified,
Chris Laplante <=
- [PATCH 4/6] qtest: factor out qtest_install_gpio_out_intercepts, Chris Laplante, 2023/07/14
- [PATCH 6/6] qtest: microbit-test: add tests for nRF51 DETECT, Chris Laplante, 2023/07/14
- [PATCH 5/6] qtest: irq_intercept_[out/in]: return FAIL if no intercepts are installed, Chris Laplante, 2023/07/14
- Re: [PATCH 0/6] Add nRF51 DETECT signal with test, Peter Maydell, 2023/07/24