From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: Max Filippov <jcmvbkbc@gmail.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] target/xtensa: drop function xtensa_timer_irq
Date: Mon, 28 Jan 2019 12:16:23 +0100 [thread overview]
Message-ID: <c3cdb579-af94-6f2f-4bb1-effc9bf600a9@redhat.com> (raw)
In-Reply-To: <20190127014440.21789-1-jcmvbkbc@gmail.com>
On 1/27/19 2:44 AM, Max Filippov wrote:
> It's a one-liner used in a single place, move its implementation there
> and remove its declaration.
>
> Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> ---
> hw/xtensa/pic_cpu.c | 7 +------
> target/xtensa/cpu.h | 1 -
> 2 files changed, 1 insertion(+), 7 deletions(-)
>
> diff --git a/hw/xtensa/pic_cpu.c b/hw/xtensa/pic_cpu.c
> index 7e4c65e5ec30..f70684902628 100644
> --- a/hw/xtensa/pic_cpu.c
> +++ b/hw/xtensa/pic_cpu.c
> @@ -77,18 +77,13 @@ static void xtensa_set_irq(void *opaque, int irq, int active)
> }
> }
>
> -void xtensa_timer_irq(CPUXtensaState *env, uint32_t id, uint32_t active)
> -{
> - qemu_set_irq(env->irq_inputs[env->config->timerint[id]], active);
> -}
> -
> static void xtensa_ccompare_cb(void *opaque)
> {
> XtensaCcompareTimer *ccompare = opaque;
> CPUXtensaState *env = ccompare->env;
> unsigned i = ccompare - env->ccompare;
>
> - xtensa_timer_irq(env, i, 1);
> + qemu_set_irq(env->irq_inputs[env->config->timerint[i]], 1);
> }
>
> void xtensa_irq_init(CPUXtensaState *env)
> diff --git a/target/xtensa/cpu.h b/target/xtensa/cpu.h
> index bf6f9a09b62c..f579294822c3 100644
> --- a/target/xtensa/cpu.h
> +++ b/target/xtensa/cpu.h
> @@ -570,7 +570,6 @@ void xtensa_sim_open_console(Chardev *chr);
> void check_interrupts(CPUXtensaState *s);
> void xtensa_irq_init(CPUXtensaState *env);
> void *xtensa_get_extint(CPUXtensaState *env, unsigned extint);
> -void xtensa_timer_irq(CPUXtensaState *env, uint32_t id, uint32_t active);
> int cpu_xtensa_signal_handler(int host_signum, void *pinfo, void *puc);
> void xtensa_cpu_list(FILE *f, fprintf_function cpu_fprintf);
> void xtensa_sync_window_from_phys(CPUXtensaState *env);
>
prev parent reply other threads:[~2019-01-28 11:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-27 1:44 [Qemu-devel] [PATCH] target/xtensa: drop function xtensa_timer_irq Max Filippov
2019-01-27 18:50 ` Richard Henderson
2019-01-28 11:16 ` Philippe Mathieu-Daudé [this message]
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=c3cdb579-af94-6f2f-4bb1-effc9bf600a9@redhat.com \
--to=philmd@redhat.com \
--cc=jcmvbkbc@gmail.com \
--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).