rv_ctrl.cc (8988:528f0fa80f76) rv_ctrl.cc (9004:e2364b281ee3)
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

--- 51 unchanged lines hidden (view full) ---

60 case ProcId0:
61 pkt->set(params()->proc_id0);
62 break;
63 case ProcId1:
64 pkt->set(params()->proc_id1);
65 break;
66 case Clock24:
67 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

--- 51 unchanged lines hidden (view full) ---

60 case ProcId0:
61 pkt->set(params()->proc_id0);
62 break;
63 case ProcId1:
64 pkt->set(params()->proc_id1);
65 break;
66 case Clock24:
67 Tick clk;
68 clk = (Tick)(curTick() / (24 * SimClock::Int::us));
68 clk = SimClock::Float::MHz * curTick() * 24;
69 pkt->set((uint32_t)(clk));
70 break;
71 case Clock100:
72 Tick clk100;
69 pkt->set((uint32_t)(clk));
70 break;
71 case Clock100:
72 Tick clk100;
73 clk100 = (Tick)(curTick() / (100 * SimClock::Int::us));
73 clk100 = SimClock::Float::MHz * curTick() * 100;
74 pkt->set((uint32_t)(clk100));
75 break;
76 case Flash:
77 pkt->set<uint32_t>(0);
78 break;
79 case Clcd:
80 pkt->set<uint32_t>(0x00001F00);
81 break;

--- 87 unchanged lines hidden ---
74 pkt->set((uint32_t)(clk100));
75 break;
76 case Flash:
77 pkt->set<uint32_t>(0);
78 break;
79 case Clcd:
80 pkt->set<uint32_t>(0x00001F00);
81 break;

--- 87 unchanged lines hidden ---