rv_ctrl.cc (7733:08d6a773d1b6) | rv_ctrl.cc (7823:dac01f14f20f) |
---|---|
1/* 2 * Copyright (c) 2010 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 --- 48 unchanged lines hidden (view full) --- 57 pkt->allocate(); 58 59 switch(daddr) { 60 case ProcId: 61 pkt->set(params()->proc_id); 62 break; 63 case Clock24: 64 Tick clk; | 1/* 2 * Copyright (c) 2010 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 --- 48 unchanged lines hidden (view full) --- 57 pkt->allocate(); 58 59 switch(daddr) { 60 case ProcId: 61 pkt->set(params()->proc_id); 62 break; 63 case Clock24: 64 Tick clk; |
65 clk = (Tick)(curTick / (24 * SimClock::Float::MHz)); | 65 clk = (Tick)(curTick() / (24 * SimClock::Float::MHz)); |
66 pkt->set((uint32_t)(clk)); 67 break; 68 case Flash: 69 pkt->set<uint32_t>(0); 70 break; 71 default: 72 panic("Tried to read RealView I/O at offset %#x that doesn't exist\n", daddr); 73 break; --- 38 unchanged lines hidden --- | 66 pkt->set((uint32_t)(clk)); 67 break; 68 case Flash: 69 pkt->set<uint32_t>(0); 70 break; 71 default: 72 panic("Tried to read RealView I/O at offset %#x that doesn't exist\n", daddr); 73 break; --- 38 unchanged lines hidden --- |