From 3f75038a3369078b656826eb454ead5f5dc8802e Mon Sep 17 00:00:00 2001 From: Max Filippov Date: Sat, 26 Jan 2019 04:02:17 -0800 Subject: target/xtensa: drop function xtensa_timer_irq MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It's a one-liner used in a single place, move its implementation there and remove its declaration. Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Max Filippov --- hw/xtensa/pic_cpu.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'hw/xtensa') diff --git a/hw/xtensa/pic_cpu.c b/hw/xtensa/pic_cpu.c index 7e4c65e5ec..f706849026 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) -- cgit v1.2.3