decoder.isa (7799:5d0f62927d75) | decoder.isa (7952:896a68fc68dc) |
---|---|
1// -*- mode:c++ -*- 2 3// Copyright (c) 2007 MIPS Technologies, Inc. 4// All rights reserved. 5// 6// Redistribution and use in source and binary forms, with or without 7// modification, are permitted provided that the following conditions are 8// met: redistributions of source code must retain the above copyright --- 353 unchanged lines hidden (view full) --- 362#if FULL_SYSTEM 363 } else { 364 fault = new ArithmeticFault(); 365 } 366#endif 367 }}); 368 0x1: addiu({{ Rt.sw = Rs.sw + imm; }}); 369 0x2: slti({{ Rt.sw = (Rs.sw < imm) ? 1 : 0 }}); | 1// -*- mode:c++ -*- 2 3// Copyright (c) 2007 MIPS Technologies, Inc. 4// All rights reserved. 5// 6// Redistribution and use in source and binary forms, with or without 7// modification, are permitted provided that the following conditions are 8// met: redistributions of source code must retain the above copyright --- 353 unchanged lines hidden (view full) --- 362#if FULL_SYSTEM 363 } else { 364 fault = new ArithmeticFault(); 365 } 366#endif 367 }}); 368 0x1: addiu({{ Rt.sw = Rs.sw + imm; }}); 369 0x2: slti({{ Rt.sw = (Rs.sw < imm) ? 1 : 0 }}); |
370 371 //Edited to include MIPS AVP Pass/Fail instructions and 372 //default to the sltiu instruction 373 0x3: decode RS_RT_INTIMM { 374 0xabc1: BasicOp::fail({{ 375 exitSimLoop("AVP/SRVP Test Failed"); 376 }}); 377 0xabc2: BasicOp::pass({{ 378 exitSimLoop("AVP/SRVP Test Passed"); 379 }}); 380 default: sltiu({{ 381 Rt.uw = (Rs.uw < (uint32_t)sextImm) ? 1 : 0; 382 }}); 383 } 384 | 370 0x3: sltiu({{ Rt.uw = (Rs.uw < (uint32_t)sextImm) ? 1 : 0;}}); |
385 0x4: andi({{ Rt.sw = Rs.sw & zextImm; }}); 386 0x5: ori({{ Rt.sw = Rs.sw | zextImm; }}); 387 0x6: xori({{ Rt.sw = Rs.sw ^ zextImm; }}); 388 389 0x7: decode RS { 390 0x0: lui({{ Rt = imm << 16; }}); 391 } 392 } --- 2183 unchanged lines hidden --- | 371 0x4: andi({{ Rt.sw = Rs.sw & zextImm; }}); 372 0x5: ori({{ Rt.sw = Rs.sw | zextImm; }}); 373 0x6: xori({{ Rt.sw = Rs.sw ^ zextImm; }}); 374 375 0x7: decode RS { 376 0x0: lui({{ Rt = imm << 16; }}); 377 } 378 } --- 2183 unchanged lines hidden --- |