mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
accel/tcg: Move @plugin_mem_cbs from CPUState to CPUNegativeOffsetState
@plugin_mem_cbs is accessed by tcg generated code, move it to CPUNegativeOffsetState. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20240429213050.55177-4-philmd@linaro.org>
This commit is contained in:
parent
fc44d592db
commit
80f034c5b2
5 changed files with 13 additions and 12 deletions
|
@ -342,9 +342,16 @@ typedef union IcountDecr {
|
|||
* CPUNegativeOffsetState: Elements of CPUState most efficiently accessed
|
||||
* from CPUArchState, via small negative offsets.
|
||||
* @can_do_io: True if memory-mapped IO is allowed.
|
||||
* @plugin_mem_cbs: active plugin memory callbacks
|
||||
*/
|
||||
typedef struct CPUNegativeOffsetState {
|
||||
CPUTLB tlb;
|
||||
#ifdef CONFIG_PLUGIN
|
||||
/*
|
||||
* The callback pointer are accessed via TCG (see gen_empty_mem_helper).
|
||||
*/
|
||||
GArray *plugin_mem_cbs;
|
||||
#endif
|
||||
IcountDecr icount_decr;
|
||||
bool can_do_io;
|
||||
} CPUNegativeOffsetState;
|
||||
|
@ -416,7 +423,6 @@ struct qemu_work_item;
|
|||
* @kvm_fd: vCPU file descriptor for KVM.
|
||||
* @work_mutex: Lock to prevent multiple access to @work_list.
|
||||
* @work_list: List of pending asynchronous work.
|
||||
* @plugin_mem_cbs: active plugin memory callbacks
|
||||
* @plugin_state: per-CPU plugin state
|
||||
* @ignore_memory_transaction_failures: Cached copy of the MachineState
|
||||
* flag of the same name: allows the board to suppress calling of the
|
||||
|
@ -511,11 +517,6 @@ struct CPUState {
|
|||
QemuLockCnt in_ioctl_lock;
|
||||
|
||||
#ifdef CONFIG_PLUGIN
|
||||
/*
|
||||
* The callback pointer stays in the main CPUState as it is
|
||||
* accessed via TCG (see gen_empty_mem_helper).
|
||||
*/
|
||||
GArray *plugin_mem_cbs;
|
||||
CPUPluginState *plugin_state;
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue