microfpop.cc revision 7087:fb8d5786ff30
12689Sktlim@umich.edu/*
28703Sandreas.hansson@arm.com * Copyright (c) 2007 The Hewlett-Packard Development Company
38666SPrakash.Ramrakhyani@arm.com * All rights reserved.
48666SPrakash.Ramrakhyani@arm.com *
58666SPrakash.Ramrakhyani@arm.com * The license below extends only to copyright in the software and shall
68666SPrakash.Ramrakhyani@arm.com * not be construed as granting a license to any other intellectual
78666SPrakash.Ramrakhyani@arm.com * property including but not limited to intellectual property relating
88666SPrakash.Ramrakhyani@arm.com * to a hardware implementation of the functionality of the software
98666SPrakash.Ramrakhyani@arm.com * licensed hereunder.  You may use the software subject to the license
108666SPrakash.Ramrakhyani@arm.com * terms below provided that you ensure that this notice is replicated
118666SPrakash.Ramrakhyani@arm.com * unmodified and in its entirety in all distributions of the software,
128666SPrakash.Ramrakhyani@arm.com * modified or unmodified, in source code or in binary form.
138666SPrakash.Ramrakhyani@arm.com *
142689Sktlim@umich.edu * Redistribution and use in source and binary forms, with or without
157897Shestness@cs.utexas.edu * modification, are permitted provided that the following conditions are
162689Sktlim@umich.edu * met: redistributions of source code must retain the above copyright
172689Sktlim@umich.edu * notice, this list of conditions and the following disclaimer;
182689Sktlim@umich.edu * redistributions in binary form must reproduce the above copyright
192689Sktlim@umich.edu * notice, this list of conditions and the following disclaimer in the
202689Sktlim@umich.edu * documentation and/or other materials provided with the distribution;
212689Sktlim@umich.edu * neither the name of the copyright holders nor the names of its
222689Sktlim@umich.edu * contributors may be used to endorse or promote products derived from
232689Sktlim@umich.edu * this software without specific prior written permission.
242689Sktlim@umich.edu *
252689Sktlim@umich.edu * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
262689Sktlim@umich.edu * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
272689Sktlim@umich.edu * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
282689Sktlim@umich.edu * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
292689Sktlim@umich.edu * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
302689Sktlim@umich.edu * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
312689Sktlim@umich.edu * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
322689Sktlim@umich.edu * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
332689Sktlim@umich.edu * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
342689Sktlim@umich.edu * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
352689Sktlim@umich.edu * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
362689Sktlim@umich.edu *
372689Sktlim@umich.edu * Authors: Gabe Black
382689Sktlim@umich.edu */
392689Sktlim@umich.edu
402689Sktlim@umich.edu#include "arch/x86/insts/microfpop.hh"
412689Sktlim@umich.edu#include "arch/x86/miscregs.hh"
422689Sktlim@umich.edu#include <string>
432689Sktlim@umich.edu
442689Sktlim@umich.edunamespace X86ISA
457897Shestness@cs.utexas.edu{
462689Sktlim@umich.edu    /*
472689Sktlim@umich.edu    uint64_t FpOp::genFlags(uint64_t oldFlags, uint64_t flagMask,
482521SN/A            uint64_t _dest, uint64_t _src1, uint64_t _src2,
493960Sgblack@eecs.umich.edu            bool subtract) const
504194Ssaidi@eecs.umich.edu    {
518769Sgblack@eecs.umich.edu    }
521070SN/A    */
531070SN/A
542521SN/A    std::string FpOp::generateDisassembly(Addr pc,
556658Snate@binkert.org            const SymbolTable *symtab) const
568229Snate@binkert.org    {
578232Snate@binkert.org        std::stringstream response;
588666SPrakash.Ramrakhyani@arm.com
598769Sgblack@eecs.umich.edu        printMnemonic(response, instMnem, mnemonic);
608799Sgblack@eecs.umich.edu        printDestReg(response, 0, dataSize);
612521SN/A        response << ", ";
622522SN/A        printSrcReg(response, 0, dataSize);
638769Sgblack@eecs.umich.edu        response << ", ";
642037SN/A        printSrcReg(response, 1, dataSize);
658229Snate@binkert.org        return response.str();
668769Sgblack@eecs.umich.edu    }
6756SN/A}
686658Snate@binkert.org