decoder.isa (3454:26850ac19a39) decoder.isa (3457:7479ebe49444)
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

--- 731 unchanged lines hidden (view full) ---

740 }
741 }
742 }
743
744 0x19: decode PALMODE {
745 0: OpcdecFault::hw_mfpr();
746 format HwMoveIPR {
747 1: hw_mfpr({{
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

--- 731 unchanged lines hidden (view full) ---

740 }
741 }
742 }
743
744 0x19: decode PALMODE {
745 0: OpcdecFault::hw_mfpr();
746 format HwMoveIPR {
747 1: hw_mfpr({{
748 Ra = xc->readMiscRegWithEffect(ipr_index, fault);
748 int miscRegIndex = IprToMiscRegIndex[ipr_index];
749 if(miscRegIndex < 0 ||
750 (miscRegIndex >= MinWriteOnlyIpr &&
751 miscRegIndex <= MaxWriteOnlyIpr))
752 fault = new UnimplementedOpcodeFault;
753 else
754 Ra = xc->readMiscRegWithEffect(ipr_index, fault);
749 }}, IsIprAccess);
750 }
751 }
752
753 0x1d: decode PALMODE {
754 0: OpcdecFault::hw_mtpr();
755 format HwMoveIPR {
756 1: hw_mtpr({{
755 }}, IsIprAccess);
756 }
757 }
758
759 0x1d: decode PALMODE {
760 0: OpcdecFault::hw_mtpr();
761 format HwMoveIPR {
762 1: hw_mtpr({{
757 xc->setMiscRegWithEffect(ipr_index, Ra);
763 int miscRegIndex = IprToMiscRegIndex[ipr_index];
764 if(miscRegIndex < 0 ||
765 (miscRegIndex >= MinReadOnlyIpr &&
766 miscRegIndex <= MaxWriteOnlyIpr))
767 fault = new UnimplementedOpcodeFault;
768 else
769 xc->setMiscRegWithEffect(ipr_index, Ra);
758 if (traceData) { traceData->setData(Ra); }
759 }}, IsIprAccess);
760 }
761 }
762
763 format BasicOperate {
764 0x1e: decode PALMODE {
765 0: OpcdecFault::hw_rei();

--- 73 unchanged lines hidden ---
770 if (traceData) { traceData->setData(Ra); }
771 }}, IsIprAccess);
772 }
773 }
774
775 format BasicOperate {
776 0x1e: decode PALMODE {
777 0: OpcdecFault::hw_rei();

--- 73 unchanged lines hidden ---