rv_ctrl.cc (8060:a9e16f89f11e) | rv_ctrl.cc (8273:d3992e7ebc59) |
---|---|
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::Int::us)); |
66 pkt->set((uint32_t)(clk)); 67 break; 68 case Clock100: 69 Tick clk100; | 66 pkt->set((uint32_t)(clk)); 67 break; 68 case Clock100: 69 Tick clk100; |
70 clk100 = (Tick)(curTick() / (100 * SimClock::Float::MHz)); | 70 clk100 = (Tick)(curTick() / (100 * SimClock::Int::us)); |
71 pkt->set((uint32_t)(clk100)); 72 break; 73 case Flash: 74 pkt->set<uint32_t>(0); 75 break; 76 case Clcd: 77 pkt->set<uint32_t>(0x00001F00); 78 break; --- 68 unchanged lines hidden --- | 71 pkt->set((uint32_t)(clk100)); 72 break; 73 case Flash: 74 pkt->set<uint32_t>(0); 75 break; 76 case Clcd: 77 pkt->set<uint32_t>(0x00001F00); 78 break; --- 68 unchanged lines hidden --- |