regop.isa (5246:21f29e99e021) regop.isa (5290:7dc3e8ee0a22)
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

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

931 fault = new GeneralProtection(0);
932 }
933 default:
934 panic("Unrecognized control register %d.\\n", dest);
935 }
936 ControlDest = newVal;
937 }
938 '''
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

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

931 fault = new GeneralProtection(0);
932 }
933 default:
934 panic("Unrecognized control register %d.\\n", dest);
935 }
936 ControlDest = newVal;
937 }
938 '''
939
940 class Wrbase(RegOp):
941 def __init__(self, dest, src1, flags=None, dataSize="env.dataSize"):
942 super(Wrbase, self).__init__(dest, \
943 src1, "NUM_INTREGS", flags, dataSize)
944 code = '''
945 SegBaseDest = psrc1;
946 '''
947
948 class Wrlimit(RegOp):
949 def __init__(self, dest, src1, flags=None, dataSize="env.dataSize"):
950 super(Wrlimit, self).__init__(dest, \
951 src1, "NUM_INTREGS", flags, dataSize)
952 code = '''
953 SegLimitDest = psrc1;
954 '''
939}};
955}};