Deleted Added
sdiff udiff text old ( 6427:50125d42559c ) new ( 6428:9e35cdc95e81 )
full compact
1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
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;

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

342 /** Accessor for flags. */
343 Flags
344 getFlags()
345 {
346 assert(privateFlags.isSet(VALID_PADDR|VALID_VADDR));
347 return _flags;
348 }
349
350 void
351 setFlags(Flags flags)
352 {
353 assert(privateFlags.isSet(VALID_PADDR|VALID_VADDR));
354 _flags.set(flags);
355 }
356
357 /** Accessor function for vaddr.*/

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

373 /** Accessor function for asi.*/
374 uint8_t
375 getAsi()
376 {
377 assert(privateFlags.isSet(VALID_VADDR));
378 return _flags & ASI_BITS;
379 }
380
381 /** Accessor function for MMAPED_IPR flag. */
382 bool
383 isMmapedIpr()
384 {
385 assert(privateFlags.isSet(VALID_PADDR));
386 return _flags.isSet(MMAPED_IPR);
387 }
388
389 void
390 setMmapedIpr(bool r)
391 {
392 assert(VALID_VADDR);
393 _flags.set(MMAPED_IPR);
394 }
395
396 /** Accessor function to check if sc result is valid. */
397 bool
398 extraDataValid()
399 {
400 return privateFlags.isSet(VALID_EXTRA_DATA);
401 }
402
403 /** Accessor function for store conditional return value.*/

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

447 /** Accessor function for pc.*/
448 Addr
449 getPC() const
450 {
451 assert(privateFlags.isSet(VALID_PC));
452 return _pc;
453 }
454
455 /** Accessor Function to Check Cacheability. */
456 bool isUncacheable() const { return _flags.isSet(UNCACHEABLE); }
457 bool isInstFetch() const { return _flags.isSet(INST_FETCH); }
458 bool isPrefetch() const { return _flags.isSet(PREFETCH); }
459 bool isLLSC() const { return _flags.isSet(LLSC); }
460 bool isLocked() const { return _flags.isSet(LOCKED); }
461 bool isSwap() const { return _flags.isSet(MEM_SWAP|MEM_SWAP_COND); }
462 bool isCondSwap() const { return _flags.isSet(MEM_SWAP_COND); }
463
464 bool
465 isMisaligned() const
466 {
467 if (_flags.isSet(NO_ALIGN_FAULT))
468 return false;
469
470 if ((_vaddr & 0x1))

--- 13 unchanged lines hidden ---