From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 34090 invoked by alias); 18 Aug 2019 18:04:51 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 34081 invoked by uid 89); 18 Aug 2019 18:04:50 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=translation, H*i:sk:hTHuWNj, H*f:sk:uTHkMo8, H*f:sk:hTHuWNj X-HELO: mail-lj1-f195.google.com Received: from mail-lj1-f195.google.com (HELO mail-lj1-f195.google.com) (209.85.208.195) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 18 Aug 2019 18:04:49 +0000 Received: by mail-lj1-f195.google.com with SMTP id x18so9499941ljh.1 for ; Sun, 18 Aug 2019 11:04:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=pTwcSjbgl0ZkawOK2Gfs9+qmsV8jLi9RiAPYKqJ+33o=; b=Sbdodlp49gzTTpIINMMHvtTOe9uK4oZw9eUgVRb5KLNJGFxACIJNvR4H54NhCrAzi7 l5KljiMa3hgKJgT4szqiAdv/qQiXhnPU1jYTidDu3FfT3b/PBhdkVZjfpphr3tkCC4jn QsYvhDhaM1VnUhzAI4ZLAej9WVP+IuR1So7LeVyGmizR3cfQ8WUB4GaGhvjb/zABvKlj J7AHwm03bD1dNykzQMmljY/4TkAVvOglJpmAhvHj+WodjezG8VjUnLggbMtPWt9PQWIQ a8x7F6yTzQkWPfG6QreW9pbWpgwAy3uDfDq+OQXaL4o+zMJQVeFFtI1cNfT83rxchut8 TZvQ== MIME-Version: 1.0 References: In-Reply-To: From: William Tambe Date: Sun, 18 Aug 2019 18:04:00 -0000 Message-ID: Subject: Re: Function used by GDB to access target sim memory To: gdb@sourceware.org Content-Type: text/plain; charset="UTF-8" X-SW-Source: 2019-08/txt/msg00025.txt.bz2 To expand on my previous email, I am looking to implement an address translation layer between GDB and the simulator memory. Is there a way to set a function that gets called when a request to access the simulator memory occur ? On Sun, Aug 18, 2019 at 12:55 PM William Tambe wrote: > > What function does GDB use to access the simulator memory when "target > sim" is in use ? > > For instance, to implement the access to the simulator registers, one must use: > CPU_REG_FETCH() > CPU_REG_STORE() > > Are there similar functions for accessing the simulator memory ?