From nobody Sun Feb 8 17:47:47 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.128.51 as permitted sender) client-ip=209.85.128.51; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wm1-f51.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.128.51 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1646571740; cv=none; d=zohomail.com; s=zohoarc; b=PjVL/RwvZ9C750CDDd4VbEq5X4PJ1EPGRPkzB9JfjQwQsnIOssy16GB7BoP2Pht1UfLYrVM9SByyFy3dqJzOYOf0YqcZPMdx8l8CwNdxJwZZDC4DGHV/JXb01XQqguj+IU8JI3VWts+gFqGGE6Fb7tnhWFA4elflHP7MJhfkroI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1646571740; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=Zos8Zctwf8FAmhXfOYhKKv/SQMI8Dq/LQDH08PxfbjM=; b=DbsctMrTvqdCQqbPhjTpxkXfPzi0ISZSxlcSXB9lYDQpamDnEj72qhJRWhsi7iiE5RElq4J98Nh2F9Ja9CiQOne63IDumcKWeffAtpVWJZDyw/o7SNnogtS2BppTmUgvKF7llJP23E9xo+mcN/D2LZTnZgI11hXIEZiQ8TyDHYQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.128.51 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com; dmarc=pass header.from= (p=none dis=none) Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) by mx.zohomail.com with SMTPS id 164657174038449.75560803752876; Sun, 6 Mar 2022 05:02:20 -0800 (PST) Received: by mail-wm1-f51.google.com with SMTP id o18-20020a05600c4fd200b003826701f847so9203942wmq.4 for ; Sun, 06 Mar 2022 05:02:19 -0800 (PST) Return-Path: Return-Path: Received: from nuc.lan ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id v2-20020adf8b42000000b001edc38024c9sm9774924wra.65.2022.03.06.05.02.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Mar 2022 05:02:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Zos8Zctwf8FAmhXfOYhKKv/SQMI8Dq/LQDH08PxfbjM=; b=IaWawRR4/UpEzfN+6w1LaTZHp7vd0PzJVkPWAemlT+lUQFQecX0il/MKql5Bmry4TO ROfn5f1sdnZscAc+c5ArTgT+dxrxtHtFHSUs0p/XXaIJdv4hcTuXX2a88W0LyxGxl4lH iIjtMRR0Qk0W/6GEJuXTtkXzUftSSav729g2av2J1vJ/LFPHfhGQi0cVSykJvNTamRea KlhloAENs8wA+DPtB1PAvwprbos1lce6TK+dZ2J/ztxBfLW2oVe1TaDPZgR66yWAK/3o K+bF8W6dHH6KwsjDddxo2lMtpfoYdKT3D3EzFmo1xy4BQkqPkZBTDdESc+I3PIWcNIeN QNoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Zos8Zctwf8FAmhXfOYhKKv/SQMI8Dq/LQDH08PxfbjM=; b=QJUlQ8zP4W8pr6EhYQUkgGOpaevmfZwIN+ENTjMc9VfzDfBtopZvLgfTL+gIjpDV1p f6nDE1q+Gc4CgAR6mMw6P+9yhzNEYuLFccjGgqDTH8e9HwEW6lBsrPis4ikSTR30luYi 1J1vYlwh0B+YYMHxVUwXFN3T/yWlWxmF7lrI6/nOPhQVx2okaTl8vl+kgbgYldJ1K6iC jj8VytrKjHTndgbvgyQe6owlgpyKec41fhGHOQcvyTfKijB8YHJjbbG54dIFLrPPogsF qZ+wBs8u3GDVIh8ToF4cim1JUa2lWiVSnVc1UoxpXDj0dbaOBVHpQEGgYLUnQ+Og2arJ Qd2g== X-Gm-Message-State: AOAM530xnsa44fW2kMSQjLRWUIQTmr97J6aZkXLWYSJf4m5zPuVlNoFw j5NWJd8XsAadJsEaHWxYF7M= X-Google-Smtp-Source: ABdhPJzrKs3+MF1ILgujIBFO55ebMu7DZHOXzgPeUyUgY4Hjsert38+VyYlsP5vBZeEvqSgEeOcB2w== X-Received: by 2002:a05:600c:1c13:b0:389:a475:9ed5 with SMTP id j19-20020a05600c1c1300b00389a4759ed5mr1151567wms.86.1646571738634; Sun, 06 Mar 2022 05:02:18 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Thomas Huth , Eduardo Habkost , Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PULL 26/33] target: Include missing 'cpu.h' Date: Sun, 6 Mar 2022 13:59:53 +0100 Message-Id: <20220306130000.8104-27-philippe.mathieu.daude@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220306130000.8104-1-philippe.mathieu.daude@gmail.com> References: <20220306130000.8104-1-philippe.mathieu.daude@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1646571742575100001 From: Philippe Mathieu-Daud=C3=A9 These target-specific files use the target-specific CPU state but lack to include "cpu.h"; i.e.: ../target/riscv/pmp.h:61:23: error: unknown type name 'CPURISCVState' void pmpcfg_csr_write(CPURISCVState *env, uint32_t reg_index, ^ ../target/nios2/mmu.h:43:18: error: unknown type name 'CPUNios2State' void mmu_flip_um(CPUNios2State *env, unsigned int um); ^ ../target/microblaze/mmu.h:88:19: error: unknown type name 'CPUMBState'= ; did you mean 'CPUState'? uint32_t mmu_read(CPUMBState *env, bool ea, uint32_t rn); ^~~~~~~~~~ CPUState Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20220214183144.27402-10-f4bug@amsat.org> --- target/microblaze/mmu.h | 2 ++ target/mips/internal.h | 1 + target/nios2/mmu.h | 2 ++ target/riscv/pmp.h | 2 ++ 4 files changed, 7 insertions(+) diff --git a/target/microblaze/mmu.h b/target/microblaze/mmu.h index b6b4b9ad603..1068bd2d52b 100644 --- a/target/microblaze/mmu.h +++ b/target/microblaze/mmu.h @@ -20,6 +20,8 @@ #ifndef TARGET_MICROBLAZE_MMU_H #define TARGET_MICROBLAZE_MMU_H =20 +#include "cpu.h" + #define MMU_R_PID 0 #define MMU_R_ZPR 1 #define MMU_R_TLBX 2 diff --git a/target/mips/internal.h b/target/mips/internal.h index daddb05fd43..f705d6bfa61 100644 --- a/target/mips/internal.h +++ b/target/mips/internal.h @@ -12,6 +12,7 @@ #ifdef CONFIG_TCG #include "tcg/tcg-internal.h" #endif +#include "cpu.h" =20 /* * MMU types, the first four entries have the same layout as the diff --git a/target/nios2/mmu.h b/target/nios2/mmu.h index b7785b46c01..5b085900fbf 100644 --- a/target/nios2/mmu.h +++ b/target/nios2/mmu.h @@ -21,6 +21,8 @@ #ifndef NIOS2_MMU_H #define NIOS2_MMU_H =20 +#include "cpu.h" + typedef struct Nios2TLBEntry { target_ulong tag; target_ulong data; diff --git a/target/riscv/pmp.h b/target/riscv/pmp.h index a9a0b363a77..fcb6b7c4677 100644 --- a/target/riscv/pmp.h +++ b/target/riscv/pmp.h @@ -22,6 +22,8 @@ #ifndef RISCV_PMP_H #define RISCV_PMP_H =20 +#include "cpu.h" + typedef enum { PMP_READ =3D 1 << 0, PMP_WRITE =3D 1 << 1, --=20 2.35.1