From nobody Tue Feb 10 07:43:06 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.221.49 as permitted sender) client-ip=209.85.221.49; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wr1-f49.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.221.49 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1618859965; cv=none; d=zohomail.com; s=zohoarc; b=WD5CdHdSI80MoeAfYd+TyAUVrrhWJ+7/LJX865ph3t1eQuS50WJsupZCxTh+E9rg94HO9nR0lc47I5RHNkXCqzwr2fqwR6UAfNZMEHOKbse2fhFWKLONmSJfvGpFzs32A/ILDWE7bx6vuR9EhJJO7zmCl1ssJ1rAwP6wxWlb7v0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1618859965; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Sender:Subject:To; bh=fed/u7MVzry73SqP8iio3AZoUczbP2euKtzU1T6r66I=; b=O+ikvlwfTTc5QnkFBMZqWRtJp5ntuxFu6D/FYnYb7JyEuexUE5jHhyMtcpD/h1OpnNyEMk23t39QNI5ELJpq+4BBQPqSuDyFuwYxV5ztTlagUEBwW4HMu3o9gWNlOGV2aU/TW4h0fkJE/zr/b/roqL2x/kKfQR6Eth581XxSqYc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.221.49 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) by mx.zohomail.com with SMTPS id 1618859965259107.60505891388505; Mon, 19 Apr 2021 12:19:25 -0700 (PDT) Received: by mail-wr1-f49.google.com with SMTP id g9so19153223wrx.0 for ; Mon, 19 Apr 2021 12:19:24 -0700 (PDT) Return-Path: Return-Path: Received: from x1w.redhat.com (39.red-81-40-121.staticip.rima-tde.net. [81.40.121.39]) by smtp.gmail.com with ESMTPSA id e9sm24923561wrs.84.2021.04.19.12.19.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Apr 2021 12:19:23 -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=fed/u7MVzry73SqP8iio3AZoUczbP2euKtzU1T6r66I=; b=SVPNoQy5C2O3nCxebE9YFtNTEr6CdeHOEVl08Qh8oQ1etTJyiwkYZH9rym8YEOcy/q Kht/G/jHkWKdLFgKKw3ZNmedE1B3z5b7W7Mfsob1B4biITfw8kAE4UrU+0JAkYFUoyMZ YktvRaJjjEHbUbNsZyJqotxZN5fMUag1Neh4UZlTYeCx4qzrlnCJpgSeYOGA0g1CPKW9 DR5IUL7T6O2ex+gh1Yqa4eMeFfa5BvsWZh4v8/4yt8P4Gn0vFKj0lL4OOeJcWS++0soh 4zBNxV6FwgZrzeQXpuMES1MgF6Z8leih9FhnZ6FzoBZArF112eevUU0l22327Ae1Iqdy Yz1w== 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=fed/u7MVzry73SqP8iio3AZoUczbP2euKtzU1T6r66I=; b=F4sya50b7UDp6kNUsWPEm4N3mkEt16YXzCCmjE5ee0CnOGmdUPGQXdh4yEhGMQ08Ql uzC/aDktaWHP/b/gfUSZ2T02sxLnr+aiOkoOqsbMBzAIQuTjzCUecuvlmnUXlNIloF8m R8aD0dr18Swvjk1QeT7dRqwY0CMPPkTUvTUn6eWrMUnq5nWHRAp4xkgQYL822wgtdkrb /kCAOwpxoBcwH7sqX0pTztevtyknTQriwxHOMi+FdyhaKKxKLN8Mb3JP6qUw02puA1Zz HYYIJvt7ybiK5S+2NXWSxbKBe/Y7z+2Ja8mAAuuZUqYEcfGuvLOrNIwQ5Jd7SAbjzYxY a6oA== X-Gm-Message-State: AOAM531GZpXZli9EW+1d4RtzU3+lkYl733IjZs45eqVQOSsMCazBKynW 6bK9f3BCJAxcRHm0GZJR9L0= X-Google-Smtp-Source: ABdhPJzO+SOFeUAxD9HhFqvdVRQTCVfUWgSK1ecmQtsfv6MIyQPjn2ggfOUFTNEJ/1wYKzWPV/IGYw== X-Received: by 2002:adf:f40f:: with SMTP id g15mr16175927wro.46.1618859963596; Mon, 19 Apr 2021 12:19:23 -0700 (PDT) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Jiaxun Yang , Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno , Huacai Chen Subject: [PATCH v3 12/30] target/mips: Introduce tcg-internal.h for TCG specific declarations Date: Mon, 19 Apr 2021 21:18:05 +0200 Message-Id: <20210419191823.1555482-13-f4bug@amsat.org> X-Mailer: git-send-email 2.26.3 In-Reply-To: <20210419191823.1555482-1-f4bug@amsat.org> References: <20210419191823.1555482-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) 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=C3=A9 --- 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 806d39fa6c3..9e86f6ad6b7 100644 --- a/target/mips/internal.h +++ b/target/mips/internal.h @@ -9,6 +9,9 @@ #define MIPS_INTERNAL_H =20 #include "exec/memattrs.h" +#ifdef CONFIG_TCG +#include "tcg/tcg-internal.h" +#endif =20 /* * 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; =20 -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); =20 /* 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); =20 /* op_helper.c */ void update_pagemask(CPUMIPSState *env, target_ulong arg1, int32_t *pagema= sk); 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 late= r. + * 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 --=20 2.26.3