aboutsummaryrefslogtreecommitdiff
path: root/target-ppc/helper.c
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2012-01-31 03:17:24 +0100
committerAlexander Graf <agraf@suse.de>2012-02-02 02:47:47 +0100
commita9abd71770e64d22ba6cb40c30e4c35998e5c743 (patch)
treea5007ff3b33b6d5d58c32618bf944d9bbc0f4ad3 /target-ppc/helper.c
parent3f9f6a50824f6e6728cbcc008891296102fc045a (diff)
downloadqemu-a9abd71770e64d22ba6cb40c30e4c35998e5c743.zip
qemu-a9abd71770e64d22ba6cb40c30e4c35998e5c743.tar.gz
qemu-a9abd71770e64d22ba6cb40c30e4c35998e5c743.tar.bz2
PPC: Enable doorbell excp handlers
We already had all the code available to have doorbell exceptions be handled properly. It was just disabled. Enable it, so we can rely on it. Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'target-ppc/helper.c')
-rw-r--r--target-ppc/helper.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/target-ppc/helper.c b/target-ppc/helper.c
index 31a9897..e56fac8 100644
--- a/target-ppc/helper.c
+++ b/target-ppc/helper.c
@@ -2698,22 +2698,10 @@ static inline void powerpc_excp(CPUState *env, int excp_model, int excp)
"Performance counter exception is not implemented yet !\n");
goto store_next;
case POWERPC_EXCP_DOORI: /* Embedded doorbell interrupt */
- /* XXX: TODO */
- cpu_abort(env,
- "Embedded doorbell interrupt is not implemented yet !\n");
goto store_next;
case POWERPC_EXCP_DOORCI: /* Embedded doorbell critical interrupt */
- switch (excp_model) {
- case POWERPC_EXCP_BOOKE:
- srr0 = SPR_BOOKE_CSRR0;
- srr1 = SPR_BOOKE_CSRR1;
- break;
- default:
- break;
- }
- /* XXX: TODO */
- cpu_abort(env, "Embedded doorbell critical interrupt "
- "is not implemented yet !\n");
+ srr0 = SPR_BOOKE_CSRR0;
+ srr1 = SPR_BOOKE_CSRR1;
goto store_next;
case POWERPC_EXCP_RESET: /* System reset exception */
if (msr_pow) {