Deleted Added
sdiff udiff text old ( 6745:cdc62b81747e ) new ( 7093:9832d4b070fc )
full compact
1/*
2 * Copyright (c) 2009 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;
9 * redistributions in binary form must reproduce the above copyright

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

122 }
123 }
124 return miscRegs[misc_reg];
125 }
126
127 MiscReg
128 readMiscReg(int misc_reg, ThreadContext *tc)
129 {
130 return readMiscRegNoEffect(misc_reg);
131 }
132
133 void
134 setMiscRegNoEffect(int misc_reg, const MiscReg &val)
135 {
136 assert(misc_reg < NumMiscRegs);
137 if (misc_reg == MISCREG_SPSR) {

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

166 miscRegs[misc_reg] = val;
167 }
168
169 void
170 setMiscReg(int misc_reg, const MiscReg &val, ThreadContext *tc)
171 {
172 if (misc_reg == MISCREG_CPSR) {
173 updateRegMap(val);
174 }
175 return setMiscRegNoEffect(misc_reg, val);
176 }
177
178 int
179 flattenIntIndex(int reg)
180 {
181 assert(reg >= 0);

--- 31 unchanged lines hidden ---