Received: from eggs.gnu.org ([208.118.235.92]:57092) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVfjJ-00031E-Pi for qemu-devel@nongnu.org; Fri, 26 Apr 2013 06:18:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UVfjF-0005qT-AD for qemu-devel@nongnu.org; Fri, 26 Apr 2013 06:18:13 -0400 Date: Fri, 26 Apr 2013 13:18:08 +0300 From: Riku Voipio Message-ID: <20130426101808.GA10036@afflict.kos.to> References: <1366960851-21883-1-git-send-email-agraf@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1366960851-21883-1-git-send-email-agraf@suse.de> Subject: Re: [Qemu-devel] [PATCH] PPC: Fix dcbz for linux-user on 970 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org On Fri, Apr 26, 2013 at 09:20:51AM +0200, Alexander Graf wrote: > The default with linux-user for dcbz on 970 is to emulate 32 byte clears. > However, redoing the dcbzl support we added a check to not honor the bit > in HID5 that sets this. > > Remove the #ifdef check on linux user, so that we get 32 byte clears again. This fixes ppc64-linux-user for my smoke tests, thanks. Tested-By: > Reported-by: Riku Voipio > Signed-off-by: Alexander Graf > --- > target-ppc/mem_helper.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/target-ppc/mem_helper.c b/target-ppc/mem_helper.c > index 9783e52..d8e63ca 100644 > --- a/target-ppc/mem_helper.c > +++ b/target-ppc/mem_helper.c > @@ -140,7 +140,7 @@ void helper_dcbz(CPUPPCState *env, target_ulong addr, uint32_t is_dcbzl) > { > int dcbz_size = env->dcache_line_size; > > -#if !defined(CONFIG_USER_ONLY) && defined(TARGET_PPC64) > +#if defined(TARGET_PPC64) > if (!is_dcbzl && > (env->excp_model == POWERPC_EXCP_970) && > ((env->spr[SPR_970_HID5] >> 7) & 0x3) == 1) { > -- > 1.6.0.2