armsse-cpuid.c (95a9457fd44ad97c518858a4e1586a5498f9773c) armsse-cpuid.c (4f67d30b5e74e060b8dbe10528829b47345cd6e8)
1/*
2 * ARM SSE-200 CPU_IDENTITY register block
3 *
4 * Copyright (c) 2019 Linaro Limited
5 * Written by Peter Maydell
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 or

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

111{
112 DeviceClass *dc = DEVICE_CLASS(klass);
113
114 /*
115 * This device has no guest-modifiable state and so it
116 * does not need a reset function or VMState.
117 */
118
1/*
2 * ARM SSE-200 CPU_IDENTITY register block
3 *
4 * Copyright (c) 2019 Linaro Limited
5 * Written by Peter Maydell
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 or

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

111{
112 DeviceClass *dc = DEVICE_CLASS(klass);
113
114 /*
115 * This device has no guest-modifiable state and so it
116 * does not need a reset function or VMState.
117 */
118
119 dc->props = armsse_cpuid_props;
119 device_class_set_props(dc, armsse_cpuid_props);
120}
121
122static const TypeInfo armsse_cpuid_info = {
123 .name = TYPE_ARMSSE_CPUID,
124 .parent = TYPE_SYS_BUS_DEVICE,
125 .instance_size = sizeof(ARMSSECPUID),
126 .instance_init = armsse_cpuid_init,
127 .class_init = armsse_cpuid_class_init,
128};
129
130static void armsse_cpuid_register_types(void)
131{
132 type_register_static(&armsse_cpuid_info);
133}
134
135type_init(armsse_cpuid_register_types);
120}
121
122static const TypeInfo armsse_cpuid_info = {
123 .name = TYPE_ARMSSE_CPUID,
124 .parent = TYPE_SYS_BUS_DEVICE,
125 .instance_size = sizeof(ARMSSECPUID),
126 .instance_init = armsse_cpuid_init,
127 .class_init = armsse_cpuid_class_init,
128};
129
130static void armsse_cpuid_register_types(void)
131{
132 type_register_static(&armsse_cpuid_info);
133}
134
135type_init(armsse_cpuid_register_types);