types.hh (11168:f98eb2da15a4) | types.hh (11886:43b882cada33) |
---|---|
1/* 2 * Copyright (c) 2010 Gabe Black 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 134 unchanged lines hidden (view full) --- 143 144 void 145 set(Addr val) 146 { 147 pc(val); 148 npc(val + sizeof(MachInst)); 149 }; 150 | 1/* 2 * Copyright (c) 2010 Gabe Black 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 134 unchanged lines hidden (view full) --- 143 144 void 145 set(Addr val) 146 { 147 pc(val); 148 npc(val + sizeof(MachInst)); 149 }; 150 |
151 void 152 setNPC(Addr val) 153 { 154 npc(val); 155 } 156 |
|
151 SimplePCState() {} 152 SimplePCState(Addr val) { set(val); } 153 154 bool 155 branching() const 156 { 157 return this->npc() != this->pc() + sizeof(MachInst); 158 } --- 298 unchanged lines hidden --- | 157 SimplePCState() {} 158 SimplePCState(Addr val) { set(val); } 159 160 bool 161 branching() const 162 { 163 return this->npc() != this->pc() + sizeof(MachInst); 164 } --- 298 unchanged lines hidden --- |