From: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>
To: "Andreas Färber" <andreas.faerber@web.de>
Cc: qemu-devel@nongnu.org, Alexander Graf <agraf@suse.de>
Subject: Re: [Qemu-devel] [PATCH 1/4] powerpc: Improve emulation of the BookE MMU
Date: Sat, 11 Sep 2010 17:27:48 +0200 [thread overview]
Message-ID: <20100911152748.GD25515@laped.lan> (raw)
In-Reply-To: <C4510061-C0DE-4A5B-99F8-45A9763E3866@web.de>
On Sat, Sep 11, 2010 at 04:42:19PM +0200, Andreas Färber wrote:
> Am 11.09.2010 um 16:09 schrieb Edgar E. Iglesias:
>
> > Improve the emulation of the BookE MMU to be able to boot linux
> > on virtex5 boards.
> >
> > Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
> > ---
> > target-ppc/helper.c | 46 +++++++++++++++++++++++++++++++++++++++
> > +------
> > 1 files changed, 40 insertions(+), 6 deletions(-)
> >
> > diff --git a/target-ppc/helper.c b/target-ppc/helper.c
> > index a7ec1f4..4c810d1 100644
> > --- a/target-ppc/helper.c
> > +++ b/target-ppc/helper.c
> [...]
> > @@ -1445,7 +1452,10 @@ int cpu_ppc_handle_mmu_fault (CPUState *env,
> > target_ulong address, int rw,
> > break;
> > case POWERPC_MMU_BOOKE:
> > /* XXX: TODO */
>
> Is this TODO still valid now? If yes, could you please fill in what
> needs to be done there.
>
> > - cpu_abort(env, "BookE MMU model is not
> > implemented\n");
> > + env->exception_index = POWERPC_EXCP_ITLB;
> > + env->error_code = 0;
> > + env->spr[SPR_BOOKE_DEAR] = address;
> > + env->spr[SPR_BOOKE_ESR] = 0x00000000;
> > return -1;
> > case POWERPC_MMU_BOOKE_FSL:
> > /* XXX: TODO */
> [...]
> > @@ -1557,7 +1571,14 @@ int cpu_ppc_handle_mmu_fault (CPUState *env,
> > target_ulong address, int rw,
> > break;
> > case POWERPC_MMU_BOOKE:
> > /* XXX: TODO */
>
> Same here.
>
> > - cpu_abort(env, "BookE MMU model is not
> > implemented\n");
> > + env->exception_index = POWERPC_EXCP_DTLB;
> > + env->error_code = 0;
> > + env->spr[SPR_BOOKE_DEAR] = address;
> > + if (rw) {
> > + env->spr[SPR_BOOKE_ESR] = 0x00800000;
> > + } else {
> > + env->spr[SPR_BOOKE_ESR] = 0x00000000;
> > + }
> > return -1;
> > case POWERPC_MMU_BOOKE_FSL:
> > /* XXX: TODO */
> [...]
> > @@ -1848,8 +1876,7 @@ void ppc_tlb_invalidate_all (CPUPPCState *env)
> > cpu_abort(env, "MPC8xx MMU model is not implemented\n");
> > break;
> > case POWERPC_MMU_BOOKE:
> > - /* XXX: TODO */
>
> Here you removed it, for comparison.
OK, I've removed the XXX comments.
Thanks
next prev parent reply other threads:[~2010-09-11 15:27 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-11 14:09 [Qemu-devel] [PATCH 0/4] powerpc: Add the Virtex5 ML507 refdesign board Edgar E. Iglesias
2010-09-11 14:09 ` [Qemu-devel] [PATCH 1/4] powerpc: Improve emulation of the BookE MMU Edgar E. Iglesias
2010-09-11 14:42 ` Andreas Färber
2010-09-11 15:27 ` Edgar E. Iglesias [this message]
2010-09-20 10:35 ` [Qemu-devel] " Alexander Graf
2010-09-20 11:33 ` Edgar E. Iglesias
2010-09-11 14:09 ` [Qemu-devel] [PATCH 2/4] powerpc: Make the decr interrupt type overridable Edgar E. Iglesias
2010-09-20 10:42 ` [Qemu-devel] " Alexander Graf
2010-09-20 12:11 ` Edgar E. Iglesias
2010-09-20 14:06 ` Alexander Graf
2010-09-11 14:09 ` [Qemu-devel] [PATCH 3/4] powerpc: Add a ppc-440x5 Xilinx model Edgar E. Iglesias
2010-09-11 14:09 ` [Qemu-devel] [PATCH 4/4] powerpc: Add a virtex5 ml507 refdesign board Edgar E. Iglesias
2010-09-20 10:53 ` [Qemu-devel] " Alexander Graf
2010-09-24 20:30 ` Edgar E. Iglesias
2010-09-11 15:32 ` [Qemu-devel] Re: [PATCH 0/4] powerpc: Add the Virtex5 ML507 " Alexander Graf
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=20100911152748.GD25515@laped.lan \
--to=edgar.iglesias@gmail.com \
--cc=agraf@suse.de \
--cc=andreas.faerber@web.de \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.