From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34406) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WXc8E-0008L3-OQ for qemu-devel@nongnu.org; Tue, 08 Apr 2014 15:56:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WXc85-000863-Fd for qemu-devel@nongnu.org; Tue, 08 Apr 2014 15:56:30 -0400 Message-ID: <5344545C.7060608@gmail.com> Date: Tue, 08 Apr 2014 14:56:12 -0500 From: Tom Musta MIME-Version: 1.0 References: <1396817714-26768-1-git-send-email-agraf@suse.de> In-Reply-To: <1396817714-26768-1-git-send-email-agraf@suse.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2] PPC: Clean up DECR implementation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf , qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org On 4/6/2014 3:55 PM, Alexander Graf wrote: > @@ -806,6 +838,10 @@ clk_setup_cb cpu_ppc_tb_init (CPUPPCState *env, uint32_t freq) > tb_env = g_malloc0(sizeof(ppc_tb_t)); > env->tb_env = tb_env; > tb_env->flags = PPC_DECR_UNDERFLOW_TRIGGERED; > + if (env->insns_flags & PPC_SEGMENT_64B) { > + /* All Book3S 64bit CPUs implement level based DEC logic */ > + tb_env->flags |= PPC_DECR_UNDERFLOW_LEVEL; > + } > /* Create new timer */ > tb_env->decr_timer = timer_new_ns(QEMU_CLOCK_VIRTUAL, &cpu_ppc_decr_cb, cpu); > if (0) { Equating Book3S with PPC_SEGMENT_64B is clever ... is it too clever? Especially since the SLB Bridge is in the phased-out category and consequently we should expect future Book3S implementations to not support this instruction category.