[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v1 26/29] target-microblaze: mmu: Prepare for 64
From: |
Edgar E. Iglesias |
Subject: |
Re: [Qemu-devel] [PATCH v1 26/29] target-microblaze: mmu: Prepare for 64-bit addresses |
Date: |
Sat, 5 May 2018 15:59:39 +0200 |
User-agent: |
NeoMutt/20170609 (1.8.3) |
On Thu, May 03, 2018 at 09:54:01PM +0000, Alistair Francis wrote:
> On Thu, May 3, 2018 at 2:44 AM Edgar E. Iglesias <address@hidden>
> wrote:
>
> > From: "Edgar E. Iglesias" <address@hidden>
>
> > Prepare for 64-bit addresses.
> > This makes no functional difference as the upper parts of
> > the 64-bit addresses are not yet reachable.
>
> > Signed-off-by: Edgar E. Iglesias <address@hidden>
> > ---
> > target/microblaze/mmu.c | 14 +++++++-------
> > target/microblaze/mmu.h | 6 +++---
> > 2 files changed, 10 insertions(+), 10 deletions(-)
>
> > diff --git a/target/microblaze/mmu.c b/target/microblaze/mmu.c
> > index 231803ceea..a379968618 100644
> > --- a/target/microblaze/mmu.c
> > +++ b/target/microblaze/mmu.c
> > @@ -81,16 +81,16 @@ unsigned int mmu_translate(struct microblaze_mmu *mmu,
> > {
> > unsigned int i, hit = 0;
> > unsigned int tlb_ex = 0, tlb_wr = 0, tlb_zsel;
> > - unsigned int tlb_size;
> > - uint32_t tlb_tag, tlb_rpn, mask, t0;
> > + uint64_t tlb_tag, tlb_rpn, mask;
> > + uint32_t tlb_size, t0;
>
> > lu->err = ERR_MISS;
> > for (i = 0; i < ARRAY_SIZE(mmu->rams[RAM_TAG]); i++) {
> > - uint32_t t, d;
> > + uint64_t t, d;
>
> > /* Lookup and decode. */
> > t = mmu->rams[RAM_TAG][i];
> > - D(qemu_log("TLB %d valid=%d\n", i, t & TLB_VALID));
> > + D(qemu_log("TLB %d valid=%" PRId64 "\n", i, t & TLB_VALID));
>
> While touching this it's probably worth updating to use qemu_log_mask with
> the MMU mask instead of the D() macro.
Yeah, I added a follow-up patch to the series that cleans up the
debug/logs in this file. I kept this particular patch as is to
avoid unrelated changes to get mixed into the 64bit conversion.
Cheers,
Edgar
- Re: [Qemu-devel] [PATCH v1 20/29] target-microblaze: Make special registers 64-bit, (continued)
- [Qemu-devel] [PATCH v1 24/29] target-microblaze: mmu: Add R_TBLX_MISS macros, Edgar E. Iglesias, 2018/05/03
- [Qemu-devel] [PATCH v1 27/29] target-microblaze: mmu: Add a configurable output address mask, Edgar E. Iglesias, 2018/05/03
- [Qemu-devel] [PATCH v1 25/29] target-microblaze: mmu: Remove unused register state, Edgar E. Iglesias, 2018/05/03
- [Qemu-devel] [PATCH v1 28/29] target-microblaze: Add support for extended access to TLBLO, Edgar E. Iglesias, 2018/05/03
- [Qemu-devel] [PATCH v1 26/29] target-microblaze: mmu: Prepare for 64-bit addresses, Edgar E. Iglesias, 2018/05/03
- [Qemu-devel] [PATCH v1 29/29] target-microblaze: Allow address sizes between 32 and 64 bits, Edgar E. Iglesias, 2018/05/03
- Message not available