static_inst.hh (7811:a8fc35183c10) static_inst.hh (12104:edd63f9c6184)
1/*
2 * Copyright (c) 2009 The University of Edinburgh
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;

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

54 uint32_t bits = value << ((7 - bf) * 4);
55 uint32_t mask = ~(0xf << ((7 - bf) * 4));
56 return (cr & mask) | bits;
57 }
58
59 /// Print a register name for disassembly given the unique
60 /// dependence tag number (FP or int).
61 void
1/*
2 * Copyright (c) 2009 The University of Edinburgh
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;

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

54 uint32_t bits = value << ((7 - bf) * 4);
55 uint32_t mask = ~(0xf << ((7 - bf) * 4));
56 return (cr & mask) | bits;
57 }
58
59 /// Print a register name for disassembly given the unique
60 /// dependence tag number (FP or int).
61 void
62 printReg(std::ostream &os, int reg) const;
62 printReg(std::ostream &os, RegId reg) const;
63
64 std::string
65 generateDisassembly(Addr pc, const SymbolTable *symtab) const;
66
67 void
68 advancePC(PowerISA::PCState &pcState) const
69 {
70 pcState.advance();
71 }
72};
73
74} // namespace PowerISA
75
76#endif //__ARCH_POWER_INSTS_STATICINST_HH__
63
64 std::string
65 generateDisassembly(Addr pc, const SymbolTable *symtab) const;
66
67 void
68 advancePC(PowerISA::PCState &pcState) const
69 {
70 pcState.advance();
71 }
72};
73
74} // namespace PowerISA
75
76#endif //__ARCH_POWER_INSTS_STATICINST_HH__