Deleted Added
sdiff udiff text old ( 8075:dc266f3bcae4 ) new ( 8146:18368caa8489 )
full compact
1/*
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

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

198
199 enum FlagBits {
200 ThumbBit = (1 << 0),
201 JazelleBit = (1 << 1)
202 };
203 uint8_t flags;
204 uint8_t nextFlags;
205 uint8_t forcedItStateValue;
206 bool forcedItStateValid;
207 public:
208 PCState() : flags(0), nextFlags(0), forcedItStateValue(0), forcedItStateValid(false)
209 {}
210
211 void
212 set(Addr val)
213 {

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

243 nextThumb(bool val)
244 {
245 if (val)
246 nextFlags |= ThumbBit;
247 else
248 nextFlags &= ~ThumbBit;
249 }
250
251 bool
252 jazelle() const
253 {
254 return flags & JazelleBit;
255 }
256
257 void
258 jazelle(bool val)
259 {

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

387 flags == opc.flags && nextFlags == opc.nextFlags;
388 }
389
390 void
391 serialize(std::ostream &os)
392 {
393 Base::serialize(os);
394 SERIALIZE_SCALAR(flags);
395 SERIALIZE_SCALAR(nextFlags);
396 SERIALIZE_SCALAR(forcedItStateValue);
397 SERIALIZE_SCALAR(forcedItStateValid);
398 }
399
400 void
401 unserialize(Checkpoint *cp, const std::string &section)
402 {
403 Base::unserialize(cp, section);
404 UNSERIALIZE_SCALAR(flags);
405 UNSERIALIZE_SCALAR(nextFlags);
406 UNSERIALIZE_SCALAR(forcedItStateValue);
407 UNSERIALIZE_SCALAR(forcedItStateValid);
408 }
409 };
410
411 // Shift types for ARM instructions
412 enum ArmShiftType {

--- 90 unchanged lines hidden ---