From: Thomas Monjalon <thomas_ml@monjalon.net>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH 2/2] target-ppc: fix interrupt vectors for MPC603 and e300
Date: Wed, 21 Apr 2010 11:21:56 +0200 [thread overview]
Message-ID: <1271841716-11582-3-git-send-email-thomas_ml@monjalon.net> (raw)
In-Reply-To: <1271841716-11582-1-git-send-email-thomas_ml@monjalon.net>
From: Thomas Monjalon <thomas@monjalon.net>
The vectors are listed
- in the chapter 1.3.3.2 (Implementation-Specific Interrupt Model)
of the e300 datasheet [e300CORERM] and
- in the chapter 3.5.2 (PowerPC 603 Microprocessor Exception Model)
of the MPC603 datasheet.
As e300 inherits from MPC603, init_excp_e300() calls init_excp_603().
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
---
target-ppc/translate_init.c | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c
index 9e42831..f3e266d 100644
--- a/target-ppc/translate_init.c
+++ b/target-ppc/translate_init.c
@@ -2853,7 +2853,16 @@ static void init_excp_603 (CPUPPCState *env)
env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
env->hreset_excp_prefix = 0x00000000UL;
/* Hardware reset vector */
- env->hreset_vector = 0xFFFFFFFCUL;
+ env->hreset_vector = 0x00000100UL;
+#endif
+}
+
+static void init_excp_e300 (CPUPPCState *env)
+{
+ init_excp_603(env);
+#if !defined(CONFIG_USER_ONLY)
+ env->excp_vectors[POWERPC_EXCP_CRITICAL] = 0x00000A00;
+ env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
#endif
}
@@ -4175,7 +4184,7 @@ static void init_proc_e300 (CPUPPCState *env)
gen_low_BATs(env);
gen_high_BATs(env);
gen_6xx_7xx_soft_tlb(env, 64, 2);
- init_excp_603(env);
+ init_excp_e300(env);
env->dcache_line_size = 32;
env->icache_line_size = 32;
/* Allocate hardware IRQ controller */
--
1.7.0.5
next prev parent reply other threads:[~2010-04-21 9:22 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-21 9:21 [Qemu-devel] [PATCH 0/2] some fixes for PPC e300 Thomas Monjalon
2010-04-21 9:21 ` [Qemu-devel] [PATCH 1/2] target-ppc: fix processor versions (PVR) for e300 Thomas Monjalon
2010-04-21 9:21 ` Thomas Monjalon [this message]
2010-04-21 10:14 ` [Qemu-devel] [PATCH 2/2] target-ppc: fix interrupt vectors for MPC603 and e300 Alexander Graf
2010-04-21 12:07 ` Thomas Monjalon
2010-04-21 12:36 ` Alexander Graf
2010-04-21 13:13 ` Thomas Monjalon
2010-04-22 19:40 ` Hollis Blanchard
2010-04-26 15:35 ` Segher Boessenkool
2010-04-26 15:02 ` Segher Boessenkool
2010-04-26 17:11 ` Blue Swirl
2010-05-02 14:19 ` Segher Boessenkool
2010-05-02 15:03 ` [Qemu-devel] VGA blank mode K D
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=1271841716-11582-3-git-send-email-thomas_ml@monjalon.net \
--to=thomas_ml@monjalon.net \
--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).