decoder.isa (3465:18abcc7191ff) | decoder.isa (3466:a7358b293100) |
---|---|
1// -*- mode:c++ -*- 2 3// Copyright (c) 2003-2006 The Regents of The University of Michigan 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 --- 734 unchanged lines hidden (view full) --- 743 744 0x19: decode PALMODE { 745 0: OpcdecFault::hw_mfpr(); 746 format HwMoveIPR { 747 1: hw_mfpr({{ 748 int miscRegIndex = (ipr_index < NumInternalProcRegs) ? 749 IprToMiscRegIndex[ipr_index] : -1; 750 if(miscRegIndex < 0 || !IprIsReadable(miscRegIndex) || | 1// -*- mode:c++ -*- 2 3// Copyright (c) 2003-2006 The Regents of The University of Michigan 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 --- 734 unchanged lines hidden (view full) --- 743 744 0x19: decode PALMODE { 745 0: OpcdecFault::hw_mfpr(); 746 format HwMoveIPR { 747 1: hw_mfpr({{ 748 int miscRegIndex = (ipr_index < NumInternalProcRegs) ? 749 IprToMiscRegIndex[ipr_index] : -1; 750 if(miscRegIndex < 0 || !IprIsReadable(miscRegIndex) || |
751 miscRegIndex >= NumInternalProcRegs) |
|
751 fault = new UnimplementedOpcodeFault; 752 else 753 Ra = xc->readMiscRegWithEffect(miscRegIndex, fault); 754 }}, IsIprAccess); 755 } 756 } 757 758 0x1d: decode PALMODE { 759 0: OpcdecFault::hw_mtpr(); 760 format HwMoveIPR { 761 1: hw_mtpr({{ 762 int miscRegIndex = (ipr_index < NumInternalProcRegs) ? 763 IprToMiscRegIndex[ipr_index] : -1; | 752 fault = new UnimplementedOpcodeFault; 753 else 754 Ra = xc->readMiscRegWithEffect(miscRegIndex, fault); 755 }}, IsIprAccess); 756 } 757 } 758 759 0x1d: decode PALMODE { 760 0: OpcdecFault::hw_mtpr(); 761 format HwMoveIPR { 762 1: hw_mtpr({{ 763 int miscRegIndex = (ipr_index < NumInternalProcRegs) ? 764 IprToMiscRegIndex[ipr_index] : -1; |
764 if(miscRegIndex < 0 || !IprIsWritable(miscRegIndex)) | 765 if(miscRegIndex < 0 || !IprIsWritable(miscRegIndex) 766 miscRegIndex >= NumInternalProcRegs) |
765 fault = new UnimplementedOpcodeFault; 766 else 767 xc->setMiscRegWithEffect(miscRegIndex, Ra); 768 if (traceData) { traceData->setData(Ra); } 769 }}, IsIprAccess); 770 } 771 } 772 --- 76 unchanged lines hidden --- | 767 fault = new UnimplementedOpcodeFault; 768 else 769 xc->setMiscRegWithEffect(miscRegIndex, Ra); 770 if (traceData) { traceData->setData(Ra); } 771 }}, IsIprAccess); 772 } 773 } 774 --- 76 unchanged lines hidden --- |