static_inst.hh (4808:a6eb56576b27) | static_inst.hh (5061:2ac90228c205) |
---|---|
1/* 2 * Copyright (c) 2007 The Hewlett-Packard Development Company 3 * All rights reserved. 4 * 5 * Redistribution and use of this software in source and binary forms, 6 * with or without modification, are permitted provided that the 7 * following conditions are met: 8 * --- 126 unchanged lines hidden (view full) --- 135 case 4: 136 return reg.E; 137 case 8: 138 return reg.R; 139 default: 140 panic("Tried to pick with unrecognized size %d.\n", size); 141 } 142 } | 1/* 2 * Copyright (c) 2007 The Hewlett-Packard Development Company 3 * All rights reserved. 4 * 5 * Redistribution and use of this software in source and binary forms, 6 * with or without modification, are permitted provided that the 7 * following conditions are met: 8 * --- 126 unchanged lines hidden (view full) --- 135 case 4: 136 return reg.E; 137 case 8: 138 return reg.R; 139 default: 140 panic("Tried to pick with unrecognized size %d.\n", size); 141 } 142 } |
143 144 inline int64_t signedPick(uint64_t from, int idx, int size) const 145 { 146 X86IntReg reg = from; 147 DPRINTF(X86, "Picking with size %d\n", size); 148 if(_srcRegIdx[idx] & (1 << 6)) 149 return reg.SH; 150 switch(size) 151 { 152 case 1: 153 return reg.SL; 154 case 2: 155 return reg.SX; 156 case 4: 157 return reg.SE; 158 case 8: 159 return reg.SR; 160 default: 161 panic("Tried to pick with unrecognized size %d.\n", size); 162 } 163 } |
|
143 }; 144} 145 146#endif //__ARCH_X86_INSTS_STATICINST_HH__ | 164 }; 165} 166 167#endif //__ARCH_X86_INSTS_STATICINST_HH__ |