]> Git Repo - qemu.git/blobdiff - hw/s390x/sclpcpu.c
s390x: Disable storage key migration on old machine type
[qemu.git] / hw / s390x / sclpcpu.c
index 3600fe231dbb6aa78dd2b6dc717042c2a35b0e36..2fe8b5aa40e872498411877bf02febfc1e3b092f 100644 (file)
@@ -88,12 +88,14 @@ static int irq_cpu_hotplug_init(SCLPEvent *event)
 static void cpu_class_init(ObjectClass *oc, void *data)
 {
     SCLPEventClass *k = SCLP_EVENT_CLASS(oc);
+    DeviceClass *dc = DEVICE_CLASS(oc);
 
     k->init = irq_cpu_hotplug_init;
     k->get_send_mask = send_mask;
     k->get_receive_mask = receive_mask;
     k->read_event_data = read_event_data;
     k->write_event_data = NULL;
+    set_bit(DEVICE_CATEGORY_MISC, dc->categories);
 }
 
 static const TypeInfo sclp_cpu_info = {
This page took 0.023925 seconds and 4 git commands to generate.