From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:35107) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QszKO-0003WH-9V for qemu-devel@nongnu.org; Mon, 15 Aug 2011 11:43:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QszKN-0001bj-AB for qemu-devel@nongnu.org; Mon, 15 Aug 2011 11:43:48 -0400 Received: from mail-qw0-f45.google.com ([209.85.216.45]:41590) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QszKN-0001bb-79 for qemu-devel@nongnu.org; Mon, 15 Aug 2011 11:43:47 -0400 Received: by qwj8 with SMTP id 8so3107943qwj.4 for ; Mon, 15 Aug 2011 08:43:46 -0700 (PDT) Sender: Richard Henderson Message-ID: <4E493EAF.3090207@twiddle.net> Date: Mon, 15 Aug 2011 08:43:43 -0700 From: Richard Henderson MIME-Version: 1.0 References: <1313407533-25740-1-git-send-email-khansa@kics.edu.pk> <1313407533-25740-3-git-send-email-khansa@kics.edu.pk> In-Reply-To: <1313407533-25740-3-git-send-email-khansa@kics.edu.pk> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 2/4] Octeon cpu definitions in target-mips and Octeon specific changes in set_thread_area syscall List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: khansa@kics.edu.pk Cc: peter.maydell@linaro.org, riku.voipio@iki.fi, qemu-devel@nongnu.org, aurelien@aurel32.net On 08/15/2011 04:25 AM, khansa@kics.edu.pk wrote: > ((CPUMIPSState *) cpu_env)->tls_value = arg1; > + if (((CPUMIPSState *) cpu_env)->insn_flags & CPU_OCTEON) { > + /* tls entry is moved to k0 so that this can be used later > + currently this thing is tested only for Octeon */ > + ((CPUMIPSState *) cpu_env)->active_tc.gpr[26] = arg1; > + } You wanted INSN_OCTEON, not CPU_OCTEON, which includes CPU_MIPS64R2. That said, this is *not* in the current linux kernel. And I question the wisdom of changing the user-space ABI for TLS for a single CPU. I think you'd better leave this out until it's actually accepted upstream. r~