static_inst.cc (9913:7f43babfde6a) | static_inst.cc (9920:028e4da64b42) |
---|---|
1/* 2 * Copyright (c) 2009 The University of Edinburgh 3 * Copyright (c) 2013 Advanced Micro Devices, Inc. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 41 unchanged lines hidden (view full) --- 50 switch (rel_reg) { 51 case 0: ccprintf(os, "cr"); break; 52 case 1: ccprintf(os, "xer"); break; 53 case 2: ccprintf(os, "lr"); break; 54 case 3: ccprintf(os, "ctr"); break; 55 default: ccprintf(os, "unknown_reg"); 56 break; 57 } | 1/* 2 * Copyright (c) 2009 The University of Edinburgh 3 * Copyright (c) 2013 Advanced Micro Devices, Inc. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 41 unchanged lines hidden (view full) --- 50 switch (rel_reg) { 51 case 0: ccprintf(os, "cr"); break; 52 case 1: ccprintf(os, "xer"); break; 53 case 2: ccprintf(os, "lr"); break; 54 case 3: ccprintf(os, "ctr"); break; 55 default: ccprintf(os, "unknown_reg"); 56 break; 57 } |
58 case CCRegClass: 59 panic("printReg: POWER does not implement CCRegClass\n"); |
|
58 } 59} 60 61std::string 62PowerStaticInst::generateDisassembly(Addr pc, 63 const SymbolTable *symtab) const 64{ 65 std::stringstream ss; 66 67 ccprintf(ss, "%-10s ", mnemonic); 68 69 return ss.str(); 70} | 60 } 61} 62 63std::string 64PowerStaticInst::generateDisassembly(Addr pc, 65 const SymbolTable *symtab) const 66{ 67 std::stringstream ss; 68 69 ccprintf(ss, "%-10s ", mnemonic); 70 71 return ss.str(); 72} |