1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 19 unchanged lines hidden (view full) --- 28 * Authors: Nathan Binkert 29 * Steve Reinhardt 30 */ 31 32#ifndef __ARCH_MIPS_UTILITY_HH__ 33#define __ARCH_MIPS_UTILITY_HH__ 34 35#include "arch/mips/types.hh" |
36#include "base/misc.hh" |
37#include "config/full_system.hh" |
38//XXX This is needed for size_t. We should use something other than size_t |
39//#include "kern/linux/linux.hh" |
40#include "sim/host.hh" 41 |
42class ThreadContext; 43 |
44namespace MipsISA { 45 46 //Floating Point Utility Functions 47 uint64_t fpConvert(ConvertType cvt_type, double fp_val); 48 double roundFP(double val, int digits); 49 double truncFP(double val); 50 51 bool getCondCode(uint32_t fcsr, int cc); --- 52 unchanged lines hidden --- |