static_inst.hh (5597:e2983d751be4) static_inst.hh (5665:433182bf55c1)
1/*
2 * Copyright (c) 2003-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;

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

69class AddrDecodePage;
70
71namespace Trace {
72 class InstRecord;
73}
74
75typedef uint32_t MicroPC;
76
1/*
2 * Copyright (c) 2003-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;

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

69class AddrDecodePage;
70
71namespace Trace {
72 class InstRecord;
73}
74
75typedef uint32_t MicroPC;
76
77static const MicroPC MicroPCRomBit = 1 << (sizeof(MicroPC) * 8 - 1);
78
79static inline MicroPC
80romMicroPC(MicroPC upc)
81{
82 return upc | MicroPCRomBit;
83}
84
85static inline MicroPC
86normalMicroPC(MicroPC upc)
87{
88 return upc & ~MicroPCRomBit;
89}
90
91static inline bool
92isRomMicroPC(MicroPC upc)
93{
94 return MicroPCRomBit & upc;
95}
96
77/**
78 * Base, ISA-independent static instruction class.
79 *
80 * The main component of this class is the vector of flags and the
81 * associated methods for reading them. Any object that can rely
82 * solely on these flags can process instructions without being
83 * recompiled for multiple ISAs.
84 */

--- 572 unchanged lines hidden ---
97/**
98 * Base, ISA-independent static instruction class.
99 *
100 * The main component of this class is the vector of flags and the
101 * associated methods for reading them. Any object that can rely
102 * solely on these flags can process instructions without being
103 * recompiled for multiple ISAs.
104 */

--- 572 unchanged lines hidden ---