diff options
author | Richard Henderson <rth@twiddle.net> | 2014-09-13 09:45:22 -0700 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2014-09-25 18:54:21 +0100 |
commit | dde7c241e3259f5a752e4fb7a638ee377ed0cad0 (patch) | |
tree | a669f557ef79fa422ac0f6c81cc51f30a38c4afa /cpu-exec.c | |
parent | 5a1f7f44cf7a55b696859d09af1b18c8e40c8339 (diff) |
target-alpha: Use cpu_exec_interrupt qom hook
Signed-off-by: Richard Henderson <rth@twiddle.net>
Message-id: 1410626734-3804-12-git-send-email-rth@twiddle.net
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'cpu-exec.c')
-rw-r--r-- | cpu-exec.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/cpu-exec.c b/cpu-exec.c index 7efcf2761f..2f73be4354 100644 --- a/cpu-exec.c +++ b/cpu-exec.c @@ -597,38 +597,6 @@ int cpu_exec(CPUArchState *env) cc->do_interrupt(cpu); next_tb = 0; } -#elif defined(TARGET_ALPHA) - { - int idx = -1; - /* ??? This hard-codes the OSF/1 interrupt levels. */ - switch (env->pal_mode ? 7 : env->ps & PS_INT_MASK) { - case 0 ... 3: - if (interrupt_request & CPU_INTERRUPT_HARD) { - idx = EXCP_DEV_INTERRUPT; - } - /* FALLTHRU */ - case 4: - if (interrupt_request & CPU_INTERRUPT_TIMER) { - idx = EXCP_CLK_INTERRUPT; - } - /* FALLTHRU */ - case 5: - if (interrupt_request & CPU_INTERRUPT_SMP) { - idx = EXCP_SMP_INTERRUPT; - } - /* FALLTHRU */ - case 6: - if (interrupt_request & CPU_INTERRUPT_MCHK) { - idx = EXCP_MCHK; - } - } - if (idx >= 0) { - cpu->exception_index = idx; - env->error_code = 0; - cc->do_interrupt(cpu); - next_tb = 0; - } - } #endif /* The target hook has 3 exit conditions: False when the interrupt isn't processed, |