cpu.c (750245ed7ce2a426a4eaf026f1af3a21fbdc19dc) cpu.c (e2d8cf9b5312ada63ffa7460dec7cf89cf0bd61e)
1/*
2 * QEMU ARM CPU
3 *
4 * Copyright (c) 2012 SUSE LINUX Products GmbH
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2

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

1309
1310uint64_t arm_build_mp_affinity(int idx, uint8_t clustersz)
1311{
1312 uint32_t Aff1 = idx / clustersz;
1313 uint32_t Aff0 = idx % clustersz;
1314 return (Aff1 << ARM_AFF1_SHIFT) | Aff0;
1315}
1316
1/*
2 * QEMU ARM CPU
3 *
4 * Copyright (c) 2012 SUSE LINUX Products GmbH
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2

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

1309
1310uint64_t arm_build_mp_affinity(int idx, uint8_t clustersz)
1311{
1312 uint32_t Aff1 = idx / clustersz;
1313 uint32_t Aff0 = idx % clustersz;
1314 return (Aff1 << ARM_AFF1_SHIFT) | Aff0;
1315}
1316
1317uint64_t arm_cpu_mp_affinity(ARMCPU *cpu)
1318{
1319 return cpu->mp_affinity;
1320}
1321
1317static void arm_cpu_initfn(Object *obj)
1318{
1319 ARMCPU *cpu = ARM_CPU(obj);
1320
1321 cpu->cp_regs = g_hash_table_new_full(g_direct_hash, g_direct_equal,
1322 NULL, g_free);
1323
1324 QLIST_INIT(&cpu->pre_el_change_hooks);

--- 1236 unchanged lines hidden ---
1322static void arm_cpu_initfn(Object *obj)
1323{
1324 ARMCPU *cpu = ARM_CPU(obj);
1325
1326 cpu->cp_regs = g_hash_table_new_full(g_direct_hash, g_direct_equal,
1327 NULL, g_free);
1328
1329 QLIST_INIT(&cpu->pre_el_change_hooks);

--- 1236 unchanged lines hidden ---