From nobody Tue Feb 10 10:04:04 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1558069077; cv=none; d=zoho.com; s=zohoarc; b=iWo0EQGAGDX0u+X1hoOFD8uqsuim6FvrsYlcEk+7gGOXz05DGTIYc5oNd7L6zvklmtF++cFiywA6nKe+eWN+ZyVUF5+XE4ils5Vn5AFP2WZBWf7okzaG2czOJ99HztVCmWLhzIqDwk21ohwgJ/92xcVNdl947Lglb1q9Pq51Huo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1558069077; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=p+U5vIBnOjLXY8VPVNTFWspmy+sk8WL3JV5On5zCYGA=; b=Ek9+Tz65Fw3aR/oOXKhYJI4o7G9DofkurUfnRNqKFAj/XDCRSJwoCxdTe5EWmixpAZy1VB/zBhOTqzap6m/5txQtgnc5o2kqlGtVqc/0sl7aU4gxSkhZ0Vl44ipGFo1xJLw6IhxBob0T561hbNteTAmzpOhM72CKE+I3zoJQJqg= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1558069077943590.6297862915491; Thu, 16 May 2019 21:57:57 -0700 (PDT) Received: from localhost ([127.0.0.1]:42318 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRUwL-0002qv-Sm for importer@patchew.org; Fri, 17 May 2019 00:57:53 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59652) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRUqX-0006Dx-QJ for qemu-devel@nongnu.org; Fri, 17 May 2019 00:51:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hRUqW-0007nr-SC for qemu-devel@nongnu.org; Fri, 17 May 2019 00:51:53 -0400 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]:46646) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hRUqW-0007n1-DA for qemu-devel@nongnu.org; Fri, 17 May 2019 00:51:52 -0400 Received: by mail-pg1-x543.google.com with SMTP id t187so2654838pgb.13 for ; Thu, 16 May 2019 21:51:52 -0700 (PDT) Received: from localhost.localdomain (97-113-13-231.tukw.qwest.net. [97.113.13.231]) by smtp.gmail.com with ESMTPSA id 132sm7709625pga.79.2019.05.16.21.51.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 May 2019 21:51:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=p+U5vIBnOjLXY8VPVNTFWspmy+sk8WL3JV5On5zCYGA=; b=A3LOidZH4y9vx21PQgSSS0/bjErJS/Ie/xxo9a1i478Q+cAvj6sy6uSoICR563JyBy 07ex1MN89S9pLB6xc/27w32Gyd+ZFAB+8wm4FidQ300GmQNJVzbHvBdR0NQBfU/zqNNp PrLxN9YKvEP2fZQP2a5ayLtd7yPnT7oq6EHsDh9EOqTp6tqXW8CtnngmhtUTtz2fWEsL Ne4+3qKK8ZJKoTTvxkjtbrayiBTzjgHHj+xw+iwGOzqdj+K+tZlLu2LkX4HCQTCAbsty XCFH3S2bevvh11pHWAIG46V4TAFnPSo4+yRxYQui9nff97bKan+cCxH+/RTTZEOcfYEP I/aQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=p+U5vIBnOjLXY8VPVNTFWspmy+sk8WL3JV5On5zCYGA=; b=oJTbpzkmqLPAkZZGvMFuQorWbvFcxG/bhOZf3g+98qCEcbkUzc3nXMqNmEcVQoO6j4 h81k+mBDFb5D6RK9vm7tvHtnq5fNYCLGpR3zhQkM36S78vRJvL2FRqXgw825y24RtVYX mWfGVpg6o2fqM1nasTO/Z68mEpEwixfu8+ABWGLkpLjFjFzkF4HcMFyseOcAaffJOH4A O+sxglP5M5DfVqJvGOREtObG+c0leY2HC9dmec/SG+cXnDr17LKdthP1x3Y4y0StRxqB 1iM60QSm7PAIWxebkHfmmNJVuH2AdRz+ZUXVfpySB1uszAqRx0KwbY3KJ5pHBhEmdIMz bujA== X-Gm-Message-State: APjAAAU+ae6PRqVI/iJYNw326B6RwpjaKYGkwUPg1rEUZ4B+v6cvHHyo oloYqBA8nof7imI4tYXht6Tvx7lUXFI= X-Google-Smtp-Source: APXvYqw+EVZ50tBTArIi8HDUQfpsGizrxQXuOB++jpsWrxY0fBCJ/hKMgQSUDfvBvFbGAG+vYyl+Ng== X-Received: by 2002:a62:116:: with SMTP id 22mr20121785pfb.119.1558068711037; Thu, 16 May 2019 21:51:51 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 16 May 2019 21:51:34 -0700 Message-Id: <20190517045136.3509-12-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190517045136.3509-1-richard.henderson@linaro.org> References: <20190517045136.3509-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::543 Subject: [Qemu-devel] [PATCH v14 11/13] target/rx: Convert to CPUClass::tlb_fill X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: philmd@redhat.com, ysato@users.sourceforge.jp Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" The interface for tlb_fill has changed very recently. Move the function into cpu.c so that it may be static while assigning to the CPUClass methods. Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- target/rx/cpu.c | 14 ++++++++++++++ target/rx/op_helper.c | 11 ----------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/target/rx/cpu.c b/target/rx/cpu.c index 4b96f2e463..3268077d08 100644 --- a/target/rx/cpu.c +++ b/target/rx/cpu.c @@ -143,6 +143,19 @@ static void rx_cpu_disas_set_info(CPUState *cpu, disas= semble_info *info) info->print_insn =3D print_insn_rx; } =20 +static bool rx_cpu_tlb_fill(CPUState *cs, vaddr addr, int size, + MMUAccessType access_type, int mmu_idx, + bool probe, uintptr_t retaddr) +{ + uint32_t address, physical, prot; + + /* Linear mapping */ + address =3D physical =3D addr & TARGET_PAGE_MASK; + prot =3D PAGE_READ | PAGE_WRITE | PAGE_EXEC; + tlb_set_page(cs, address, physical, prot, mmu_idx, TARGET_PAGE_SIZE); + return true; +} + static void rx_cpu_init(Object *obj) { CPUState *cs =3D CPU(obj); @@ -177,6 +190,7 @@ static void rxcpu_class_init(ObjectClass *klass, void *= data) cc->get_phys_page_debug =3D rx_cpu_get_phys_page_debug; cc->disas_set_info =3D rx_cpu_disas_set_info; cc->tcg_initialize =3D rx_translate_init; + cc->tlb_fill =3D rx_cpu_tlb_fill; =20 cc->gdb_num_core_regs =3D 26; } diff --git a/target/rx/op_helper.c b/target/rx/op_helper.c index 9a460070e9..fb7ae3c3ec 100644 --- a/target/rx/op_helper.c +++ b/target/rx/op_helper.c @@ -468,14 +468,3 @@ void QEMU_NORETURN helper_rxbrk(CPURXState *env) { raise_exception(env, 0x100, 0); } - -void tlb_fill(CPUState *cs, target_ulong addr, int size, - MMUAccessType access_type, int mmu_idx, uintptr_t retaddr) -{ - uint32_t address, physical, prot; - - /* Linear mapping */ - address =3D physical =3D addr & TARGET_PAGE_MASK; - prot =3D PAGE_READ | PAGE_WRITE | PAGE_EXEC; - tlb_set_page(cs, address, physical, prot, mmu_idx, TARGET_PAGE_SIZE); -} --=20 2.17.1