mt.hh (5268:5bfc53fe60e7) | mt.hh (5561:eb5664be6075) |
---|---|
1/* 2 * Copyright (c) 2007 MIPS Technologies, Inc. 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; --- 206 unchanged lines hidden (view full) --- 215 } 216 217 if (ok == 1) { 218 unsigned tcstatus = tc->readMiscRegNoEffect(TCStatus); 219 tc->setMiscReg(TCStatus, insertBits(tcstatus, TCS_A, TCS_A, 0)); 220 warn("%i: Deactivating Hardware Thread Context #%i", curTick, tc->getThreadNum()); 221 } 222 } else if (src_reg > 0) { | 1/* 2 * Copyright (c) 2007 MIPS Technologies, Inc. 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; --- 206 unchanged lines hidden (view full) --- 215 } 216 217 if (ok == 1) { 218 unsigned tcstatus = tc->readMiscRegNoEffect(TCStatus); 219 tc->setMiscReg(TCStatus, insertBits(tcstatus, TCS_A, TCS_A, 0)); 220 warn("%i: Deactivating Hardware Thread Context #%i", curTick, tc->getThreadNum()); 221 } 222 } else if (src_reg > 0) { |
223 if (src_reg & !yield_mask != 0) { | 223 if (src_reg && !yield_mask != 0) { |
224 unsigned vpe_control = tc->readMiscReg(VPEControl); 225 tc->setMiscReg(VPEControl, insertBits(vpe_control, VPEC_EXCPT_HI, VPEC_EXCPT_LO, 2)); 226 fault = new ThreadFault(); 227 } else { 228 //tc->setThreadRescheduleCondition(src_reg & yield_mask); 229 } 230 } else if (src_reg != -2) { 231 unsigned tcstatus = tc->readMiscRegNoEffect(TCStatus); --- 71 unchanged lines hidden --- | 224 unsigned vpe_control = tc->readMiscReg(VPEControl); 225 tc->setMiscReg(VPEControl, insertBits(vpe_control, VPEC_EXCPT_HI, VPEC_EXCPT_LO, 2)); 226 fault = new ThreadFault(); 227 } else { 228 //tc->setThreadRescheduleCondition(src_reg & yield_mask); 229 } 230 } else if (src_reg != -2) { 231 unsigned tcstatus = tc->readMiscRegNoEffect(TCStatus); --- 71 unchanged lines hidden --- |