From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48895) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3JsF-0006Oc-94 for qemu-devel@nongnu.org; Fri, 12 Jun 2015 03:59:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z3JsA-0007g4-Et for qemu-devel@nongnu.org; Fri, 12 Jun 2015 03:59:35 -0400 Received: from mail-vn0-f48.google.com ([209.85.216.48]:38106) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3JsA-0007fs-B5 for qemu-devel@nongnu.org; Fri, 12 Jun 2015 03:59:30 -0400 Received: by vnbf190 with SMTP id f190so4688128vnb.5 for ; Fri, 12 Jun 2015 00:59:29 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: From: Peter Maydell Date: Fri, 12 Jun 2015 08:59:09 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] where is the definition of cpu_ldub_code() for Softmmu mode? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jun Koi Cc: "qemu-devel@nongnu.org" On 12 June 2015 at 08:29, Jun Koi wrote: > On Mon, May 18, 2015 at 6:20 PM, Peter Maydell > wrote: >> In cpu_ldst.h we #define MEMSUFFIX _code and then include >> "exec/cpu_ldst_template.h" multiple times to define the >> accessor functions for the various widths. (For the usermode >> version we include "exec/cpu_ldst_useronly_template.h", for >> similar effect.) > > > Looking closer to this code, this leads to the function helper_ldb_cmmu(), > but I cannot find where this code is defined. manooth$ git grep cmmu cputlb.c:#define MMUSUFFIX _cmmu include/exec/cpu_ldst.h:uint8_t helper_ldb_cmmu(CPUArchState *env, target_ulong addr, int mmu_idx); include/exec/cpu_ldst.h:uint16_t helper_ldw_cmmu(CPUArchState *env, target_ulong addr, int mmu_idx); include/exec/cpu_ldst.h:uint32_t helper_ldl_cmmu(CPUArchState *env, target_ulong addr, int mmu_idx); include/exec/cpu_ldst.h:uint64_t helper_ldq_cmmu(CPUArchState *env, target_ulong addr, int mmu_idx); include/exec/cpu_ldst_template.h:#define MMUSUFFIX _cmmu The first of these is where cputlb.c includes softmmu_template.h, which is what's defining the function you're interested in. -- PMM