sbsa-ref.c (0c1eccd368af8805ec0fb11e6cf25d0684d37328) sbsa-ref.c (750245ed7ce2a426a4eaf026f1af3a21fbdc19dc)
1/*
2 * ARM SBSA Reference Platform emulation
3 *
4 * Copyright (c) 2018 Linaro Limited
5 * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
6 * Written by Hongbo Zhang <hongbo.zhang@linaro.org>
7 *
8 * This program is free software; you can redistribute it and/or modify it

--- 134 unchanged lines hidden (view full) ---

143 [SBSA_XHCI] = 11,
144 [SBSA_SMMU] = 12, /* ... to 15 */
145 [SBSA_GWDT_WS0] = 16,
146};
147
148static uint64_t sbsa_ref_cpu_mp_affinity(SBSAMachineState *sms, int idx)
149{
150 uint8_t clustersz = ARM_DEFAULT_CPUS_PER_CLUSTER;
1/*
2 * ARM SBSA Reference Platform emulation
3 *
4 * Copyright (c) 2018 Linaro Limited
5 * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
6 * Written by Hongbo Zhang <hongbo.zhang@linaro.org>
7 *
8 * This program is free software; you can redistribute it and/or modify it

--- 134 unchanged lines hidden (view full) ---

143 [SBSA_XHCI] = 11,
144 [SBSA_SMMU] = 12, /* ... to 15 */
145 [SBSA_GWDT_WS0] = 16,
146};
147
148static uint64_t sbsa_ref_cpu_mp_affinity(SBSAMachineState *sms, int idx)
149{
150 uint8_t clustersz = ARM_DEFAULT_CPUS_PER_CLUSTER;
151 return arm_cpu_mp_affinity(idx, clustersz);
151 return arm_build_mp_affinity(idx, clustersz);
152}
153
154static void sbsa_fdt_add_gic_node(SBSAMachineState *sms)
155{
156 char *nodename;
157
158 nodename = g_strdup_printf("/intc");
159 qemu_fdt_add_subnode(sms->fdt, nodename);

--- 759 unchanged lines hidden ---
152}
153
154static void sbsa_fdt_add_gic_node(SBSAMachineState *sms)
155{
156 char *nodename;
157
158 nodename = g_strdup_printf("/intc");
159 qemu_fdt_add_subnode(sms->fdt, nodename);

--- 759 unchanged lines hidden ---