From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 126662 invoked by alias); 8 Jan 2016 22:30:14 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 126629 invoked by uid 89); 8 Jan 2016 22:30:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=mips32r2, UD:ld, 26th X-HELO: mailapp01.imgtec.com Received: from mailapp01.imgtec.com (HELO mailapp01.imgtec.com) (195.59.15.196) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 08 Jan 2016 22:30:12 +0000 Received: from hhmail02.hh.imgtec.org (unknown [10.100.10.20]) by Websense Email Security Gateway with ESMTPS id 060342A95181E; Fri, 8 Jan 2016 22:30:06 +0000 (GMT) Received: from BAMAIL02.ba.imgtec.org (10.20.40.28) by hhmail02.hh.imgtec.org (10.100.10.20) with Microsoft SMTP Server (TLS) id 14.3.235.1; Fri, 8 Jan 2016 22:30:09 +0000 Received: from ubuntu-sellcey.mips.com (10.20.3.214) by bamail02.ba.imgtec.org (10.20.40.28) with Microsoft SMTP Server id 14.3.174.1; Fri, 8 Jan 2016 14:30:06 -0800 Received: by ubuntu-sellcey.mips.com (sSMTP sendmail emulation); Fri, 08 Jan 2016 14:30:06 -0800 From: "Steve Ellcey " Date: Fri, 08 Jan 2016 22:30:00 -0000 To: , Subject: MIPS simulator is broken User-Agent: Heirloom mailx 12.5 6/20/10 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-ID: <5f31ca78-325c-4c18-9abf-16de50bac964@BAMAIL02.ba.imgtec.org> X-SW-Source: 2016-01/txt/msg00145.txt.bz2 Mike, Your December 26th change to the mips simulator has broken it, at least for me. I am trying to compile and run a program with mips32r2 big-endian and am using the mti32.ld linker script. After your commit my attempts to run a 'hello world' program die with: mips-core: 4 byte read to unmapped address 0xffffffff80020004 at 0xffffffff80020004 program stopped with signal 10 (User defined signal 1). Any idea what is causing this? Steve Ellcey sellcey@imgtec.com The commit that caused this is: commit 26f8bf63bf36f9062a5cc1afacf71462a4abe0c8 Author: Mike Frysinger Date: Sat Dec 26 11:35:03 2015 -0500 sim: mips: delete mmu stubs to move to common sim_{read,write} The only unique thing about mip's sim_{read,write} helpers is the call to address_translation on the incoming address. When we look closer at that function though, we see it's just a stub that maps physical to virtual, and the cache/return values are hardcoded. If we delete this function, we can then collapse all the callers and drop the custom sim_{read,write} logic entirely. Some day we might want to add MMU support, but when we do, we'll want to have the common layers handle things so all targets benefit.