pred.isa (6271:d0fb87f3318e) pred.isa (6272:fa79e8f9ab41)
1// -*- mode:c++ -*-
2
3// Copyright (c) 2007-2008 The Florida State University
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

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

97 DPRINTF(Arm, "iz = %%d\\n", _iz);
98 DPRINTF(Arm, "ic = %%d\\n", _ic);
99 DPRINTF(Arm, "iv = %%d\\n", _iv);
100 '''
101
102}};
103
104def format DataOp(code, icValue, ivValue) {{
1// -*- mode:c++ -*-
2
3// Copyright (c) 2007-2008 The Florida State University
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

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

97 DPRINTF(Arm, "iz = %%d\\n", _iz);
98 DPRINTF(Arm, "ic = %%d\\n", _ic);
99 DPRINTF(Arm, "iv = %%d\\n", _iv);
100 '''
101
102}};
103
104def format DataOp(code, icValue, ivValue) {{
105 regCode = re.sub(r'op2', 'shift_rm_rs(Rm, Rs, \
106 shift, Cpsr<29:0>)', code)
107 immCode = re.sub(r'op2', 'shift_rm_imm(Rm, shift_size, \
108 shift, Cpsr<29:0>)', code)
105 regCode = '''uint32_t op2 = shift_rm_rs(Rm, Rs,
106 shift, Cpsr<29:0>);
107 op2 = op2;''' + code
108 immCode = '''uint32_t op2 = shift_rm_imm(Rm, shift_size,
109 shift, Cpsr<29:0>);
110 op2 = op2;''' + code
109 regIop = InstObjParams(name, Name, 'PredIntOp',
110 {"code": regCode,
111 "predicate_test": predicateTest})
112 immIop = InstObjParams(name, Name + "Imm", 'PredIntOp',
113 {"code": immCode,
114 "predicate_test": predicateTest})
115 regCcIop = InstObjParams(name, Name + "Cc", 'PredIntOp',
116 {"code": regCode + calcCcCode % vars(),

--- 99 unchanged lines hidden ---
111 regIop = InstObjParams(name, Name, 'PredIntOp',
112 {"code": regCode,
113 "predicate_test": predicateTest})
114 immIop = InstObjParams(name, Name + "Imm", 'PredIntOp',
115 {"code": immCode,
116 "predicate_test": predicateTest})
117 regCcIop = InstObjParams(name, Name + "Cc", 'PredIntOp',
118 {"code": regCode + calcCcCode % vars(),

--- 99 unchanged lines hidden ---