qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Peter Maydell <peter.maydell@linaro.org>
To: Chris Laplante <chris@laplante.io>
Cc: qemu-devel@nongnu.org, Joel Stanley <joel@jms.id.au>,
	qemu-arm@nongnu.org
Subject: Re: [PATCH v2 2/6] qtest: factor out qtest_install_gpio_out_intercept
Date: Thu, 27 Jul 2023 17:11:14 +0100	[thread overview]
Message-ID: <CAFEAcA_Js28L0bLwexp9s1CCB5_CU3+cVymq64awriXjf3td2Q@mail.gmail.com> (raw)
In-Reply-To: <20230726030450.757462-3-chris@laplante.io>

On Wed, 26 Jul 2023 at 04:32, Chris Laplante <chris@laplante.io> wrote:
>
> Signed-off-by: Chris Laplante <chris@laplante.io>
> ---
>  softmmu/qtest.c | 16 ++++++++++------
>  1 file changed, 10 insertions(+), 6 deletions(-)
>
> diff --git a/softmmu/qtest.c b/softmmu/qtest.c
> index f8d764b719..1c92e5a6a3 100644
> --- a/softmmu/qtest.c
> +++ b/softmmu/qtest.c
> @@ -365,6 +365,15 @@ void qtest_set_command_cb(bool (*pc_cb)(CharBackend *chr, gchar **words))
>      process_command_cb = pc_cb;
>  }
>
> +static void qtest_install_gpio_out_intercept(DeviceState *dev, const char *name, int n)
> +{
> +    qemu_irq *disconnected = g_new0(qemu_irq, 1);
> +    qemu_irq icpt = qemu_allocate_irq(qtest_irq_handler,
> +                                      disconnected, n);
> +
> +    *disconnected = qdev_intercept_gpio_out(dev, icpt,name, n);

Missing space after comma.
Otherwise

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>

(If this is the only issue with the series I'll fix it
when I pick it up, no need for a respin.)

thanks
-- PMM


  reply	other threads:[~2023-07-27 16:40 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-26  3:31 [PATCH v2 0/6] Add nRF51 DETECT signal with test Chris Laplante
2023-07-26  3:31 ` [PATCH v2 1/6] hw/gpio/nrf51: implement DETECT signal Chris Laplante
2023-07-27 16:10   ` Peter Maydell
2023-07-26  3:31 ` [PATCH v2 2/6] qtest: factor out qtest_install_gpio_out_intercept Chris Laplante
2023-07-27 16:11   ` Peter Maydell [this message]
2023-07-26  3:32 ` [PATCH v2 3/6] qtest: implement named interception of out-GPIO Chris Laplante
2023-07-27 16:23   ` Peter Maydell
2023-07-27 21:32     ` Chris Laplante
2023-07-28  9:31       ` Peter Maydell
2023-07-26  3:32 ` [PATCH v2 4/6] qtest: bail from irq_intercept_in if name is specified Chris Laplante
2023-07-26  3:32 ` [PATCH v2 5/6] qtest: irq_intercept_[out/in]: return FAIL if no intercepts are installed Chris Laplante
2023-07-26  3:32 ` [PATCH v2 6/6] qtest: microbit-test: add tests for nRF51 DETECT Chris Laplante
2023-07-27 16:24 ` [PATCH v2 0/6] Add nRF51 DETECT signal with test Peter Maydell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFEAcA_Js28L0bLwexp9s1CCB5_CU3+cVymq64awriXjf3td2Q@mail.gmail.com \
    --to=peter.maydell@linaro.org \
    --cc=chris@laplante.io \
    --cc=joel@jms.id.au \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).