operands.isa (7288:7da4b77c4d29) operands.isa (7289:59247abdd4e2)
1// -*- mode:c++ -*-
2// Copyright (c) 2010 ARM Limited
3// All rights reserved
4//
5// The license below extends only to copyright in the software and shall
6// not be construed as granting a license to any other intellectual
7// property including but not limited to intellectual property relating
8// to a hardware implementation of the functionality of the software

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

65 xc->%(func)s(this, %(op_idx)s, %(final_val)s))
66 '''
67 maybeIWPCWrite = '''
68 ((%(reg_idx)s == PCReg) ? setIWNextPC(xc, %(final_val)s) :
69 xc->%(func)s(this, %(op_idx)s, %(final_val)s))
70 '''
71 maybeAIWPCWrite = '''
72 if (%(reg_idx)s == PCReg) {
1// -*- mode:c++ -*-
2// Copyright (c) 2010 ARM Limited
3// All rights reserved
4//
5// The license below extends only to copyright in the software and shall
6// not be construed as granting a license to any other intellectual
7// property including but not limited to intellectual property relating
8// to a hardware implementation of the functionality of the software

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

65 xc->%(func)s(this, %(op_idx)s, %(final_val)s))
66 '''
67 maybeIWPCWrite = '''
68 ((%(reg_idx)s == PCReg) ? setIWNextPC(xc, %(final_val)s) :
69 xc->%(func)s(this, %(op_idx)s, %(final_val)s))
70 '''
71 maybeAIWPCWrite = '''
72 if (%(reg_idx)s == PCReg) {
73 if (xc->readPC() & (ULL(1) << PcTBitShift)) {
74 setIWNextPC(xc, %(final_val)s);
75 } else {
73 bool thumb = THUMB;
74 if (thumb) {
76 setNextPC(xc, %(final_val)s);
75 setNextPC(xc, %(final_val)s);
76 } else {
77 setIWNextPC(xc, %(final_val)s);
77 }
78 } else {
79 xc->%(func)s(this, %(op_idx)s, %(final_val)s);
80 }
81 '''
82
83 readNPC = 'xc->readNextPC() & ~PcModeMask'
84 writeNPC = 'setNextPC(xc, %(final_val)s)'

--- 75 unchanged lines hidden ---
78 }
79 } else {
80 xc->%(func)s(this, %(op_idx)s, %(final_val)s);
81 }
82 '''
83
84 readNPC = 'xc->readNextPC() & ~PcModeMask'
85 writeNPC = 'setNextPC(xc, %(final_val)s)'

--- 75 unchanged lines hidden ---