Received: from eggs.gnu.org ([2001:4830:134:3::10]:46452) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bthuS-0005O1-PB for qemu-devel@nongnu.org; Mon, 10 Oct 2016 17:14:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bthuJ-0003f9-GA for qemu-devel@nongnu.org; Mon, 10 Oct 2016 17:14:55 -0400 Received: from mail-pa0-x242.google.com ([2607:f8b0:400e:c03::242]:36775) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bthuJ-0003ey-9z for qemu-devel@nongnu.org; Mon, 10 Oct 2016 17:14:47 -0400 Received: by mail-pa0-x242.google.com with SMTP id rw4so141122pab.3 for ; Mon, 10 Oct 2016 14:14:47 -0700 (PDT) Sender: Richard Henderson References: <1475316333-9776-1-git-send-email-atar4qemu@gmail.com> <1475316333-9776-2-git-send-email-atar4qemu@gmail.com> From: Richard Henderson Message-ID: Date: Mon, 10 Oct 2016 16:14:42 -0500 MIME-Version: 1.0 In-Reply-To: <1475316333-9776-2-git-send-email-atar4qemu@gmail.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 01/29] target-sparc: don't trap on MMU-fault if MMU is disabled List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Artyom Tarasenko , qemu-devel@nongnu.org Cc: Mark Cave-Ayland On 10/01/2016 05:05 AM, Artyom Tarasenko wrote: > if (is_exec) { > - helper_raise_exception(env, TT_CODE_ACCESS); > + if (env->lsu & (IMMU_E)) { > + helper_raise_exception(env, TT_CODE_ACCESS); > + } > } else { > - helper_raise_exception(env, TT_DATA_ACCESS); > + if (env->lsu & (DMMU_E)) { > + helper_raise_exception(env, TT_DATA_ACCESS); > + } The cpu really does no kind of machine check for a hypervisor write to 0x1122334455667788? r~