microop.hh (8536:b3585da1f970) microop.hh (10201:30a20d2072c1)
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

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

102 {
103 const int ChunkSize = sizeof(unsigned long);
104 const int Chunks = sizeof(setFlags) / ChunkSize;
105
106 // Since the bitset constructor can only handle unsigned long
107 // sized chunks, feed it those one at a time while oring them in.
108 for (int i = 0; i < Chunks; i++) {
109 unsigned shift = i * ChunkSize * 8;
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

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

102 {
103 const int ChunkSize = sizeof(unsigned long);
104 const int Chunks = sizeof(setFlags) / ChunkSize;
105
106 // Since the bitset constructor can only handle unsigned long
107 // sized chunks, feed it those one at a time while oring them in.
108 for (int i = 0; i < Chunks; i++) {
109 unsigned shift = i * ChunkSize * 8;
110 flags |= (std::bitset(setFlags >> shift) << shift);
110 flags |= (std::bitset<Num_Flags>(setFlags >> shift) << shift);
111 }
112 }
113
114 std::string generateDisassembly(Addr pc,
115 const SymbolTable *symtab) const
116 {
117 std::stringstream ss;
118

--- 19 unchanged lines hidden ---
111 }
112 }
113
114 std::string generateDisassembly(Addr pc,
115 const SymbolTable *symtab) const
116 {
117 std::stringstream ss;
118

--- 19 unchanged lines hidden ---