aboutsummaryrefslogtreecommitdiff
path: root/target/avr
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2022-08-26 13:32:56 -0700
committerRichard Henderson <richard.henderson@linaro.org>2022-09-01 06:41:16 +0100
commit9e1b2375daabc4d133baf08766676c5d301bade5 (patch)
treef71ad77fd71b35f3027580eb115dabc262e5c593 /target/avr
parent7bccb9e3222024470073568d05c2121386564ca3 (diff)
downloadqemu-9e1b2375daabc4d133baf08766676c5d301bade5.zip
qemu-9e1b2375daabc4d133baf08766676c5d301bade5.tar.gz
qemu-9e1b2375daabc4d133baf08766676c5d301bade5.tar.bz2
target/avr: Call avr_cpu_do_interrupt directly
There is no need to go through cc->tcg_ops when we know what value that must have. Reviewed-by: Michael Rolnik <mrolnik@gmail.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/avr')
-rw-r--r--target/avr/helper.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/target/avr/helper.c b/target/avr/helper.c
index 82284f8..9614ccf 100644
--- a/target/avr/helper.c
+++ b/target/avr/helper.c
@@ -29,14 +29,13 @@
bool avr_cpu_exec_interrupt(CPUState *cs, int interrupt_request)
{
bool ret = false;
- CPUClass *cc = CPU_GET_CLASS(cs);
AVRCPU *cpu = AVR_CPU(cs);
CPUAVRState *env = &cpu->env;
if (interrupt_request & CPU_INTERRUPT_RESET) {
if (cpu_interrupts_enabled(env)) {
cs->exception_index = EXCP_RESET;
- cc->tcg_ops->do_interrupt(cs);
+ avr_cpu_do_interrupt(cs);
cs->interrupt_request &= ~CPU_INTERRUPT_RESET;
@@ -47,7 +46,7 @@ bool avr_cpu_exec_interrupt(CPUState *cs, int interrupt_request)
if (cpu_interrupts_enabled(env) && env->intsrc != 0) {
int index = ctz32(env->intsrc);
cs->exception_index = EXCP_INT(index);
- cc->tcg_ops->do_interrupt(cs);
+ avr_cpu_do_interrupt(cs);
env->intsrc &= env->intsrc - 1; /* clear the interrupt */
if (!env->intsrc) {