diff options
| author | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2021-05-17 12:51:36 +0200 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2021-05-26 15:33:59 -0700 |
| commit | faf39e828374d83ca82b02c0c25cdeca9ce9581e (patch) | |
| tree | 4ea45fae01845a3c21c581aaa0ff62e95ea276f8 /include/hw/core/sysemu-cpu-ops.h | |
| parent | 715e3c1afb0022fb2e0f60a198ed2c740e3c48f4 (diff) | |
| download | focaccia-qemu-faf39e828374d83ca82b02c0c25cdeca9ce9581e.tar.gz focaccia-qemu-faf39e828374d83ca82b02c0c25cdeca9ce9581e.zip | |
cpu: Move CPUClass::asidx_from_attrs to SysemuCPUOps
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20210517105140.1062037-20-f4bug@amsat.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/hw/core/sysemu-cpu-ops.h')
| -rw-r--r-- | include/hw/core/sysemu-cpu-ops.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/hw/core/sysemu-cpu-ops.h b/include/hw/core/sysemu-cpu-ops.h index 52ac0ae4e1..8f8326e810 100644 --- a/include/hw/core/sysemu-cpu-ops.h +++ b/include/hw/core/sysemu-cpu-ops.h @@ -17,6 +17,11 @@ */ typedef struct SysemuCPUOps { /** + * @asidx_from_attrs: Callback to return the CPU AddressSpace to use for + * a memory access with the specified memory transaction attributes. + */ + int (*asidx_from_attrs)(CPUState *cpu, MemTxAttrs attrs); + /** * @get_crash_info: Callback for reporting guest crash information in * GUEST_PANICKED events. */ |