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 /hw | |
parent | 715e3c1afb0022fb2e0f60a198ed2c740e3c48f4 (diff) | |
download | qemu-faf39e828374d83ca82b02c0c25cdeca9ce9581e.zip qemu-faf39e828374d83ca82b02c0c25cdeca9ce9581e.tar.gz qemu-faf39e828374d83ca82b02c0c25cdeca9ce9581e.tar.bz2 |
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 'hw')
-rw-r--r-- | hw/core/cpu-sysemu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/core/cpu-sysemu.c b/hw/core/cpu-sysemu.c index d55ef8d..ba53c2e 100644 --- a/hw/core/cpu-sysemu.c +++ b/hw/core/cpu-sysemu.c @@ -72,8 +72,8 @@ int cpu_asidx_from_attrs(CPUState *cpu, MemTxAttrs attrs) CPUClass *cc = CPU_GET_CLASS(cpu); int ret = 0; - if (cc->asidx_from_attrs) { - ret = cc->asidx_from_attrs(cpu, attrs); + if (cc->sysemu_ops->asidx_from_attrs) { + ret = cc->sysemu_ops->asidx_from_attrs(cpu, attrs); assert(ret < cpu->num_ases && ret >= 0); } return ret; |