From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:38692) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SYeYw-0002PZ-Lq for qemu-devel@nongnu.org; Sun, 27 May 2012 10:35:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SYeYu-00070a-KD for qemu-devel@nongnu.org; Sun, 27 May 2012 10:35:18 -0400 Received: from mail-lb0-f173.google.com ([209.85.217.173]:61149) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SYeYu-00070F-Ad for qemu-devel@nongnu.org; Sun, 27 May 2012 10:35:16 -0400 Received: by lbok6 with SMTP id k6so1844613lbo.4 for ; Sun, 27 May 2012 07:35:14 -0700 (PDT) From: Max Filippov Date: Sun, 27 May 2012 18:34:50 +0400 Message-Id: <1338129294-16742-3-git-send-email-jcmvbkbc@gmail.com> In-Reply-To: <1338129294-16742-1-git-send-email-jcmvbkbc@gmail.com> References: <1338129294-16742-1-git-send-email-jcmvbkbc@gmail.com> Subject: [Qemu-devel] [PATCH 1.1 2/6] target-xtensa: update EXCVADDR in case of page table lookup List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Blue Swirl , Max Filippov , Anthony Liguori According to ISA, 4.4.2.6, EXCVADDR may be changed by any TLB miss, even if the miss is handled entirely by processor hardware. Signed-off-by: Max Filippov --- target-xtensa/helper.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/target-xtensa/helper.c b/target-xtensa/helper.c index 2094227..43a6611 100644 --- a/target-xtensa/helper.c +++ b/target-xtensa/helper.c @@ -516,6 +516,7 @@ static int autorefill_mmu(CPUXtensaState *env, uint32_t vaddr, bool dtlb, *wi = (++env->autorefill_idx) & 0x3; split_tlb_entry_spec_way(env, vaddr, dtlb, &vpn, *wi, ei); xtensa_tlb_set_entry(env, dtlb, *wi, *ei, vpn, pte); + env->sregs[EXCVADDR] = vaddr; qemu_log("%s: autorefill(%08x): %08x -> %08x\n", __func__, vaddr, vpn, pte); } -- 1.7.7.6