openpic_kvm.c (2c9b15cab12c21e32dffb67c5e18f3dc407ca224) | openpic_kvm.c (1437c94b2689c2010362f84d14f14feaa1d8dba3) |
---|---|
1/* 2 * KVM in-kernel OpenPIC 3 * 4 * Copyright 2013 Freescale Semiconductor, Inc. 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 141 unchanged lines hidden (view full) --- 150 strerror(errno), reg_base); 151 } 152} 153 154static void kvm_openpic_init(Object *obj) 155{ 156 KVMOpenPICState *opp = KVM_OPENPIC(obj); 157 | 1/* 2 * KVM in-kernel OpenPIC 3 * 4 * Copyright 2013 Freescale Semiconductor, Inc. 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 141 unchanged lines hidden (view full) --- 150 strerror(errno), reg_base); 151 } 152} 153 154static void kvm_openpic_init(Object *obj) 155{ 156 KVMOpenPICState *opp = KVM_OPENPIC(obj); 157 |
158 memory_region_init_io(&opp->mem, NULL, &kvm_openpic_mem_ops, opp, | 158 memory_region_init_io(&opp->mem, OBJECT(opp), &kvm_openpic_mem_ops, opp, |
159 "kvm-openpic", 0x40000); 160} 161 162static void kvm_openpic_realize(DeviceState *dev, Error **errp) 163{ 164 SysBusDevice *d = SYS_BUS_DEVICE(dev); 165 KVMOpenPICState *opp = KVM_OPENPIC(dev); 166 KVMState *s = kvm_state; --- 98 unchanged lines hidden --- | 159 "kvm-openpic", 0x40000); 160} 161 162static void kvm_openpic_realize(DeviceState *dev, Error **errp) 163{ 164 SysBusDevice *d = SYS_BUS_DEVICE(dev); 165 KVMOpenPICState *opp = KVM_OPENPIC(dev); 166 KVMState *s = kvm_state; --- 98 unchanged lines hidden --- |