mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
target/arm: Create arm_cpu_mp_affinity
Wrapper to return the mp affinity bits from the cpu. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20240118200643.29037-10-philmd@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
750245ed7c
commit
c4380f7bcd
8 changed files with 17 additions and 11 deletions
|
@ -1016,7 +1016,7 @@ static void hvf_raise_exception(CPUState *cpu, uint32_t excp,
|
|||
|
||||
static void hvf_psci_cpu_off(ARMCPU *arm_cpu)
|
||||
{
|
||||
int32_t ret = arm_set_cpu_off(arm_cpu->mp_affinity);
|
||||
int32_t ret = arm_set_cpu_off(arm_cpu_mp_affinity(arm_cpu));
|
||||
assert(ret == QEMU_ARM_POWERCTL_RET_SUCCESS);
|
||||
}
|
||||
|
||||
|
@ -1045,7 +1045,7 @@ static bool hvf_handle_psci_call(CPUState *cpu)
|
|||
int32_t ret = 0;
|
||||
|
||||
trace_hvf_psci_call(param[0], param[1], param[2], param[3],
|
||||
arm_cpu->mp_affinity);
|
||||
arm_cpu_mp_affinity(arm_cpu));
|
||||
|
||||
switch (param[0]) {
|
||||
case QEMU_PSCI_0_2_FN_PSCI_VERSION:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue