types.hh (11321:02e930db812d) types.hh (11886:43b882cada33)
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
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

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

300 {
301 Base::set(val);
302 _size = 0;
303 }
304
305 PCState() {}
306 PCState(Addr val) { set(val); }
307
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
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

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

300 {
301 Base::set(val);
302 _size = 0;
303 }
304
305 PCState() {}
306 PCState(Addr val) { set(val); }
307
308 void
309 setNPC(Addr val)
310 {
311 Base::setNPC(val);
312 _size = 0;
313 }
314
308 uint8_t size() const { return _size; }
309 void size(uint8_t newSize) { _size = newSize; }
310
311 bool
312 branching() const
313 {
314 return this->npc() != this->pc() + size();
315 }

--- 62 unchanged lines hidden ---
315 uint8_t size() const { return _size; }
316 void size(uint8_t newSize) { _size = newSize; }
317
318 bool
319 branching() const
320 {
321 return this->npc() != this->pc() + size();
322 }

--- 62 unchanged lines hidden ---