summary refs log tree commit diff stats
path: root/include/qemu/accel.h
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2025-06-06 12:07:47 +0200
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2025-07-04 14:43:46 +0200
commit487b25c9d93add2e0e58275d7c1ef89810fad763 (patch)
tree5f298a07e854be586ebd43e458d9cc6892640cf8 /include/qemu/accel.h
parentb64bb17d14a62ea04b605f81daec8a5a4fad3be4 (diff)
downloadfocaccia-qemu-487b25c9d93add2e0e58275d7c1ef89810fad763.tar.gz
focaccia-qemu-487b25c9d93add2e0e58275d7c1ef89810fad763.zip
accel: Keep reference to AccelOpsClass in AccelClass
Allow dereferencing AccelOpsClass outside of accel/accel-system.c.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Message-Id: <20250703173248.44995-30-philmd@linaro.org>
Diffstat (limited to 'include/qemu/accel.h')
-rw-r--r--include/qemu/accel.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/qemu/accel.h b/include/qemu/accel.h
index fbd3d897fe..9dea314542 100644
--- a/include/qemu/accel.h
+++ b/include/qemu/accel.h
@@ -37,6 +37,9 @@ typedef struct AccelClass {
     /*< public >*/
 
     const char *name;
+    /* Cached by accel_init_ops_interfaces() when created */
+    AccelOpsClass *ops;
+
     int (*init_machine)(MachineState *ms);
     bool (*cpu_common_realize)(CPUState *cpu, Error **errp);
     void (*cpu_common_unrealize)(CPUState *cpu);