cpu.c (2c89b5af5e72ab8c9d544c6e30399528b2238827) cpu.c (bddd892ef1920c9ede00ad2009b3c3b3b0cf7a44)
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

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

1312 * Initial value of the NS VTOR (for cores without the Security
1313 * extension, this is the only VTOR)
1314 */
1315 object_property_add_uint32_ptr(obj, "init-nsvtor",
1316 &cpu->init_nsvtor,
1317 OBJ_PROP_FLAG_READWRITE);
1318 }
1319
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

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

1312 * Initial value of the NS VTOR (for cores without the Security
1313 * extension, this is the only VTOR)
1314 */
1315 object_property_add_uint32_ptr(obj, "init-nsvtor",
1316 &cpu->init_nsvtor,
1317 OBJ_PROP_FLAG_READWRITE);
1318 }
1319
1320 /* Not DEFINE_PROP_UINT32: we want this to be settable after realize */
1321 object_property_add_uint32_ptr(obj, "psci-conduit",
1322 &cpu->psci_conduit,
1323 OBJ_PROP_FLAG_READWRITE);
1324
1320 qdev_property_add_static(DEVICE(obj), &arm_cpu_cfgend_property);
1321
1322 if (arm_feature(&cpu->env, ARM_FEATURE_GENERIC_TIMER)) {
1323 qdev_property_add_static(DEVICE(cpu), &arm_cpu_gt_cntfrq_property);
1324 }
1325
1326 if (kvm_enabled()) {
1327 kvm_arm_add_vcpu_properties(obj);

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

1982 if (!oc || !object_class_dynamic_cast(oc, TYPE_ARM_CPU) ||
1983 object_class_is_abstract(oc)) {
1984 return NULL;
1985 }
1986 return oc;
1987}
1988
1989static Property arm_cpu_properties[] = {
1325 qdev_property_add_static(DEVICE(obj), &arm_cpu_cfgend_property);
1326
1327 if (arm_feature(&cpu->env, ARM_FEATURE_GENERIC_TIMER)) {
1328 qdev_property_add_static(DEVICE(cpu), &arm_cpu_gt_cntfrq_property);
1329 }
1330
1331 if (kvm_enabled()) {
1332 kvm_arm_add_vcpu_properties(obj);

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

1987 if (!oc || !object_class_dynamic_cast(oc, TYPE_ARM_CPU) ||
1988 object_class_is_abstract(oc)) {
1989 return NULL;
1990 }
1991 return oc;
1992}
1993
1994static Property arm_cpu_properties[] = {
1990 DEFINE_PROP_UINT32("psci-conduit", ARMCPU, psci_conduit, 0),
1991 DEFINE_PROP_UINT64("midr", ARMCPU, midr, 0),
1992 DEFINE_PROP_UINT64("mp-affinity", ARMCPU,
1993 mp_affinity, ARM64_AFFINITY_INVALID),
1994 DEFINE_PROP_INT32("node-id", ARMCPU, node_id, CPU_UNSET_NUMA_NODE_ID),
1995 DEFINE_PROP_INT32("core-count", ARMCPU, core_count, -1),
1996 DEFINE_PROP_END_OF_LIST()
1997};
1998

--- 158 unchanged lines hidden ---
1995 DEFINE_PROP_UINT64("midr", ARMCPU, midr, 0),
1996 DEFINE_PROP_UINT64("mp-affinity", ARMCPU,
1997 mp_affinity, ARM64_AFFINITY_INVALID),
1998 DEFINE_PROP_INT32("node-id", ARMCPU, node_id, CPU_UNSET_NUMA_NODE_ID),
1999 DEFINE_PROP_INT32("core-count", ARMCPU, core_count, -1),
2000 DEFINE_PROP_END_OF_LIST()
2001};
2002

--- 158 unchanged lines hidden ---