From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=49544 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P0x9W-0007np-Vo for qemu-devel@nongnu.org; Wed, 29 Sep 2010 09:57:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1P0x9O-0005Wr-NJ for qemu-devel@nongnu.org; Wed, 29 Sep 2010 09:56:58 -0400 Received: from anubis.se.axis.com ([195.60.68.12]:48705) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P0x9O-0005WH-8x for qemu-devel@nongnu.org; Wed, 29 Sep 2010 09:56:50 -0400 From: "Edgar E. Iglesias" Date: Wed, 29 Sep 2010 15:40:54 +0200 Message-Id: <1285767655-13485-2-git-send-email-edgar.iglesias@gmail.com> In-Reply-To: <1285767655-13485-1-git-send-email-edgar.iglesias@gmail.com> References: <1285767655-13485-1-git-send-email-edgar.iglesias@gmail.com> Subject: [Qemu-devel] [PATCH 1/2] powerpc: Add a ppc-440x5 Xilinx model List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: "Edgar E. Iglesias" Add a powerpc 440x5 with the model ID on the Xilinx virtex5. Connect the 440x5 to the 40x interrupt logic. Signed-off-by: Edgar E. Iglesias --- target-ppc/translate_init.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index 2bd8b00..05ffe95 100644 --- a/target-ppc/translate_init.c +++ b/target-ppc/translate_init.c @@ -3596,7 +3596,6 @@ static void init_proc_440x4 (CPUPPCState *env) POWERPC_FLAG_DE | POWERPC_FLAG_BUS_CLK) #define check_pow_440x5 check_pow_nocheck -__attribute__ (( unused )) static void init_proc_440x5 (CPUPPCState *env) { /* Time base */ @@ -3656,7 +3655,7 @@ static void init_proc_440x5 (CPUPPCState *env) init_excp_BookE(env); env->dcache_line_size = 32; env->icache_line_size = 32; - /* XXX: TODO: allocate internal IRQ controller */ + ppc40x_irq_init(env); } /* PowerPC 460 (guessed) */ @@ -6536,6 +6535,7 @@ enum { #if 0 CPU_POWERPC_440A4 = xxx, #endif + CPU_POWERPC_440_XILINX = 0x7ff21910, #if 0 CPU_POWERPC_440A5 = xxx, #endif @@ -7464,6 +7464,8 @@ static const ppc_def_t ppc_defs[] = { /* PowerPC 440 A4 */ POWERPC_DEF("440A4", CPU_POWERPC_440A4, 440x4), #endif + /* PowerPC 440 Xilinx 5 */ + POWERPC_DEF("440-Xilinx", CPU_POWERPC_440_XILINX, 440x5), #if defined (TODO) /* PowerPC 440 A5 */ POWERPC_DEF("440A5", CPU_POWERPC_440A5, 440x5), -- 1.7.1