regop.isa (5295:5268691561b4) | regop.isa (5296:5caa774215cd) |
---|---|
1// Copyright (c) 2007 The Hewlett-Packard Development Company 2// All rights reserved. 3// 4// Redistribution and use of this software in source and binary forms, 5// with or without modification, are permitted provided that the 6// following conditions are met: 7// 8// The software must be used only for Non-Commercial Use which means any --- 871 unchanged lines hidden (view full) --- 880 else 881 ccFlagBits = ccFlagBits | 882 (ext & (CFBit | ECFBit | ZFBit | EZFBit)); 883 ''' 884 885 class Zext(RegOp): 886 code = 'DestReg = bits(psrc1, op2, 0);' 887 | 1// Copyright (c) 2007 The Hewlett-Packard Development Company 2// All rights reserved. 3// 4// Redistribution and use of this software in source and binary forms, 5// with or without modification, are permitted provided that the 6// following conditions are met: 7// 8// The software must be used only for Non-Commercial Use which means any --- 871 unchanged lines hidden (view full) --- 880 else 881 ccFlagBits = ccFlagBits | 882 (ext & (CFBit | ECFBit | ZFBit | EZFBit)); 883 ''' 884 885 class Zext(RegOp): 886 code = 'DestReg = bits(psrc1, op2, 0);' 887 |
888 class Rdcr(RegOp): 889 def __init__(self, dest, src1, flags=None, dataSize="env.dataSize"): 890 super(Rdcr, self).__init__(dest, \ 891 src1, "NUM_INTREGS", flags, dataSize) 892 code = ''' 893 if (dest == 1 || (dest > 4 && dest < 8) || (dest > 8)) { 894 fault = new InvalidOpcode(); 895 } else { 896 DestReg = ControlSrc1; 897 } 898 ''' 899 |
|
888 class Wrcr(RegOp): 889 def __init__(self, dest, src1, flags=None, dataSize="env.dataSize"): 890 super(Wrcr, self).__init__(dest, \ 891 src1, "NUM_INTREGS", flags, dataSize) 892 code = ''' 893 if (dest == 1 || (dest > 4 && dest < 8) || (dest > 8)) { 894 fault = new InvalidOpcode(); 895 } else { --- 145 unchanged lines hidden --- | 900 class Wrcr(RegOp): 901 def __init__(self, dest, src1, flags=None, dataSize="env.dataSize"): 902 super(Wrcr, self).__init__(dest, \ 903 src1, "NUM_INTREGS", flags, dataSize) 904 code = ''' 905 if (dest == 1 || (dest > 4 && dest < 8) || (dest > 8)) { 906 fault = new InvalidOpcode(); 907 } else { --- 145 unchanged lines hidden --- |