microfpop.cc revision 7629
110263Satgutier@umich.edu/*
212566Snikos.nikoleris@arm.com * Copyright (c) 2007 The Hewlett-Packard Development Company
310263Satgutier@umich.edu * All rights reserved.
410263Satgutier@umich.edu *
510263Satgutier@umich.edu * The license below extends only to copyright in the software and shall
610263Satgutier@umich.edu * not be construed as granting a license to any other intellectual
710263Satgutier@umich.edu * property including but not limited to intellectual property relating
810263Satgutier@umich.edu * to a hardware implementation of the functionality of the software
910263Satgutier@umich.edu * licensed hereunder.  You may use the software subject to the license
1010263Satgutier@umich.edu * terms below provided that you ensure that this notice is replicated
1110263Satgutier@umich.edu * unmodified and in its entirety in all distributions of the software,
1210263Satgutier@umich.edu * modified or unmodified, in source code or in binary form.
1310263Satgutier@umich.edu *
1410263Satgutier@umich.edu * Redistribution and use in source and binary forms, with or without
1510263Satgutier@umich.edu * modification, are permitted provided that the following conditions are
1610263Satgutier@umich.edu * met: redistributions of source code must retain the above copyright
1710263Satgutier@umich.edu * notice, this list of conditions and the following disclaimer;
1810263Satgutier@umich.edu * redistributions in binary form must reproduce the above copyright
1910263Satgutier@umich.edu * notice, this list of conditions and the following disclaimer in the
2010263Satgutier@umich.edu * documentation and/or other materials provided with the distribution;
2110263Satgutier@umich.edu * neither the name of the copyright holders nor the names of its
2210263Satgutier@umich.edu * contributors may be used to endorse or promote products derived from
2310263Satgutier@umich.edu * this software without specific prior written permission.
2410263Satgutier@umich.edu *
2510263Satgutier@umich.edu * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
2610263Satgutier@umich.edu * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
2710263Satgutier@umich.edu * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
2810263Satgutier@umich.edu * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
2910263Satgutier@umich.edu * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
3010263Satgutier@umich.edu * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
3110263Satgutier@umich.edu * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
3210263Satgutier@umich.edu * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
3310263Satgutier@umich.edu * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
3410263Satgutier@umich.edu * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3510263Satgutier@umich.edu * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3610263Satgutier@umich.edu *
3710263Satgutier@umich.edu * Authors: Gabe Black
3810263Satgutier@umich.edu */
3910263Satgutier@umich.edu
4010263Satgutier@umich.edu#include "arch/x86/insts/microfpop.hh"
4110263Satgutier@umich.edu#include "arch/x86/regs/misc.hh"
4210263Satgutier@umich.edu#include <string>
4310263Satgutier@umich.edu
4410263Satgutier@umich.edunamespace X86ISA
4510263Satgutier@umich.edu{
4610263Satgutier@umich.edu    /*
4710263Satgutier@umich.edu    uint64_t FpOp::genFlags(uint64_t oldFlags, uint64_t flagMask,
4812492Sodanrc@yahoo.com.br            uint64_t _dest, uint64_t _src1, uint64_t _src2,
4912492Sodanrc@yahoo.com.br            bool subtract) const
5010263Satgutier@umich.edu    {
5112728Snikos.nikoleris@arm.com    }
5212727Snikos.nikoleris@arm.com    */
5312548Sodanrc@yahoo.com.br
5410263Satgutier@umich.edu    std::string FpOp::generateDisassembly(Addr pc,
5512727Snikos.nikoleris@arm.com            const SymbolTable *symtab) const
5612727Snikos.nikoleris@arm.com    {
5711486Snikos.nikoleris@arm.com        std::stringstream response;
5813223Sodanrc@yahoo.com.br
5912684Sodanrc@yahoo.com.br        printMnemonic(response, instMnem, mnemonic);
6013225Sodanrc@yahoo.com.br        printDestReg(response, 0, dataSize);
6110263Satgutier@umich.edu        response << ", ";
6213219Sodanrc@yahoo.com.br        printSrcReg(response, 0, dataSize);
6310263Satgutier@umich.edu        response << ", ";
6410263Satgutier@umich.edu        printSrcReg(response, 1, dataSize);
6510263Satgutier@umich.edu        return response.str();
6613219Sodanrc@yahoo.com.br    }
6710263Satgutier@umich.edu}
6810263Satgutier@umich.edu