From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:57305) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RiTlL-0004pf-Rb for qemu-devel@nongnu.org; Wed, 04 Jan 2012 11:32:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RiTlD-0007jQ-N4 for qemu-devel@nongnu.org; Wed, 04 Jan 2012 11:32:27 -0500 Received: from smtp141.dfw.emailsrvr.com ([67.192.241.141]:38449) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RiTlD-0007jE-Fz for qemu-devel@nongnu.org; Wed, 04 Jan 2012 11:32:19 -0500 Message-ID: <4F047F21.4070304@calxeda.com> Date: Wed, 04 Jan 2012 10:32:33 -0600 From: Mark Langsdorf MIME-Version: 1.0 References: <1325175596-5807-1-git-send-email-mark.langsdorf@calxeda.com> <1325175596-5807-4-git-send-email-mark.langsdorf@calxeda.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v5 3/7] arm: add dummy v7 cp15 config_base_register List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: "qemu-devel@nongnu.org" , Rob Herring , "afaerber@suse.de" On 01/04/2012 08:32 AM, Peter Maydell wrote: > On 29 December 2011 16:19, Mark Langsdorf wrote: >> Add a cp15 config_base_register that currently defaults to 0. >> After the QOM CPU support is added, the value will be properly >> set to the periphal base value. >> >> Signed-off-by: Mark Langsdorf >> Reviewed-by: Peter Maydell > > I need to revoke this Reviewed-by: because... > >> @@ -2111,6 +2111,20 @@ uint32_t HELPER(get_cp15)(CPUState *env, uint32_t insn) >> * 0x200 << ($rn & 0xfff), when MMU is off. */ >> goto bad_reg; >> } >> + if (ARM_CPUID(env) == ARM_CPUID_CORTEXA9) { >> + switch (crm) { >> + case 0: >> + /* The config_base_address should hold the value of >> + * the peripheral base. ARM should get this from a CPU >> + * object property, but that support isn't available in >> + * December 2011. Default to 0 for now and board models >> + * that care can set it by a private hook */ >> + if ((op1 == 4) && (op2 == 0)) { >> + return env->cp15.c15_config_base_address; >> + } >> + } >> + goto bad_reg; >> + } >> return 0; > > this breaks booting on vexpress, which complains > qemu: fatal: Unimplemented cp15 register read (c15, c0, {0, 1}) > because we're now barfing on all the other c15 registers which we > used to read as zero. Fair enough. Can I just resubmit this one patch or do you want the entire series? --Mark Langsdorf Calxeda, Inc.