[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~
- [PATCH v11 20/25] cpu: Move tlb_fill to tcg_ops, (continued)
- [PATCH v11 20/25] cpu: Move tlb_fill to tcg_ops, Claudio Fontana, 2020/12/11
- [PATCH v11 22/25] target/arm: do not use cc->do_interrupt for KVM directly, Claudio Fontana, 2020/12/11
- [PATCH v11 23/25] cpu: move cc->do_interrupt to tcg_ops, Claudio Fontana, 2020/12/11
- [PATCH v11 19/25] cpu: Move cpu_exec_* to tcg_ops, Claudio Fontana, 2020/12/11
- [PATCH v11 25/25] cpu: move do_unaligned_access to tcg_ops, Claudio Fontana, 2020/12/11
- Re: [PATCH v11 00/25] i386 cleanup PART 1, no-reply, 2020/12/11
- Re: [PATCH v11 00/25] i386 cleanup PART 1, Philippe Mathieu-Daudé, 2020/12/11