From: Jan Kiszka <jan.kiszka@web.de>
To: Liu Yu-B13201 <Yu.Liu@freescale.com>
Cc: kvm-ppc <kvm-ppc@vger.kernel.org>,
Nathan Froyd <froydnj@codesourcery.com>,
qemu-devel <qemu-devel@nongnu.org>,
Hollis Blanchard <hollisb@us.ibm.com>
Subject: [Qemu-devel] Re: [PATCH 5/5] guest debug init for 440 and e500 core
Date: Sat, 25 Jul 2009 12:27:40 +0200 [thread overview]
Message-ID: <4A6ADE1C.9080804@web.de> (raw)
In-Reply-To: <1248511217-22681-6-git-send-email-yu.liu@freescale.com>
[-- Attachment #1: Type: text/plain, Size: 1683 bytes --]
Liu Yu wrote:
> e500 only support 2 hardware breakpoints,
> 440(BOOKE) supports 4.
>
> Signed-off-by: Liu Yu <yu.liu-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
> ---
> hw/ppc440_bamboo.c | 1 +
> hw/ppce500_mpc8544ds.c | 1 +
> target-ppc/kvm_ppc.h | 1 +
> 3 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/hw/ppc440_bamboo.c b/hw/ppc440_bamboo.c
> index f1ba130..8c9c3b6 100644
> --- a/hw/ppc440_bamboo.c
> +++ b/hw/ppc440_bamboo.c
> @@ -185,6 +185,7 @@ static void bamboo_init(ram_addr_t ram_size,
> if (kvm_enabled()) {
> kvm_arch_put_registers(env);
> kvmppc_init();
> + kvmppc_debug_init(4, 2);
> }
> }
>
> diff --git a/hw/ppce500_mpc8544ds.c b/hw/ppce500_mpc8544ds.c
> index f1b3c1a..6c2aa61 100644
> --- a/hw/ppce500_mpc8544ds.c
> +++ b/hw/ppce500_mpc8544ds.c
> @@ -279,6 +279,7 @@ static void mpc8544ds_init(ram_addr_t ram_size,
> if (kvm_enabled()) {
> kvm_arch_put_registers(env);
> kvmppc_init();
> + kvmppc_debug_init(2, 2); /* E500v2 doesn't support IAC3,IAC4 */
I think those two are better moved to kvm_arch_init_vcpu.
> }
>
> return;
> diff --git a/target-ppc/kvm_ppc.h b/target-ppc/kvm_ppc.h
> index 3792ef7..8b4edca 100644
> --- a/target-ppc/kvm_ppc.h
> +++ b/target-ppc/kvm_ppc.h
> @@ -13,5 +13,6 @@ void kvmppc_init(void);
> void kvmppc_fdt_update(void *fdt);
> int kvmppc_read_host_property(const char *node_path, const char *prop,
> void *val, size_t len);
> +void kvmppc_debug_init(int max_hw_bp, int max_hw_wp);
>
> #endif /* __KVM_PPC_H__ */
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]
next prev parent reply other threads:[~2009-07-25 10:27 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-25 8:40 [Qemu-devel] [PATCH 0/5] Liu Yu
2009-07-25 8:40 ` [Qemu-devel] [PATCH 1/5] Fix kvmppc build error Liu Yu
2009-07-25 8:40 ` [Qemu-devel] [PATCH 2/5] Fix booke registers init Liu Yu
2009-07-25 8:40 ` [Qemu-devel] [PATCH 3/5] Add guest debug support for kvmppc Liu Yu
2009-07-25 8:40 ` [Qemu-devel] [PATCH 4/5] Add eaddr translator for fsl_booke mmu Liu Yu
2009-07-25 8:40 ` [Qemu-devel] [PATCH 5/5] guest debug init for 440 and e500 core Liu Yu
2009-07-25 10:27 ` Jan Kiszka [this message]
2009-07-25 10:18 ` [Qemu-devel] Re: [PATCH 3/5] Add guest debug support for kvmppc Jan Kiszka
2009-07-28 2:01 ` [Qemu-devel] " Liu Yu-B13201
2009-07-25 10:04 ` [Qemu-devel] Re: [PATCH 2/5] Fix booke registers init Jan Kiszka
2009-07-27 10:31 ` [Qemu-devel] " Liu Yu-B13201
2009-07-25 10:43 ` [Qemu-devel] Re: [PATCH 0/5] Jan Kiszka
2009-07-27 10:39 ` [Qemu-devel] " Liu Yu-B13201
2009-07-27 13:14 ` [Qemu-devel] " Nathan Froyd
2009-07-28 8:11 ` [Qemu-devel] " Liu Yu-B13201
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=4A6ADE1C.9080804@web.de \
--to=jan.kiszka@web.de \
--cc=Yu.Liu@freescale.com \
--cc=froydnj@codesourcery.com \
--cc=hollisb@us.ibm.com \
--cc=kvm-ppc@vger.kernel.org \
--cc=qemu-devel@nongnu.org \
/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).