pseudo_inst.cc (9733:9d85dfa4696c) pseudo_inst.cc (9879:5fad1d2eb314)
1/*
2 * Copyright (c) 2010-2012 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

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

93
94 DPRINTF(PseudoInst, "PseudoInst::pseudoInst(%i, %i)\n", func, subfunc);
95
96 // We need to do this in a slightly convoluted way since
97 // getArgument() might have side-effects on arg_num. We could have
98 // used the Argument class, but due to the possible side effects
99 // from getArgument, it'd most likely break.
100 int arg_num(0);
1/*
2 * Copyright (c) 2010-2012 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

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

93
94 DPRINTF(PseudoInst, "PseudoInst::pseudoInst(%i, %i)\n", func, subfunc);
95
96 // We need to do this in a slightly convoluted way since
97 // getArgument() might have side-effects on arg_num. We could have
98 // used the Argument class, but due to the possible side effects
99 // from getArgument, it'd most likely break.
100 int arg_num(0);
101 for (int i = 0; i < sizeof(args) / sizeof(*args); ++i)
102 args[arg_num++] = getArgument(tc, arg_num, sizeof(uint64_t), false);
101 for (int i = 0; i < sizeof(args) / sizeof(*args); ++i) {
102 args[arg_num] = getArgument(tc, arg_num, sizeof(uint64_t), false);
103 ++arg_num;
104 }
103
104 switch (func) {
105 case 0x00: // arm_func
106 arm(tc);
107 break;
108
109 case 0x01: // quiesce_func
110 quiesce(tc);

--- 597 unchanged lines hidden ---
105
106 switch (func) {
107 case 0x00: // arm_func
108 arm(tc);
109 break;
110
111 case 0x01: // quiesce_func
112 quiesce(tc);

--- 597 unchanged lines hidden ---