qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH v11 25/25] cpu: move do_unaligned_access to tcg_ops


From: Richard Henderson
Subject: Re: [PATCH v11 25/25] cpu: move do_unaligned_access to tcg_ops
Date: Fri, 11 Dec 2020 11:58:32 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

On 12/11/20 2:31 AM, Claudio Fontana wrote:
> +++ b/include/hw/core/tcg-cpu-ops.h
> @@ -66,6 +66,13 @@ typedef struct TcgCpuOperations {
>                                    unsigned size, MMUAccessType access_type,
>                                    int mmu_idx, MemTxAttrs attrs,
>                                    MemTxResult response, uintptr_t retaddr);
> +    /**
> +     * @do_unaligned_access: Callback for unaligned access handling, if
> +     * the target defines #TARGET_ALIGNED_ONLY.
> +     */
> +    void (*do_unaligned_access)(CPUState *cpu, vaddr addr,
> +                                MMUAccessType access_type,
> +                                int mmu_idx, uintptr_t retaddr);

The comment is out of date.  TARGET_ALIGNED_ONLY is no longer relevant.  That
define only controls the default for MO_ALIGN.  The target can specify all
sorts of alignment apart from the default.

So let's lose everything after the "," and everything is ok.

Amusingly, I was this week considering how easy it would be to add alignment
checks to user-only.  But we're a fair way off from that now, so,

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~



reply via email to

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