qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: qemu-devel@nongnu.org
Cc: "Max Filippov" <jcmvbkbc@gmail.com>,
	"Richard Henderson" <richard.henderson@linaro.org>,
	"Bin Meng" <bin.meng@windriver.com>,
	kvm@vger.kernel.org, qemu-ppc@nongnu.org,
	"Greg Kurz" <groug@kaod.org>,
	"Daniel Henrique Barboza" <danielhb413@gmail.com>,
	"Bernhard Beschow" <shentey@gmail.com>,
	qemu-riscv@nongnu.org, "Song Gao" <gaosong@loongson.cn>,
	"Artyom Tarasenko" <atar4qemu@gmail.com>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Palmer Dabbelt" <palmer@dabbelt.com>,
	"Mark Cave-Ayland" <mark.cave-ayland@ilande.co.uk>,
	"Laurent Vivier" <laurent@vivier.eu>,
	"Alistair Francis" <alistair.francis@wdc.com>,
	"Cédric Le Goater" <clg@kaod.org>,
	"David Gibson" <david@gibson.dropbear.id.au>,
	"Xiaojuan Yang" <yangxiaojuan@loongson.cn>,
	"Philippe Mathieu-Daudé" <philmd@linaro.org>
Subject: [PATCH v2 9/9] target/xtensa/cpu: Include missing "memory.h" header
Date: Sat, 17 Dec 2022 18:29:07 +0100	[thread overview]
Message-ID: <20221217172907.8364-10-philmd@linaro.org> (raw)
In-Reply-To: <20221217172907.8364-1-philmd@linaro.org>

Under system emulation, xtensa_cpu_initfn() calls
memory_region_init_io(), itself declared in "exec/memory.h".

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
 target/xtensa/cpu.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/target/xtensa/cpu.c b/target/xtensa/cpu.c
index 09923301c4..879710f8d1 100644
--- a/target/xtensa/cpu.c
+++ b/target/xtensa/cpu.c
@@ -35,6 +35,9 @@
 #include "qemu/module.h"
 #include "migration/vmstate.h"
 #include "hw/qdev-clock.h"
+#ifndef CONFIG_USER_ONLY
+#include "exec/memory.h"
+#endif
 
 
 static void xtensa_cpu_set_pc(CPUState *cs, vaddr value)
-- 
2.38.1



      parent reply	other threads:[~2022-12-17 17:31 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-17 17:28 [PATCH v2 0/9] target/misc: Header cleanups around "cpu.h" Philippe Mathieu-Daudé
2022-12-17 17:28 ` [PATCH v2 1/9] target/alpha: Remove obsolete STATUS document Philippe Mathieu-Daudé
2022-12-17 18:29   ` Richard Henderson
2022-12-17 17:29 ` [PATCH v2 2/9] target/loongarch/cpu: Remove unused "sysbus.h" header Philippe Mathieu-Daudé
2022-12-17 17:29 ` [PATCH v2 3/9] target/loongarch/cpu: Restrict "memory.h" header to sysemu Philippe Mathieu-Daudé
2022-12-17 17:29 ` [PATCH v2 4/9] target/ppc/internal: Restrict MMU declarations " Philippe Mathieu-Daudé
2022-12-17 17:29 ` [PATCH v2 5/9] target/ppc/kvm: Remove unused "sysbus.h" header Philippe Mathieu-Daudé
2022-12-17 18:30   ` Richard Henderson
2022-12-17 17:29 ` [PATCH v2 6/9] target/riscv/cpu: Move Floating-Point fields closer Philippe Mathieu-Daudé
2022-12-17 18:32   ` Richard Henderson
2022-12-17 17:29 ` [PATCH v2 7/9] target/riscv/cpu: Restrict some sysemu-specific fields from CPUArchState Philippe Mathieu-Daudé
2022-12-17 18:00   ` Philippe Mathieu-Daudé
2022-12-17 17:29 ` [PATCH v2 8/9] target/sparc/sysemu: Remove pointless CONFIG_USER_ONLY guard Philippe Mathieu-Daudé
2022-12-17 17:29 ` Philippe Mathieu-Daudé [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221217172907.8364-10-philmd@linaro.org \
    --to=philmd@linaro.org \
    --cc=alistair.francis@wdc.com \
    --cc=atar4qemu@gmail.com \
    --cc=bin.meng@windriver.com \
    --cc=clg@kaod.org \
    --cc=danielhb413@gmail.com \
    --cc=david@gibson.dropbear.id.au \
    --cc=gaosong@loongson.cn \
    --cc=groug@kaod.org \
    --cc=jcmvbkbc@gmail.com \
    --cc=kvm@vger.kernel.org \
    --cc=laurent@vivier.eu \
    --cc=mark.cave-ayland@ilande.co.uk \
    --cc=palmer@dabbelt.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    --cc=qemu-riscv@nongnu.org \
    --cc=richard.henderson@linaro.org \
    --cc=shentey@gmail.com \
    --cc=yangxiaojuan@loongson.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).