From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46435) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VReUD-0006S4-QE for qemu-devel@nongnu.org; Thu, 03 Oct 2013 04:42:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VReU7-0006DR-Eb for qemu-devel@nongnu.org; Thu, 03 Oct 2013 04:42:17 -0400 Received: from mail-pb0-x229.google.com ([2607:f8b0:400e:c01::229]:58792) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VReU7-0006DM-6s for qemu-devel@nongnu.org; Thu, 03 Oct 2013 04:42:11 -0400 Received: by mail-pb0-f41.google.com with SMTP id rp2so2151027pbb.0 for ; Thu, 03 Oct 2013 01:42:10 -0700 (PDT) From: Jia Liu Date: Thu, 3 Oct 2013 16:41:42 +0800 Message-Id: <1380789702-18935-3-git-send-email-proljc@gmail.com> In-Reply-To: <1380789702-18935-1-git-send-email-proljc@gmail.com> References: <1380789702-18935-1-git-send-email-proljc@gmail.com> Content-Type: text/plain; charset="utf-8" Subject: [Qemu-devel] [PULL 2/2] target-openrisc: Removes a non-conforming behavior for the first page of the memory List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: sebastian@macke.de, aliguori@us.ibm.com, stefan.kristiansson@saunalahti.fi From: Sebastian Macke Where *software* leaves 0x0000 - 0x2000 unmapped, the hardware should still allow for this area to be mapped. Signed-off-by: Sebastian Macke Signed-off-by: Stefan Kristiansson Reviewed-by: Jia Liu --- target-openrisc/mmu.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/target-openrisc/mmu.c b/target-openrisc/mmu.c index 323a173..22d7cbe 100644 --- a/target-openrisc/mmu.c +++ b/target-openrisc/mmu.c @@ -122,13 +122,6 @@ static int cpu_openrisc_get_phys_addr(OpenRISCCPU *cpu, { int ret = TLBRET_MATCH; - /* [0x0000--0x2000]: unmapped */ - if (address < 0x2000 && (cpu->env.sr & SR_SM)) { - *physical = address; - *prot = PAGE_READ | PAGE_WRITE; - return ret; - } - if (rw == 2) { /* ITLB */ *physical = 0; ret = cpu->env.tlb->cpu_openrisc_map_address_code(cpu, physical, -- 1.7.12.4 (Apple Git-37)