112293Sgabeblack@google.com/* 212293Sgabeblack@google.com * Copyright (c) 2006-2007 The Regents of The University of Michigan 312293Sgabeblack@google.com * All rights reserved. 412293Sgabeblack@google.com * 512293Sgabeblack@google.com * Redistribution and use in source and binary forms, with or without 612293Sgabeblack@google.com * modification, are permitted provided that the following conditions are 712293Sgabeblack@google.com * met: redistributions of source code must retain the above copyright 812293Sgabeblack@google.com * notice, this list of conditions and the following disclaimer; 912293Sgabeblack@google.com * redistributions in binary form must reproduce the above copyright 1012293Sgabeblack@google.com * notice, this list of conditions and the following disclaimer in the 1112293Sgabeblack@google.com * documentation and/or other materials provided with the distribution; 1212293Sgabeblack@google.com * neither the name of the copyright holders nor the names of its 1312293Sgabeblack@google.com * contributors may be used to endorse or promote products derived from 1412293Sgabeblack@google.com * this software without specific prior written permission. 1512293Sgabeblack@google.com * 1612293Sgabeblack@google.com * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 1712293Sgabeblack@google.com * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 1812293Sgabeblack@google.com * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 1912293Sgabeblack@google.com * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 2012293Sgabeblack@google.com * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2112293Sgabeblack@google.com * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 2212293Sgabeblack@google.com * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2312293Sgabeblack@google.com * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2412293Sgabeblack@google.com * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2512293Sgabeblack@google.com * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 2612293Sgabeblack@google.com * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2712293Sgabeblack@google.com * 2812293Sgabeblack@google.com * Authors: Gabe Black 2912293Sgabeblack@google.com */ 3012293Sgabeblack@google.com 3112293Sgabeblack@google.com#include "arch/sparc/insts/micro.hh" 3212293Sgabeblack@google.com 3312293Sgabeblack@google.comnamespace SparcISA 3412293Sgabeblack@google.com{ 3512293Sgabeblack@google.com 3612293Sgabeblack@google.comstd::string 3712293Sgabeblack@google.comSparcMacroInst::generateDisassembly(Addr pc, const SymbolTable *symtab) const 3812293Sgabeblack@google.com{ 3912293Sgabeblack@google.com std::stringstream response; 4012293Sgabeblack@google.com printMnemonic(response, mnemonic); 4112293Sgabeblack@google.com return response.str(); 4212293Sgabeblack@google.com} 4312293Sgabeblack@google.com 4412293Sgabeblack@google.com} 45