qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 1/2] target/ppc: fix address translation bug for radix mmu


From: Fabiano Rosas
Subject: Re: [PATCH v2 1/2] target/ppc: fix address translation bug for radix mmus
Date: Mon, 14 Jun 2021 18:04:13 -0300

"Bruno Larsen (billionai)" <bruno.larsen@eldorado.org.br> writes:

> +/*
> + * These correspond to the mmu_idx values computed in
> + * hreg_compute_hflags_value. See the tables therein
> + */
> +static inline bool mmuidx_pr(int idx) { return !(idx & 1); }
> +/*
> + * If we want to use these macros for hash-style MMUs, we need to
> + * add an if or another macro here.
> + */

Don't these work just fine for hash as well? Except for Booke.

> +static inline bool mmuidx_real(int idx) { return idx & 2; }
> +static inline bool mmuidx_hv(int idx) { return idx & 4; }
> +



reply via email to

[Prev in Thread] Current Thread [Next in Thread]