decoder.isa (2996:56a278b5dbfa) | decoder.isa (3039:9cec9533b941) |
---|---|
1// Copyright (c) 2006 The Regents of The University of Michigan 2// All rights reserved. 3// 4// Redistribution and use in source and binary forms, with or without 5// modification, are permitted provided that the following conditions are 6// met: redistributions of source code must retain the above copyright 7// notice, this list of conditions and the following disclaimer; 8// redistributions in binary form must reproduce the above copyright --- 665 unchanged lines hidden (view full) --- 674 xc->setMiscRegWithEffect(MISCREG_CWP, Cwp); 675 } 676 }}); 677 0x3A: decode CC 678 { 679 0x0: Trap::tcci({{ 680 if(passesCondition(Ccr<3:0>, COND2)) 681 { | 1// Copyright (c) 2006 The Regents of The University of Michigan 2// All rights reserved. 3// 4// Redistribution and use in source and binary forms, with or without 5// modification, are permitted provided that the following conditions are 6// met: redistributions of source code must retain the above copyright 7// notice, this list of conditions and the following disclaimer; 8// redistributions in binary form must reproduce the above copyright --- 665 unchanged lines hidden (view full) --- 674 xc->setMiscRegWithEffect(MISCREG_CWP, Cwp); 675 } 676 }}); 677 0x3A: decode CC 678 { 679 0x0: Trap::tcci({{ 680 if(passesCondition(Ccr<3:0>, COND2)) 681 { |
682#if FULL_SYSTEM |
|
682 int lTrapNum = I ? (Rs1 + SW_TRAP) : (Rs1 + Rs2); 683 DPRINTF(Sparc, "The trap number is %d\n", lTrapNum); | 683 int lTrapNum = I ? (Rs1 + SW_TRAP) : (Rs1 + Rs2); 684 DPRINTF(Sparc, "The trap number is %d\n", lTrapNum); |
684#if FULL_SYSTEM | |
685 fault = new TrapInstruction(lTrapNum); 686#else 687 DPRINTF(Sparc, "The syscall number is %d\n", R1); 688 xc->syscall(R1); 689#endif 690 } 691 }}); 692 0x2: Trap::tccx({{ 693 if(passesCondition(Ccr<7:4>, COND2)) 694 { | 685 fault = new TrapInstruction(lTrapNum); 686#else 687 DPRINTF(Sparc, "The syscall number is %d\n", R1); 688 xc->syscall(R1); 689#endif 690 } 691 }}); 692 0x2: Trap::tccx({{ 693 if(passesCondition(Ccr<7:4>, COND2)) 694 { |
695#if FULL_SYSTEM |
|
695 int lTrapNum = I ? (Rs1 + SW_TRAP) : (Rs1 + Rs2); 696 DPRINTF(Sparc, "The trap number is %d\n", lTrapNum); | 696 int lTrapNum = I ? (Rs1 + SW_TRAP) : (Rs1 + Rs2); 697 DPRINTF(Sparc, "The trap number is %d\n", lTrapNum); |
697#if FULL_SYSTEM | |
698 fault = new TrapInstruction(lTrapNum); 699#else 700 DPRINTF(Sparc, "The syscall number is %d\n", R1); 701 xc->syscall(R1); 702#endif 703 } 704 }}); 705 } --- 186 unchanged lines hidden --- | 698 fault = new TrapInstruction(lTrapNum); 699#else 700 DPRINTF(Sparc, "The syscall number is %d\n", R1); 701 xc->syscall(R1); 702#endif 703 } 704 }}); 705 } --- 186 unchanged lines hidden --- |