From: Peter Maydell <peter.maydell@linaro.org>
To: "Philippe Mathieu-Daudé" <philmd@redhat.com>
Cc: "Yang Zhong" <yang.zhong@intel.com>,
"Andrew Jones" <drjones@redhat.com>,
"Samuel Ortiz" <sameo@linux.intel.com>,
"Rob Bradford" <robert.bradford@intel.com>,
"QEMU Developers" <qemu-devel@nongnu.org>,
qemu-arm <qemu-arm@nongnu.org>, "Thomas Huth" <thuth@redhat.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Alex Bennée" <alex.bennee@linaro.org>
Subject: Re: [Qemu-devel] [PATCH v4 3/8] target/arm/helper: Move M profile routines to m_helper.c
Date: Tue, 2 Jul 2019 15:01:08 +0100 [thread overview]
Message-ID: <CAFEAcA99QK7u+Rev5C9Xb_vmnGSZvx9EO+8D_fFB1qFmiMejcA@mail.gmail.com> (raw)
In-Reply-To: <20190701194942.10092-4-philmd@redhat.com>
On Mon, 1 Jul 2019 at 20:50, Philippe Mathieu-Daudé <philmd@redhat.com> wrote:
>
> In preparation for supporting TCG disablement on ARM, we move most
> of TCG related v7m/v8m helpers and APIs into their own file.
>
> Note: It is easier to review this commit using the 'histogram'
> diff algorithm:
>
> $ git diff --diff-algorithm=histogram ...
> or
> $ git diff --histogram ...
>
> Suggested-by: Samuel Ortiz <sameo@linux.intel.com>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> ---
> patch generated with git diff --histogram.
>
> v4: rebased
> ---
> target/arm/Makefile.objs | 1 +
> target/arm/helper.c | 2661 +------------------------------------
> target/arm/m_helper.c | 2676 ++++++++++++++++++++++++++++++++++++++
> 3 files changed, 2681 insertions(+), 2657 deletions(-)
> create mode 100644 target/arm/m_helper.c
This patch doesn't compile:
>
> -hwaddr arm_cpu_get_phys_page_attrs_debug(CPUState *cs, vaddr addr,
> - MemTxAttrs *attrs)
> -{
> - ARMCPU *cpu = ARM_CPU(cs);
> - CPUARMState *env = &cpu->env;
> - hwaddr phys_addr;
> - target_ulong page_size;
> - int prot;
> - bool ret;
> - ARMMMUFaultInfo fi = {};
> - ARMMMUIdx mmu_idx = arm_mmu_idx(env);
> -
> - *attrs = (MemTxAttrs) {};
> -
> - ret = get_phys_addr(env, addr, 0, mmu_idx, &phys_addr,
> - attrs, &prot, &page_size, &fi, NULL);
> -
> - if (ret) {
> - return -1;
> - }
> - return phys_addr;
> -}
> -
...it deletes the definition of arm_cpu_get_phys_page_attrs_debug(),
which should stay where it is.
thanks
-- PMM
next prev parent reply other threads:[~2019-07-02 14:04 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-01 19:49 [Qemu-devel] [PATCH v4 0/8] Support disabling TCG on ARM Philippe Mathieu-Daudé
2019-07-01 19:49 ` [Qemu-devel] [PATCH v4 1/8] target/arm: Move debug routines to debug_helper.c Philippe Mathieu-Daudé
2019-07-01 19:49 ` [Qemu-devel] [PATCH v4 2/8] target/arm: Restrict semi-hosting to TCG Philippe Mathieu-Daudé
2019-07-02 13:58 ` Peter Maydell
2019-07-01 19:49 ` [Qemu-devel] [PATCH v4 3/8] target/arm/helper: Move M profile routines to m_helper.c Philippe Mathieu-Daudé
2019-07-02 14:01 ` Peter Maydell [this message]
2019-07-02 14:18 ` Philippe Mathieu-Daudé
2019-07-01 19:49 ` [Qemu-devel] [PATCH v4 4/8] RFC target/arm: Restrict pre-ARMv7 cpus to TCG Philippe Mathieu-Daudé
2019-07-01 19:49 ` [Qemu-devel] [PATCH v4 5/8] RFC target/arm: Do not build pre-ARMv7 cpus when using KVM Philippe Mathieu-Daudé
2019-07-01 19:49 ` [Qemu-devel] [PATCH v4 6/8] RFC target/arm: Restrict R and M profiles to TCG Philippe Mathieu-Daudé
2019-07-01 19:49 ` [Qemu-devel] [PATCH v4 7/8] RFC target/arm: Do not build A/M-profile cpus when using KVM Philippe Mathieu-Daudé
2019-07-01 19:49 ` [Qemu-devel] [PATCH v4 8/8] target/arm: Do not build TCG objects when TCG is off Philippe Mathieu-Daudé
2019-07-02 14:08 ` [Qemu-devel] [PATCH v4 0/8] Support disabling TCG on ARM Peter Maydell
2019-08-09 20:22 ` Philippe Mathieu-Daudé
2019-08-12 9:06 ` Philippe Mathieu-Daudé
2019-07-02 17:47 ` no-reply
2019-07-03 14:03 ` no-reply
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=CAFEAcA99QK7u+Rev5C9Xb_vmnGSZvx9EO+8D_fFB1qFmiMejcA@mail.gmail.com \
--to=peter.maydell@linaro.org \
--cc=alex.bennee@linaro.org \
--cc=drjones@redhat.com \
--cc=pbonzini@redhat.com \
--cc=philmd@redhat.com \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=robert.bradford@intel.com \
--cc=sameo@linux.intel.com \
--cc=thuth@redhat.com \
--cc=yang.zhong@intel.com \
/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).