From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 51875C433B4 for ; Wed, 28 Apr 2021 17:22:17 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DBEC16141B for ; Wed, 28 Apr 2021 17:22:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DBEC16141B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=amsat.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:52190 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lbnt9-0002OS-Pc for qemu-devel@archiver.kernel.org; Wed, 28 Apr 2021 13:22:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40606) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbnd0-0008TQ-7i for qemu-devel@nongnu.org; Wed, 28 Apr 2021 13:05:34 -0400 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]:36618) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lbncy-0006By-J5 for qemu-devel@nongnu.org; Wed, 28 Apr 2021 13:05:33 -0400 Received: by mail-wr1-x430.google.com with SMTP id m9so51090251wrx.3 for ; Wed, 28 Apr 2021 10:05:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=kx/9p01ewXbbtjHOZt3V0DD4dy9s/DfXp7a3bZduRsU=; b=Y7eo0tl7flDM1EiecSNBqpVJBJnCtl3l/emqgjSaQshyn0+Qb8hepFk9ssLLH6CCf4 pIireY3+rB2AEWu1uppAdhNyPVU474/eSDUeCRyfFPTGGrvbrm6wjv4HkbZojaNZ76mU dh/bnRrJhlO6xyFs1NArmd01yXycqP5qUb5/gA+del0w9PmpbTgJUjGVHjM59fHp2VDa sVFwmEzwHWirvTfoaDR+eIzxY1aPxwjuD2x8UM57OLTB8gvNabrJFuxKyaJvs2lrJvuD xaRtKLWkybnJCKc0wnuZsCwOBYwgnNqSidSGsRtHgGoZxjFgh3h/VZM1ZdQH6KS2PxYm THLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=kx/9p01ewXbbtjHOZt3V0DD4dy9s/DfXp7a3bZduRsU=; b=M28nKuy5YlygSg0c1Y30nCp69XPgAgmN5SPRJnihPZ0gJWJV7QK+Fsy9Xw/1NPFIZP KbuRmrLtHXcMEvWklcf3oPdNGJQTY6VvU2iUb+ybTWjkWdxNX6DWqdPCD+JBOJzi9nsf MNtqrSUTksojWfruZlmcmMP8LxRS2QSy8kpiCx6YBAvYr4sQPcj7fqrntvex4pLj7BFh 9U0dhOEaG/DWSpLY2DIPRjwyd8ptBu7UwkDKZmBVFcmZJ81wz4ahOoOuc9B94ob4qtzS gexJY+U+bIo3EHAsc8A31Hc0OQOv2SOjQrltlWAsxtbsOnb2Vu6jU/XRRHD+3BsDGtD3 fjNg== X-Gm-Message-State: AOAM532eyl4gGXT0heW+Z1S8aRCG1p6f6v6X8kzuXozhu7r8sCejskXp Wui5439E9KXhL/xsJ/CjWAusYvMUNxOjUQ== X-Google-Smtp-Source: ABdhPJz+ydjIG7Js8b+/XNgwLNCx4W6h7IohSbmsu1xf11Nazvke4+W5qkPeubXC/xu/6OSngwlDew== X-Received: by 2002:a5d:52d0:: with SMTP id r16mr18563621wrv.358.1619629530987; Wed, 28 Apr 2021 10:05:30 -0700 (PDT) Received: from localhost.localdomain (39.red-81-40-121.staticip.rima-tde.net. [81.40.121.39]) by smtp.gmail.com with ESMTPSA id r11sm446083wrx.22.2021.04.28.10.05.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Apr 2021 10:05:30 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v4 12/30] target/mips: Introduce tcg-internal.h for TCG specific declarations Date: Wed, 28 Apr 2021 19:03:52 +0200 Message-Id: <20210428170410.479308-13-f4bug@amsat.org> X-Mailer: git-send-email 2.26.3 In-Reply-To: <20210428170410.479308-1-f4bug@amsat.org> References: <20210428170410.479308-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wr1-x430.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Aleksandar Rikalo , Huacai Chen , Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aurelien Jarno Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" We will gradually move TCG-specific declarations to a new local header: "tcg-internal.h". To keep review simple, first add this header with 2 TCG prototypes, which we are going to move in the next 2 commits. Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé --- target/mips/internal.h | 7 +++---- target/mips/tcg/tcg-internal.h | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 target/mips/tcg/tcg-internal.h diff --git a/target/mips/internal.h b/target/mips/internal.h index e93e057bece..754135c1421 100644 --- a/target/mips/internal.h +++ b/target/mips/internal.h @@ -9,6 +9,9 @@ #define MIPS_INTERNAL_H #include "exec/memattrs.h" +#ifdef CONFIG_TCG +#include "tcg/tcg-internal.h" +#endif /* * MMU types, the first four entries have the same layout as the @@ -77,7 +80,6 @@ extern const char fregnames[32][4]; extern const struct mips_def_t mips_defs[]; extern const int mips_defs_number; -void mips_cpu_do_interrupt(CPUState *cpu); bool mips_cpu_exec_interrupt(CPUState *cpu, int int_req); hwaddr mips_cpu_get_phys_page_debug(CPUState *cpu, vaddr addr); int mips_cpu_gdb_read_register(CPUState *cpu, GByteArray *buf, int reg); @@ -212,9 +214,6 @@ void cpu_mips_stop_count(CPUMIPSState *env); /* helper.c */ void mmu_init(CPUMIPSState *env, const mips_def_t *def); -bool mips_cpu_tlb_fill(CPUState *cs, vaddr address, int size, - MMUAccessType access_type, int mmu_idx, - bool probe, uintptr_t retaddr); /* op_helper.c */ void update_pagemask(CPUMIPSState *env, target_ulong arg1, int32_t *pagemask); diff --git a/target/mips/tcg/tcg-internal.h b/target/mips/tcg/tcg-internal.h new file mode 100644 index 00000000000..24438667f47 --- /dev/null +++ b/target/mips/tcg/tcg-internal.h @@ -0,0 +1,20 @@ +/* + * MIPS internal definitions and helpers (TCG accelerator) + * + * SPDX-License-Identifier: GPL-2.0-or-later + * + * This work is licensed under the terms of the GNU GPL, version 2 or later. + * See the COPYING file in the top-level directory. + */ + +#ifndef MIPS_TCG_INTERNAL_H +#define MIPS_TCG_INTERNAL_H + +#include "hw/core/cpu.h" + +void mips_cpu_do_interrupt(CPUState *cpu); +bool mips_cpu_tlb_fill(CPUState *cs, vaddr address, int size, + MMUAccessType access_type, int mmu_idx, + bool probe, uintptr_t retaddr); + +#endif -- 2.26.3