[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC v9 19/32] cpu: Move cpu_exec_* to tcg_ops
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [RFC v9 19/32] cpu: Move cpu_exec_* to tcg_ops |
Date: |
Wed, 9 Dec 2020 10:28:49 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 |
On 12/8/20 8:48 PM, Claudio Fontana wrote:
> From: Eduardo Habkost <ehabkost@redhat.com>
>
> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
> [claudio: wrapped in CONFIG_TCG]
> Signed-off-by: Claudio Fontana <cfontana@suse.de>
> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> ---
...
> diff --git a/include/hw/core/tcg-cpu-ops.h b/include/hw/core/tcg-cpu-ops.h
> index 109291ac52..e12f32919b 100644
> --- a/include/hw/core/tcg-cpu-ops.h
> +++ b/include/hw/core/tcg-cpu-ops.h
> @@ -10,6 +10,9 @@
> #ifndef TCG_CPU_OPS_H
> #define TCG_CPU_OPS_H
>
> +/**
> + * struct TcgCpuOperations: TCG operations specific to a CPU class
> + */
Oh, added back ;)
> typedef struct TcgCpuOperations {
> /**
> * @initialize: Initalize TCG state
> @@ -28,6 +31,12 @@ typedef struct TcgCpuOperations {
> * @set_pc(tb->pc).
> */
> void (*synchronize_from_tb)(CPUState *cpu, struct TranslationBlock *tb);
> + /** @cpu_exec_enter: Callback for cpu_exec preparation */
> + void (*cpu_exec_enter)(CPUState *cpu);
> + /** @cpu_exec_exit: Callback for cpu_exec cleanup */
> + void (*cpu_exec_exit)(CPUState *cpu);
> + /** @cpu_exec_interrupt: Callback for processing interrupts in cpu_exec
> */
> + bool (*cpu_exec_interrupt)(CPUState *cpu, int interrupt_request);
> } TcgCpuOperations;
- Re: [RFC v9 17/32] accel/tcg: split TCG-only code from cpu_exec_realizefn, (continued)
[RFC v9 19/32] cpu: Move cpu_exec_* to tcg_ops, Claudio Fontana, 2020/12/08
[RFC v9 24/32] cpu: move cc->transaction_failed to tcg_ops, Claudio Fontana, 2020/12/08
Re: [RFC v9 24/32] cpu: move cc->transaction_failed to tcg_ops, Alex Bennée, 2020/12/09
[RFC v9 23/32] cpu: move cc->do_interrupt to tcg_ops, Claudio Fontana, 2020/12/08
[RFC v9 21/32] cpu: Move debug_excp_handler to tcg_ops, Claudio Fontana, 2020/12/08