vgic.cc (11793:ef606668d247) | vgic.cc (12092:9bb326b4661d) |
---|---|
1/* 2 * Copyright (c) 2013 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 46 unchanged lines hidden (view full) --- 55 for (int x = 0; x < VGIC_CPU_MAX; x++) { 56 postVIntEvent[x] = new PostVIntEvent(x, p->platform); 57 maintIntPosted[x] = false; 58 vIntPosted[x] = false; 59 } 60 assert(sys->numRunningContexts() <= VGIC_CPU_MAX); 61} 62 | 1/* 2 * Copyright (c) 2013 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 46 unchanged lines hidden (view full) --- 55 for (int x = 0; x < VGIC_CPU_MAX; x++) { 56 postVIntEvent[x] = new PostVIntEvent(x, p->platform); 57 maintIntPosted[x] = false; 58 vIntPosted[x] = false; 59 } 60 assert(sys->numRunningContexts() <= VGIC_CPU_MAX); 61} 62 |
63VGic::~VGic() 64{ 65 for (int x = 0; x < VGIC_CPU_MAX; x++) 66 delete postVIntEvent[x]; 67} 68 |
|
63Tick 64VGic::read(PacketPtr pkt) 65{ 66 Addr addr = pkt->getAddr(); 67 68 if (addr >= vcpuAddr && addr < vcpuAddr + GICV_SIZE) 69 return readVCpu(pkt); 70 else if (addr >= hvAddr && addr < hvAddr + GICH_REG_SIZE) --- 471 unchanged lines hidden --- | 69Tick 70VGic::read(PacketPtr pkt) 71{ 72 Addr addr = pkt->getAddr(); 73 74 if (addr >= vcpuAddr && addr < vcpuAddr + GICV_SIZE) 75 return readVCpu(pkt); 76 else if (addr >= hvAddr && addr < hvAddr + GICH_REG_SIZE) --- 471 unchanged lines hidden --- |