From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16316 invoked by alias); 11 May 2012 11:57:27 -0000 Received: (qmail 16304 invoked by uid 22791); 11 May 2012 11:57:26 -0000 X-SWARE-Spam-Status: No, hits=-4.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,LOCALPART_IN_SUBJECT,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-vb0-f41.google.com (HELO mail-vb0-f41.google.com) (209.85.212.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 11 May 2012 11:57:12 +0000 Received: by vbbey12 with SMTP id ey12so3352601vbb.0 for ; Fri, 11 May 2012 04:57:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.107.198 with SMTP id c6mr4951358vcp.54.1336737431382; Fri, 11 May 2012 04:57:11 -0700 (PDT) Received: by 10.220.190.135 with HTTP; Fri, 11 May 2012 04:57:11 -0700 (PDT) Date: Fri, 11 May 2012 11:57:00 -0000 Message-ID: Subject: cgen, GNU gdb/sim, and full system simulation From: Peter Gavin To: cgen@sourceware.org Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Mailing-List: contact cgen-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sourceware.org X-SW-Source: 2012-q2/txt/msg00002.txt.bz2 Hello, I'm working on a port of the gdb simulator for OpenRISC. I was wondering if anyone had any input on how difficult a full-system simulator would be to implement vs. the syscall emulated simulators the other ports seem to use. The primary thing I'm concerned about at the moment is virtual memory. It doesn't look like there's an easy way to add virtual memory to the simulators. It would be easy enough to do for load and store instructions, just by adding a call to an address translation function prior to accessing the memory. But it doesn't look like there's a way to translate the PC prior to fetching an instruction. I don't mind do a little hacking on the framework, but I don't want to break things, and I'd like to get some input from you guys before I start doing that :) Thanks for your help, -Pete