qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v3 15/50] tcg: add MO_HADDR to TCGMemOp


From: Richard Henderson
Subject: Re: [Qemu-devel] [PATCH v3 15/50] tcg: add MO_HADDR to TCGMemOp
Date: Mon, 17 Jun 2019 13:43:19 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0

On 6/14/19 10:11 AM, Alex Bennée wrote:
> +    /*
> +     * SoftMMU-only: if set, the TCG backend puts the corresponding host 
> address
> +     * in CPUArchState.hostaddr.
> +     */
> +    MO_HSHIFT = MO_ASHIFT + 3,
> +    MO_HADDR = 1 << MO_HSHIFT,

FYI, Alex and I talked about recomputing the host address within the helper.

For at least a few of the hosts, we currently never compute the full host
address into a single register -- we use reg+reg addressing when possible.
It's only a couple of instructions to re-compute, given that we know that the
tlb lookup succeeded, and importantly they are all out of line and not bloating
the inline code further.


r~



reply via email to

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