else:
decoder_code(decode_case_prolog)
if not type2_info:
- if is_store == False:
+ if not is_store:
# single list of types, to basic one-level decode
for type_name in types:
full_class_name = '%s<%s>' % (class_name, type_name.upper())
int numSrcRegOperands() {
int operands = 0;
for (int i = 0; i < NumSrcOperands; i++) {
- if (src[i].isVectorRegister() == true) {
+ if (src[i].isVectorRegister()) {
operands++;
}
}
int numSrcRegOperands() {
int operands = 0;
- if (src0.isVectorRegister() == true) {
+ if (src0.isVectorRegister()) {
operands++;
}
- if (src1.isVectorRegister() == true) {
+ if (src1.isVectorRegister()) {
operands++;
}
- if (src2.isVectorRegister() == true) {
+ if (src2.isVectorRegister()) {
operands++;
}
return operands;
int numSrcRegOperands() {
int operands = 0;
- if (src0.isVectorRegister() == true) {
+ if (src0.isVectorRegister()) {
operands++;
}
- if (src1.isVectorRegister() == true) {
+ if (src1.isVectorRegister()) {
operands++;
}
return operands;
{
int operands = 0;
for (int i = 0; i < NumSrcOperands; i++) {
- if (src[i].isVectorRegister() == true) {
+ if (src[i].isVectorRegister()) {
operands++;
}
}
assert(tid < numThreads);
AddressMonitor &monitor = addressMonitor[tid];
- if (monitor.gotWakeup == false) {
+ if (!monitor.gotWakeup) {
int block_size = cacheLineSize();
uint64_t mask = ~((uint64_t)(block_size - 1));
DistIface::RecvScheduler::unserialize(CheckpointIn &cp)
{
assert(descQueue.size() == 0);
- assert(recvDone->scheduled() == false);
- assert(ckptRestore == false);
+ assert(!recvDone->scheduled());
+ assert(!ckptRestore);
UNSERIALIZE_SCALAR(prevRecvTick);
// unserialize the receive desc queue
test(int offset)
{
assert(offset < mSize);
- return mMask[offset] == true;
+ return mMask[offset];
}
void
m_router->curCycle());
// This Input VC should now be empty
- assert(m_input_unit[inport]->isReady(invc,
- m_router->curCycle()) == false);
+ assert(!m_input_unit[inport]->
+ isReady(invc, m_router->curCycle()));
m_input_unit[inport]->set_vc_state(IDLE_, invc,
m_router->curCycle());
assert(m_outstanding_count == total_outstanding);
// See if we should schedule a deadlock check
- if (deadlockCheckEvent.scheduled() == false) {
+ if (!deadlockCheckEvent.scheduled()) {
schedule(deadlockCheckEvent, m_deadlock_threshold + curTick());
}
if func.c_ident == 'getNextState_Addr':
found = True
break
- if found == False:
+ if not found:
fatal("Machine uses a wildcard transition without getNextState defined")
self.nextState = WildcardState(machine.symtab,
'*', location)